Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Commit 57d129f

Browse files
committed
Avoiding illegal access warning
1 parent 6db8d38 commit 57d129f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
<plugin>
8989
<groupId>org.codehaus.gmaven</groupId>
9090
<artifactId>groovy-maven-plugin</artifactId>
91-
<version>2.0</version>
91+
<version>2.1.1</version>
9292
<dependencies>
9393
<dependency>
9494
<groupId>org.codehaus.groovy</groupId>
@@ -122,6 +122,14 @@
122122
<plugin>
123123
<groupId>org.codehaus.gmaven</groupId>
124124
<artifactId>groovy-maven-plugin</artifactId>
125+
<dependencies>
126+
<dependency>
127+
<groupId>org.codehaus.groovy</groupId>
128+
<artifactId>groovy-all</artifactId>
129+
<version>3.0.3</version>
130+
<type>pom</type>
131+
</dependency>
132+
</dependencies>
125133
<executions>
126134
<execution>
127135
<phase>generate-resources</phase>

src/main/groovy/exportJdkHomes.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def getJdkHome(String jdkSelector) {
2929
if ( toolChains.isEmpty() ) {
3030
throw new IllegalArgumentException( "No matching toolchain found for requirements " + jdkSelector );
3131
}
32-
else if ( toolChains.size > 1 ) {
32+
else if ( toolChains.size() > 1 ) {
3333
throw new IllegalArgumentException( "Multiple matching toolchains found for requirements " + jdkSelector );
3434
}
3535
else {

0 commit comments

Comments
 (0)