/
build.gradle
60 lines (51 loc) · 1.33 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
plugins {
id 'java'
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
dependencies {
implementation 'com.google.guava:guava'
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'javax.json:javax.json-api'
implementation 'org.glassfish:javax.json'
implementation 'com.google.protobuf:protobuf-java-util'
testImplementation('org.junit.jupiter:junit-jupiter-api')
testImplementation('org.junit.jupiter:junit-jupiter-engine')
testImplementation('org.junit.jupiter:junit-jupiter-params')
testImplementation('org.assertj:assertj-core')
testImplementation('org.mockito:mockito-core')
testImplementation('org.mockito:mockito-junit-jupiter')
}
def protoSrcDir = "$projectDir/build/generated"
idea {
module {
sourceDirs += file(protoSrcDir);
}
}
//sourceSets {
// main {
// proto {
// srcDir protoSrcDir
// }
// }
//}
//protobuf {
// protoc {
// artifact = 'com.google.protobuf:protoc:3.19.4'
// }
// generatedFilesBaseDir = protoSrcDir
// generateProtoTasks {
// ofSourceSet('main')
// }
//}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
tasks.withType(JavaCompile) {
options.with {
encoding = 'UTF-8'
}
}