-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
89 lines (75 loc) · 2.4 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
plugins {
id 'java'
id 'application'
id 'checkstyle'
id 'jacoco'
id "com.google.protobuf" version "0.8.12"
id "com.github.johnrengelman.shadow" version "6.0.0"
id 'org.kordamp.gradle.jdeps' version '0.11.0' apply false
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation group: 'org.apache.kafka', name: 'kafka-clients', version: '2.5.0'
implementation group: 'org.apache.kafka', name: 'kafka-streams', version: '2.5.0'
implementation group: 'com.typesafe', name: 'config', version: '1.4.0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.13.3'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.13.3'
implementation group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.13.3'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.11.1'
implementation group: 'com.google.protobuf', name: 'protobuf-java', version: '3.12.2'
implementation group: 'io.opentelemetry', name: 'opentelemetry-sdk', version: '0.5.0'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter', version: '5.6.2'
testImplementation group: 'org.apache.kafka', name: 'kafka-streams-test-utils', version: '2.5.0'
}
group 'com.rhysmccaig.kscheduler'
version '1.0.0-SNAPSHOT'
application {
mainClassName = 'com.rhysmccaig.kscheduler.KScheduler'
}
checkstyle {
toolVersion '8.33'
configFile file("${project.rootDir}/config/checkstyle/google_checks.xml")
}
compileJava {
options.encoding = 'UTF-8'
}
compileTestJava {
options.encoding = 'UTF-8'
}
// jdepsReport {
// multiRelease 14
// recursive true
// }
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
protobuf {
generatedFilesBaseDir = "$projectDir/build/generated"
protoc {
artifact = 'com.google.protobuf:protoc:3.12.2'
}
}
jacocoTestReport {
dependsOn test
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: 'com/rhysmccaig/kscheduler/model/protos')
}))
}
}
test {
useJUnitPlatform()
enableAssertions = true
finalizedBy jacocoTestReport
}
sourceSets {
main {
java {
srcDirs = ['src/main/java', 'build/generated/main/java']
}
}
}