Skip to content

Commit 7d59a71

Browse files
GRAILS-9646 - fix wrapper
The previous code was matching any groovy jar file which began with groovy-all-. Since we include source and javadoc jars now, those broke that logic. Now we look for a jar name that matches a more specific regex.
1 parent e75dc03 commit 7d59a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-wrapper/src/main/java/org/grails/wrapper/GrailsWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ private static File findGroovyAllJar(final File directoryToSearch) {
111111
return findGroovyAllJar(file);
112112
}
113113
final String fileName = file.getName();
114-
if(fileName.startsWith("groovy-all-") && fileName.endsWith(".jar")) {
114+
if(fileName.matches("groovy-all-(\\d+)(\\.\\d+)*\\.jar")) {
115115
return file;
116116
}
117117
}

0 commit comments

Comments
 (0)