This is an automated email from the ASF dual-hosted git repository. benw pushed a commit to branch javax in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
commit 72271970803eee3afbb2d51ddd75507790e95eab Author: Ben Weidig <[email protected]> AuthorDate: Sun Feb 8 16:05:13 2026 +0100 TAP5-2809: Setting java toolchain in submodules where required --- tapestry-latest-java-tests/build.gradle | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tapestry-latest-java-tests/build.gradle b/tapestry-latest-java-tests/build.gradle index 6954db351..c1e5c9ebc 100644 --- a/tapestry-latest-java-tests/build.gradle +++ b/tapestry-latest-java-tests/build.gradle @@ -4,8 +4,17 @@ plugins { description = 'Test suite for making sure Tapestry runs on latest Java' -sourceCompatibility = '17' -targetCompatibility = '17' +java { + toolchain { + languageVersion = JavaLanguageVersion.of(17) + } + + withSourcesJar() +} + +tasks.withType(JavaCompile).configureEach { + options.release = 17 +} tasks.withType(JavaCompile).configureEach { options.compilerArgs += '--enable-preview'
