File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
build-tools/build-infra/src/main/groovy Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -232,21 +232,20 @@ allprojects {
232232 // Configure module versions.
233233 tasks. withType(JavaCompile ). configureEach { task ->
234234 // TODO: LUCENE-10267: workaround for gradle bug. Remove when the corresponding issue is fixed.
235+ String projectVersion = project. version. toString()
235236 task. options. compilerArgumentProviders. add((CommandLineArgumentProvider ) {
236237 ->
237238 if (task. getClasspath(). isEmpty()) {
238239 return [
239240 " --module-version" ,
240- project . version . toString()
241+ projectVersion
241242 ]
242243 } else {
243244 return []
244245 }
245246 })
246247
247- task. options. javaModuleVersion. set(provider {
248- return project. version. toString()
249- })
248+ task. options. javaModuleVersion. set(projectVersion)
250249 }
251250 }
252251}
You can’t perform that action at this time.
0 commit comments