aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-06-01 14:22:43 -0700
committerAnton Tananaev <anton@traccar.org>2024-06-01 14:22:43 -0700
commita18f7dece23790b87121102962dd370119c8dcbc (patch)
tree5e7907db3a36306402b47d2e5fc4567b0390756b
parent47d4ab2bad1806e3943a0e05ced7f8df7f8e1aca (diff)
downloadtrackermap-server-a18f7dece23790b87121102962dd370119c8dcbc.tar.gz
trackermap-server-a18f7dece23790b87121102962dd370119c8dcbc.tar.bz2
trackermap-server-a18f7dece23790b87121102962dd370119c8dcbc.zip
Fix build issue
-rw-r--r--.github/workflows/gradle.yml2
-rw-r--r--build.gradle8
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
}