aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2024-03-07 22:59:12 -0600
committerIván Ávalos <avalos@disroot.org>2024-03-07 22:59:12 -0600
commit00d3ddf7b5e335a5112a28a547c4c9ec2c3bd1d2 (patch)
treea02ecb75a8533194314d32c0c667520bff5e919d /build.gradle
parent8e1bc703227a875c20e453704d774ce5772f2621 (diff)
parent75b404db5c790bf37c05fabf1cbbd2027ad1db25 (diff)
downloadtrackermap-server-00d3ddf7b5e335a5112a28a547c4c9ec2c3bd1d2.tar.gz
trackermap-server-00d3ddf7b5e335a5112a28a547c4c9ec2c3bd1d2.tar.bz2
trackermap-server-00d3ddf7b5e335a5112a28a547c4c9ec2c3bd1d2.zip
Merge branch 'master' of https://github.com/traccar/traccar
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle108
1 files changed, 57 insertions, 51 deletions
diff --git a/build.gradle b/build.gradle
index 91ba2cd5c..3677f8f94 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,57 +1,61 @@
plugins {
id "java"
id "checkstyle"
- id "com.google.protobuf" version "0.8.19"
- id "org.kordamp.gradle.project-enforcer" version "0.10.0"
+ id "com.google.protobuf" version "0.9.4"
+ id "org.kordamp.gradle.project-enforcer" version "0.13.0"
}
repositories {
mavenCentral()
}
-ext {
- guiceVersion = "5.1.0"
- jettyVersion = "10.0.12" // jetty 11 javax to jakarta
- jerseyVersion = "2.37" // jersey 3 javax to jakarta
- jacksonVersion = "2.13.4" // same version as jersey-media-json-jackson dependency
- protobufVersion = "3.21.9"
-}
-
sourceCompatibility = "11"
compileJava.options.encoding = "UTF-8"
jar.destinationDirectory = file("$projectDir/target")
checkstyle {
- toolVersion = "10.3.4"
+ toolVersion = "10.12.5"
configFile = "gradle/checkstyle.xml" as File
checkstyleTest.enabled = false
}
-protobuf {
- protoc {
- artifact = "com.google.protobuf:protoc:$protobufVersion"
- }
-}
-
enforce {
rule(enforcer.rules.EnforceBytecodeVersion) { r ->
r.maxJdkVersion = "11"
}
}
+ext {
+ guiceVersion = "7.0.0"
+ jettyVersion = "11.0.19"
+ jerseyVersion = "3.1.5"
+ jacksonVersion = "2.15.3" // same version as jersey-media-json-jackson dependency
+ protobufVersion = "3.25.2"
+ jxlsVersion = "2.14.0"
+ junitVersion = "5.10.1"
+}
+
+protobuf {
+ protoc {
+ artifact = "com.google.protobuf:protoc:$protobufVersion"
+ }
+}
+
dependencies {
- implementation "commons-codec:commons-codec:1.15"
- implementation "com.h2database:h2:2.1.214"
- implementation "com.mysql:mysql-connector-j:8.0.31"
- implementation "org.postgresql:postgresql:42.5.1"
- implementation "com.microsoft.sqlserver:mssql-jdbc:11.2.1.jre11"
- implementation "com.zaxxer:HikariCP:5.0.1"
- implementation "io.netty:netty-all:4.1.85.Final"
- implementation "org.slf4j:slf4j-jdk14:2.0.5"
+ implementation "commons-codec:commons-codec:1.16.0"
+ implementation "com.h2database:h2:2.2.224"
+ implementation "com.mysql:mysql-connector-j:8.2.0"
+ implementation "org.mariadb.jdbc:mariadb-java-client:3.3.2"
+ implementation "org.postgresql:postgresql:42.7.1"
+ implementation "com.microsoft.sqlserver:mssql-jdbc:12.4.2.jre11"
+ implementation "com.zaxxer:HikariCP:5.1.0"
+ implementation "io.netty:netty-all:4.1.104.Final"
+ implementation "org.slf4j:slf4j-jdk14:2.0.11"
implementation "com.google.inject:guice:$guiceVersion"
implementation "com.google.inject.extensions:guice-servlet:$guiceVersion"
implementation "org.owasp.encoder:encoder:1.2.3"
- implementation "org.glassfish:jakarta.json:1.1.6"
+ implementation "org.glassfish:jakarta.json:2.0.1"
+ implementation "com.sun.mail:jakarta.mail:2.0.1"
implementation "org.eclipse.jetty:jetty-server:$jettyVersion"
implementation "org.eclipse.jetty:jetty-servlet:$jettyVersion"
implementation "org.eclipse.jetty:jetty-servlets:$jettyVersion"
@@ -62,35 +66,37 @@ dependencies {
implementation "org.glassfish.jersey.containers:jersey-container-servlet:$jerseyVersion"
implementation "org.glassfish.jersey.media:jersey-media-json-jackson:$jerseyVersion"
implementation "org.glassfish.jersey.inject:jersey-hk2:$jerseyVersion"
- implementation "org.glassfish.hk2:guice-bridge:2.6.1" // same version as jersey-hk2
+ implementation "org.glassfish.hk2:guice-bridge:3.0.5" // same version as jersey-hk2
implementation "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$jacksonVersion"
- implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr353:$jacksonVersion"
- implementation "org.liquibase:liquibase-core:4.17.2"
- implementation "com.sun.mail:jakarta.mail:1.6.7"
- implementation "org.jxls:jxls:2.4.7" // needs upgrade (wait for jexl 4)
- implementation "org.jxls:jxls-poi:1.0.16" // needs upgrade (wait for jexl 4)
- implementation "org.apache.velocity:velocity:1.7" // needs upgrade
- implementation "org.apache.velocity:velocity-tools:2.0" // needs upgrade
+ implementation "com.fasterxml.jackson.datatype:jackson-datatype-jakarta-jsonp:$jacksonVersion"
+ implementation "org.liquibase:liquibase-core:4.23.2" // upgrade has issues
+ implementation "org.apache.commons:commons-jexl3:3.3"
+ implementation "org.jxls:jxls:$jxlsVersion"
+ implementation "org.jxls:jxls-poi:$jxlsVersion"
+ implementation "org.apache.velocity:velocity-engine-core:2.3"
+ implementation "org.apache.velocity.tools:velocity-tools-generic:3.1"
implementation "org.apache.commons:commons-collections4:4.4"
- implementation "org.mnode.ical4j:ical4j:3.2.7"
+ implementation "org.mnode.ical4j:ical4j:3.2.14"
implementation "org.locationtech.spatial4j:spatial4j:0.8"
implementation "org.locationtech.jts:jts-core:1.19.0"
- implementation "net.java.dev.jna:jna-platform:5.12.1"
- implementation "com.github.jnr:jnr-posix:3.1.16"
+ implementation "net.java.dev.jna:jna-platform:5.14.0"
+ implementation "com.github.jnr:jnr-posix:3.1.18"
implementation "com.google.protobuf:protobuf-java:$protobufVersion"
- implementation "javax.xml.bind:jaxb-api:2.3.1"
- implementation "com.sun.xml.bind:jaxb-core:3.0.2" // needs upgrade
- implementation "com.sun.xml.bind:jaxb-impl:3.0.2" // needs upgrade
- implementation "javax.activation:activation:1.1.1"
- implementation "com.amazonaws:aws-java-sdk-sns:1.12.349"
- implementation "org.apache.kafka:kafka-clients:3.3.1"
- implementation 'com.hivemq:hivemq-mqtt-client:1.3.0'
- implementation("com.google.firebase:firebase-admin:9.1.1") {
- exclude group: 'com.google.cloud', module: 'google-cloud-firestore'
- exclude group: 'com.google.cloud', module: 'google-cloud-storage'
- }
- testImplementation "junit:junit:4.13.2"
- testImplementation "org.mockito:mockito-core:4.+"
+ implementation "com.amazonaws:aws-java-sdk-sns:1.12.636"
+ implementation "org.apache.kafka:kafka-clients:3.6.1"
+ implementation "com.hivemq:hivemq-mqtt-client:1.3.3"
+ implementation "redis.clients:jedis:5.1.0"
+ implementation "com.google.firebase:firebase-admin:9.2.0"
+ implementation "com.nimbusds:oauth2-oidc-sdk:11.9.1"
+ implementation "com.rabbitmq:amqp-client:5.20.0"
+ implementation "com.warrenstrange:googleauth:1.5.0"
+ testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
+ testImplementation "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
+ testImplementation "org.mockito:mockito-core:5.8.0"
+}
+
+test {
+ useJUnitPlatform()
}
task copyDependencies(type: Copy) {
@@ -103,7 +109,7 @@ jar {
manifest {
attributes(
"Main-Class": "org.traccar.Main",
- "Implementation-Version": "5.5",
+ "Implementation-Version": "5.12",
"Class-Path": configurations.runtimeClasspath.files.collect { "lib/$it.name" }.join(" "))
}
}