Skip to content

Commit

Permalink
Use toolchains to specify supported language versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraq committed Dec 2, 2023
1 parent 9e2467a commit 9ae4e39
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions 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.
Expand Down Expand Up @@ -42,7 +42,9 @@ dependencies {
}

java {
sourceCompatibility = JavaVersion.VERSION_17
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

tasks.register('startWebApp', ExecFork) {
Expand Down
12 changes: 7 additions & 5 deletions 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.
Expand Down Expand Up @@ -54,7 +54,9 @@ dependencies {
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}

test {
Expand Down

0 comments on commit 9ae4e39

Please sign in to comment.