Skip to content

Commit

Permalink
Make project compatible with Groovy 3.0.19 (#389)
Browse files Browse the repository at this point in the history
* Update to, and make project compatible with, Groovy 3.0.19

* Revert to Groovy 3.0.11
  • Loading branch information
matrei authored Dec 7, 2023
1 parent 30ac4c6 commit ed2c76b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ class GroovyPageCompiler {
for(int index = 0; index < collatedSrcFiles.size(); index++) {
def gspFiles = collatedSrcFiles[index]

futures << completionService.submit({ ->
futures.add(completionService.submit({ ->
def results = [:]
for(int gspIndex=0;gspIndex < gspFiles.size();gspIndex++) {
for(int gspIndex = 0; gspIndex < gspFiles.size(); gspIndex++) {
File gsp = gspFiles[gspIndex]
try {
compileGSP(viewsDir, gsp, viewPrefix, packagePrefix, results)
Expand All @@ -124,7 +124,7 @@ class GroovyPageCompiler {
}
}
return results
} as Callable)
} as Callable) as Future<Map>)
}

int pending = futures.size()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Usage: java -cp CLASSPATH GroovyPageCompilerForkTask [srcDir] [destDir] [tmpDir]
String targetCompatibility = args[3]
String packageName = args[4].trim()
String serverpath = args[5]
String[] configFiles = args[6].tokenize(',')
String[] configFiles = args[6].tokenize(',') as String[]
File configFile = new File(args[6])
String encoding = args[7] ?: 'UTF-8'

Expand Down

0 comments on commit ed2c76b

Please sign in to comment.