Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion src/org/rascalmpl/library/util/Reflective.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -530,20 +531,38 @@ private str pomXml(str name, str group, str version)
' \<plugin\>
' \<groupId\>org.rascalmpl\</groupId\>
' \<artifactId\>rascal-maven-plugin\</artifactId\>
' \<version\>0.8.2\</version\>
' \<version\><getRascalMavenPluginVersion()>\</version\>
' \<configuration\>
' \<errorsAsWarnings\>true\</errorsAsWarnings\>
' \<bin\>${project.build.outputDirectory}\</bin\>
' \<srcs\>
' \<src\>${project.basedir}/src/main/rascal\</src\>
' \</srcs\>
' \</configuration\>
' \<executions\>
' \<execution\>
' \<id\>default-compile\</id\>
' \<phase\>compile\</phase\>
' \<goals\>
' \<goal\>compile\</goal\>
' \</goals\>
' \</execution\>
' \</executions\>
' \</plugin\>
' \</plugins\>
' \</build\>
'\</project\>
";

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<version:[0-9]+\.[0-9]+\.[0-9]+>/ := s) {
return version;
}
} catch _: ;
return "0.31.0"; // 2 March 2026
}

private str vscodeSettings() = "{
' \"search.exclude\": {
' \"/target/\": true,
Expand Down
Loading