aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-03-30 09:48:07 +0300
committerGravatar Vitaly Takmazov2021-03-30 09:48:07 +0300
commit38c71cd62cb5d4896e9460198d5f2eb561e850dc (patch)
tree6d45fa52b8c7efe37641c275af2296eb659159cb
parent6b529f138b9688a55b0f4075657ff277ea991a3f (diff)
gradle: use toolchains
-rw-r--r--build.gradle9
1 files changed, 6 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle
index 3f3a9094..b17e9902 100644
--- a/build.gradle
+++ b/build.gradle
@@ -52,6 +52,12 @@ task npmCompile(type: Exec) {
}
}
+java {
+ toolchain {
+ languageVersion = JavaLanguageVersion.of(15)
+ }
+}
+
ext {
swaggerOutputDir = file("${buildDir}/swagger")
docsOutputDir = file("${buildDir}/docs")
@@ -187,6 +193,3 @@ bootRun {
npmCompile.dependsOn 'npmInstall'
processResources.dependsOn 'npmCompile'
-
-sourceCompatibility = JavaVersion.VERSION_15
-targetCompatibility = JavaVersion.VERSION_15