You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2021/10/07 11:57:20 UTC

[groovy] branch master updated: Set `groovy.target.bytecode` to 1.8 while compiling groovy

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 68a6902  Set `groovy.target.bytecode` to 1.8 while compiling groovy
68a6902 is described below

commit 68a69020d8ad70807ec88387a1f90c184779b687
Author: Daniel Sun <su...@apache.org>
AuthorDate: Thu Oct 7 19:57:00 2021 +0800

    Set `groovy.target.bytecode` to 1.8 while compiling groovy
---
 buildSrc/src/main/groovy/org.apache.groovy-internal.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/buildSrc/src/main/groovy/org.apache.groovy-internal.gradle b/buildSrc/src/main/groovy/org.apache.groovy-internal.gradle
index 4d94a7a..529c0b2 100644
--- a/buildSrc/src/main/groovy/org.apache.groovy-internal.gradle
+++ b/buildSrc/src/main/groovy/org.apache.groovy-internal.gradle
@@ -74,7 +74,7 @@ tasks.withType(AbstractCompile).configureEach {
 }
 
 tasks.withType(GroovyCompile).configureEach {
-    groovyOptions.forkOptions.jvmArgs += ["-Dgroovy.antlr4.cache.threshold=100"]
+    groovyOptions.forkOptions.jvmArgs += ["-Dgroovy.antlr4.cache.threshold=100", "-Dgroovy.target.bytecode=1.8"]
     groovyOptions.fork(memoryMaximumSize: sharedConfiguration.groovycMaxMemory.get())
     groovyClasspath = configurations.groovyCompilerClasspath