aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-11-29 17:22:36 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-11-29 17:22:36 -0800
commit1f9d57f90960b4aa538cb7f6e383820630d7d365 (patch)
tree634e2a9ea263785de2d314303c0cf83a7bdf583b /build.gradle
parent534331ccc9c9cbd7cdc2dbf84dfbbfdadcb54e28 (diff)
downloadtrackermap-server-1f9d57f90960b4aa538cb7f6e383820630d7d365.tar.gz
trackermap-server-1f9d57f90960b4aa538cb7f6e383820630d7d365.tar.bz2
trackermap-server-1f9d57f90960b4aa538cb7f6e383820630d7d365.zip
Add protobuf code generation
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle19
1 files changed, 14 insertions, 5 deletions
diff --git a/build.gradle b/build.gradle
index 0842a6a0f..6229a96c3 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,12 +1,21 @@
plugins {
id "java"
id "checkstyle"
+ id "com.google.protobuf" version "0.8.10"
}
repositories {
mavenCentral()
}
+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
+ protobufVersion = "3.11.0"
+}
+
sourceCompatibility = "1.8"
compileJava.options.encoding = "UTF-8"
@@ -15,11 +24,10 @@ checkstyle {
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 {
+ protoc {
+ artifact = "com.google.protobuf:protoc:$protobufVersion"
+ }
}
dependencies {
@@ -59,6 +67,7 @@ dependencies {
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 "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"