Java11Exec: Quick fix for test dependencies.
This commit is contained in:
@ -35,8 +35,13 @@
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.13.1</version>
|
||||
<scope>test</scope>
|
||||
<version>4.11</version>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/org.hamcrest/hamcrest-core -->
|
||||
<dependency>
|
||||
<groupId>org.hamcrest</groupId>
|
||||
<artifactId>hamcrest-core</artifactId>
|
||||
<version>1.3</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
@ -70,6 +70,8 @@ class SimpleMakefile {
|
||||
.map(s -> s.startsWith("@") ? s.substring(1) : s)
|
||||
.map(s -> s.contains("#") ? s.substring(0, s.indexOf("#")) : s)
|
||||
.filter(s -> !s.isEmpty())
|
||||
.map(s -> s.replaceAll("/usr/java/lib/hamcrest-core-1.3.jar", "/var/task/lib/org.hamcrest.hamcrest-core-1.3.jar"))
|
||||
.map(s -> s.replaceAll("/usr/java/lib/junit-4.11.jar", "/var/task/lib/junit.junit-4.11.jar"))
|
||||
.toArray(String[]::new);
|
||||
|
||||
rules.put(ruleName, trimmedCommands);
|
||||
|
Reference in New Issue
Block a user