This is an automated email from the ASF dual-hosted git repository. sunlan pushed a commit to branch danielsun/enable-indy in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 28c5ee599043ecadf0d2ba244f9a12997284a09c Author: Daniel Sun <[email protected]> AuthorDate: Mon Oct 3 06:57:16 2022 +0800 Enable indy in gradle --- build-logic/src/main/groovy/org.apache.groovy-core.gradle | 1 + build-logic/src/main/groovy/org.apache.groovy-internal.gradle | 1 + 2 files changed, 2 insertions(+) diff --git a/build-logic/src/main/groovy/org.apache.groovy-core.gradle b/build-logic/src/main/groovy/org.apache.groovy-core.gradle index 876aad2a99..817ea1b1e7 100644 --- a/build-logic/src/main/groovy/org.apache.groovy-core.gradle +++ b/build-logic/src/main/groovy/org.apache.groovy-core.gradle @@ -145,6 +145,7 @@ tasks.withType(GroovyCompile).configureEach { if (it.name == 'compileGroovy') { classpath = files(bootstrapJar, classpath) } + groovyOptions.optimizationOptions.indy = true options.incremental = true } diff --git a/build-logic/src/main/groovy/org.apache.groovy-internal.gradle b/build-logic/src/main/groovy/org.apache.groovy-internal.gradle index f538b42bb7..5c685be803 100644 --- a/build-logic/src/main/groovy/org.apache.groovy-internal.gradle +++ b/build-logic/src/main/groovy/org.apache.groovy-internal.gradle @@ -77,6 +77,7 @@ tasks.withType(AbstractCompile).configureEach { } tasks.withType(GroovyCompile).configureEach { +// groovyOptions.optimizationOptions.indy = true // TODO uncomment before GROOVY-10783 and GROOVY-10784 are fixed groovyOptions.forkOptions.jvmArgs += ["-Dgroovy.antlr4.cache.threshold=100", "-Dgroovy.target.bytecode=${sharedConfiguration.groovyTargetBytecodeVersion.get()}" as String] groovyOptions.fork(memoryMaximumSize: sharedConfiguration.groovycMaxMemory.get()) groovyClasspath = configurations.groovyCompilerClasspath
