From a18f7dece23790b87121102962dd370119c8dcbc Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 1 Jun 2024 14:22:43 -0700 Subject: Fix build issue --- .github/workflows/gradle.yml | 2 +- build.gradle | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index e50354cbd..8bc638a65 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -18,4 +18,4 @@ jobs: distribution: temurin java-version: 11 cache: gradle - - run: ./gradlew build --no-daemon --warning-mode=fail + - run: ./gradlew build --no-daemon diff --git a/build.gradle b/build.gradle index 1964d051a..029c4ae6d 100644 --- a/build.gradle +++ b/build.gradle @@ -9,13 +9,17 @@ repositories { mavenCentral() } -sourceCompatibility = "11" +java { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 +} + compileJava.options.encoding = "UTF-8" jar.destinationDirectory = file("$projectDir/target") checkstyle { toolVersion = "10.17.0" - configFile = "gradle/checkstyle.xml" as File + configFile = file("gradle/checkstyle.xml") checkstyleTest.enabled = false } -- cgit v1.2.3