diff options
-rw-r--r-- | .github/workflows/gradle.yml | 2 | ||||
-rw-r--r-- | 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 } |