diff --git a/thymeleaf-layout-dialect-benchmark/build.gradle b/thymeleaf-layout-dialect-benchmark/build.gradle index 5cb6c21c..82399613 100644 --- a/thymeleaf-layout-dialect-benchmark/build.gradle +++ b/thymeleaf-layout-dialect-benchmark/build.gradle @@ -1,12 +1,12 @@ -/* +/* * Copyright 2016, Emanuel Rabina (http://www.ultraq.net.nz/) - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -42,7 +42,9 @@ dependencies { } java { - sourceCompatibility = JavaVersion.VERSION_17 + toolchain { + languageVersion = JavaLanguageVersion.of(17) + } } tasks.register('startWebApp', ExecFork) { diff --git a/thymeleaf-layout-dialect/build.gradle b/thymeleaf-layout-dialect/build.gradle index 29cf9273..683fbf47 100644 --- a/thymeleaf-layout-dialect/build.gradle +++ b/thymeleaf-layout-dialect/build.gradle @@ -1,12 +1,12 @@ -/* +/* * Copyright 2012, Emanuel Rabina (http://www.ultraq.net.nz/) - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -54,7 +54,9 @@ dependencies { } java { - sourceCompatibility = JavaVersion.VERSION_1_8 + toolchain { + languageVersion = JavaLanguageVersion.of(8) + } } test {