diff --git a/src/org/rascalmpl/library/util/Reflective.rsc b/src/org/rascalmpl/library/util/Reflective.rsc index bd92c7462f0..dde32c10155 100644 --- a/src/org/rascalmpl/library/util/Reflective.rsc +++ b/src/org/rascalmpl/library/util/Reflective.rsc @@ -23,6 +23,7 @@ import Message; import lang::rascal::\syntax::Rascal; import lang::manifest::IO; +import lang::json::IO; @synopsis{Returns the system-dependent line separator string} @javaClass{org.rascalmpl.library.util.Reflective} @@ -530,7 +531,7 @@ private str pomXml(str name, str group, str version) ' \ ' \org.rascalmpl\ ' \rascal-maven-plugin\ - ' \0.8.2\ + ' \\ ' \ ' \true\ ' \${project.build.outputDirectory}\ @@ -538,12 +539,30 @@ private str pomXml(str name, str group, str version) ' \${project.basedir}/src/main/rascal\ ' \ ' \ + ' \ + ' \ + ' \default-compile\ + ' \compile\ + ' \ + ' \compile\ + ' \ + ' \ + ' \ ' \ ' \ ' \ '\ "; +private str getRascalMavenPluginVersion() { + try { // Best-effort attempt to get the latest version + if (str s := readJSON(#map[str, value], |https://api.github.com/repos/usethesource/rascal-maven-plugin/releases/latest|)["tag_name"], /v/ := s) { + return version; + } + } catch _: ; + return "0.31.0"; // 2 March 2026 +} + private str vscodeSettings() = "{ ' \"search.exclude\": { ' \"/target/\": true,