forked from fonoster/routr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
102 lines (92 loc) · 2.89 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
buildscript {
repositories {
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
}
}
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.72'
id 'com.google.protobuf' version '0.8.8'
}
test {
useJUnitPlatform()
}
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'io.grpc:grpc-all:1.19.0'
compile 'com.google.protobuf:protobuf-java:3.6.1'
compileOnly 'javax.annotation:javax.annotation-api:1.2'
compile 'net.openhft:chronicle-map:3.17.6'
compile 'log4j:log4j:1.2.17'
compile 'org.slf4j:slf4j-nop:1.7.28'
compile 'org.apache.logging.log4j:log4j-core:2.11.0'
compile 'org.apache.logging.log4j:log4j-1.2-api:2.11.0'
compile 'org.apache.commons:commons-lang3:3.10'
compile 'org.mongodb:bson:3.7.1'
compile 'org.graalvm.js:js:19.3.0'
compile 'org.graalvm.js:js-scriptengine:19.3.0'
compile 'javax.sip:jain-sip-ri:1.2.324' // Newer versions of JAIN-SIP are causing critical regression with Routr
compile 'javax.xml.bind:jaxb-api:2.4.0-b180830.0359'
compile 'redis.clients:jedis:2.9.0'
compile 'io.jsonwebtoken:jjwt:0.9.1'
compile 'it.unimi.dsi:dsiutils:2.6.0'
compile 'commons-codec:commons-codec:1.13'
compile 'commons-net:commons-net:3.6'
compile 'commons-io:commons-io:2.6'
compile 'com.github.ben-manes.caffeine:caffeine:2.8.0'
compile 'com.networknt:json-schema-validator:1.0.29'
compile 'com.jayway.jsonpath:json-path:2.4.0'
compile 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.5'
compile 'com.fasterxml.jackson.core:jackson-databind:2.9.6'
compile 'com.fasterxml.jackson.module:jackson-module-kotlin:2.9.6'
compile 'com.sparkjava:spark-core:2.9.1'
compile 'com.qmetric:spark-authentication:1.4'
compile 'io.kotest:kotest-runner-junit5-jvm:4.0.3'
compile 'io.kotest:kotest-assertions-core-jvm:4.0.3'
compile 'io.kotest:kotest-property-jvm:4.0.3'
implementation 'org.jetbrains.kotlin:kotlin-reflect:1.3.50'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7'
}
sourceSets {
main {
java {
srcDirs 'build/generated/source/proto/main/grpc'
srcDirs 'build/generated/source/proto/main/java'
}
}
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.7.0"
}
plugins {
grpc {
artifact = "io.grpc:protoc-gen-grpc-java:1.19.0"
}
}
generateProtoTasks {
all()*.plugins {
grpc {}
}
}
}
configurations.all {
// Mutes 3rd party loggers
exclude group: 'ch.qos.logback', module: 'logback-classic'
exclude group: 'ch.qos.logback', module: 'logback-core'
}
repositories {
mavenCentral()
}
tasks.withType(Jar) {
destinationDir = file("$rootDir/libs")
}
task copyRuntimeLibs(type: Copy) {
into 'libs'
from configurations.testRuntime
}