diff options
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 43 |
1 files changed, 27 insertions, 16 deletions
diff --git a/build.gradle b/build.gradle index 0842a6a0f..6aa6af8a7 100644 --- a/build.gradle +++ b/build.gradle @@ -1,36 +1,46 @@ plugins { id "java" id "checkstyle" + id "com.google.protobuf" version "0.8.11" } repositories { mavenCentral() } +ext { + guiceVersion = "4.2.2" + jettyVersion = "9.4.26.v20200117" + jerseyVersion = "2.30" + jacksonVersion = "2.9.9" // same version as jersey-media-json-jackson dependency + protobufVersion = "3.11.1" +} + sourceCompatibility = "1.8" compileJava.options.encoding = "UTF-8" checkstyle { + toolVersion = "8.26" configFile = "gradle/checkstyle.xml" as File checkstyleTest.enabled = false } -ext { - guiceVersion = "4.2.2" - jettyVersion = "9.4.20.v20190813" - jerseyVersion = "2.29" - jacksonVersion = "2.9.9" // same version as jersey-media-json-jackson dependency +protobuf { + generatedFilesBaseDir = "$projectDir/src" + protoc { + artifact = "com.google.protobuf:protoc:$protobufVersion" + } } dependencies { implementation "commons-codec:commons-codec:1.13" - implementation "com.h2database:h2:1.4.199" - implementation "mysql:mysql-connector-java:8.0.17" - implementation "org.postgresql:postgresql:42.2.6" + implementation "com.h2database:h2:1.4.200" + implementation "mysql:mysql-connector-java:8.0.18" + implementation "org.postgresql:postgresql:42.2.9" implementation "com.microsoft.sqlserver:mssql-jdbc:7.4.1.jre8" - implementation "com.zaxxer:HikariCP:3.3.1" - implementation "io.netty:netty-all:4.1.39.Final" - implementation "org.slf4j:slf4j-jdk14:1.7.28" + implementation "com.zaxxer:HikariCP:3.4.2" + implementation "io.netty:netty-all:4.1.44.Final" + implementation "org.slf4j:slf4j-jdk14:1.7.30" implementation "com.google.inject:guice:$guiceVersion" implementation "com.google.inject.extensions:guice-assistedinject:$guiceVersion" implementation "org.owasp.encoder:encoder:1.2.2" @@ -46,7 +56,7 @@ dependencies { implementation "org.glassfish.jersey.inject:jersey-hk2:$jerseyVersion" implementation "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$jacksonVersion" implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr353:$jacksonVersion" - implementation "org.liquibase:liquibase-core:3.8.0", { + implementation "org.liquibase:liquibase-core:3.8.5", { exclude group: "ch.qos.logback", module: "logback-classic" } implementation "com.sun.mail:javax.mail:1.6.2" @@ -57,13 +67,14 @@ dependencies { implementation "org.apache.commons:commons-collections4:4.4" implementation "org.mnode.ical4j:ical4j:2.0.5" // needs upgrade implementation "com.fizzed:ch-smpp:6.0.0-netty4-beta-3" - implementation "net.java.dev.jna:jna-platform:5.4.0" - implementation "com.github.jnr:jnr-posix:3.0.50" + implementation "net.java.dev.jna:jna-platform:5.5.0" + implementation "com.github.jnr:jnr-posix:3.0.51" + implementation "com.google.protobuf:protobuf-java:$protobufVersion" implementation "javax.xml.bind:jaxb-api:2.3.1" implementation "com.sun.xml.bind:jaxb-core:2.3.0.1" implementation "com.sun.xml.bind:jaxb-impl:2.3.2" implementation "javax.activation:activation:1.1.1" - testImplementation "junit:junit:4.12" + testImplementation "junit:junit:4.13" } task copyDependencies(type: Copy) { @@ -80,7 +91,7 @@ jar { manifest { attributes( "Main-Class": "org.traccar.Main", - "Implementation-Version": "4.6", + "Implementation-Version": "4.8", "Class-Path": configurations.runtimeClasspath.files.collect { "lib/$it.name" }.join(" ")) } } |