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