You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide better support for toolchains for JVM projects (#208)
* test: reproduce the problem by a test-project
> * What went wrong:
> Execution failed for task :greeter.toolchain:compileJava.
> > Cannot specify --release via `CompileOptions.compilerArgs` when using `JavaCompile.release`.
* fix: use Gradle native implementation to set the `--release` option to compiler
* fix: refer to toolchain config to grab the version of java compiler
* build: build the greeter.toolchain proj with Gradle 6.6
Gradle 6.6 has no toolchain support, but has javaCompile.options.release property.
* chore: remove needless imports
* build: use Java 11 for new test project
using Java 17 breaks the build in GitHub Actions workflow, because
Java 17 has more strict control on the Java module.
* @see <a href="https://github.com/gradle/gradle/issues/2510#issuecomment-657436188">The comment on GitHub issue that says {@code --release} option is added in Gradle 6.6</a>
114
+
* @return true if the version of Gradle is 6.6 or later
* @see <a href="https://docs.gradle.org/6.7/javadoc/org/gradle/api/plugins/JavaPluginExtension.html#getToolchain--">The Javadoc that says {@code JavaPluginExtension.getToolchain()} is added in Gradle 6.7</a>
122
+
* @return true if the version of Gradle is 6.7 or later
0 commit comments