generated from creek-service/basic-kafka-streams-demo
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
81 lines (69 loc) · 3.45 KB
/
build.gradle.kts
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
plugins {
java
jacoco
`common-convention` apply false
`module-convention` apply false
`coverage-convention`
`publishing-convention` apply false
id("pl.allegro.tech.build.axion-release") version "1.14.4" // https://plugins.gradle.org/plugin/pl.allegro.tech.build.axion-release
id("com.bmuschko.docker-remote-api") version "9.2.1" apply false
}
project.version = scmVersion.version
allprojects {
tasks.jar {
onlyIf { sourceSets.main.get().allSource.files.isNotEmpty() }
}
}
subprojects {
project.version = project.parent?.version!!
apply(plugin = "common-convention")
apply(plugin = "module-convention")
if (!name.startsWith("test-")) {
apply(plugin = "jacoco")
}
// Only publish the API module, as this is the only module other repos should need.
if (name == "api") {
apply(plugin = "publishing-convention")
}
extra.apply {
set("creekVersion", "0.3.2") // https://mvnrepository.com/artifact/org.creekservice
set("kafkaVersion", "3.4.0") // https://mvnrepository.com/artifact/org.apache.kafka/kafka-clients
set("spotBugsVersion", "4.4.2") // https://mvnrepository.com/artifact/com.github.spotbugs/spotbugs-annotations
set("guavaVersion", "31.1-jre") // https://mvnrepository.com/artifact/com.google.guava/guava
set("log4jVersion", "2.20.0") // https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
set("junitVersion", "5.9.2") // https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api
set("junitPioneerVersion", "2.0.0") // https://mvnrepository.com/artifact/org.junit-pioneer/junit-pioneer
set("mockitoVersion", "5.1.1") // https://mvnrepository.com/artifact/org.mockito/mockito-junit-jupiter
set("hamcrestVersion", "2.2") // https://mvnrepository.com/artifact/org.hamcrest/hamcrest-core
}
val creekVersion : String by extra
val guavaVersion : String by extra
val log4jVersion : String by extra
val kafkaVersion : String by extra
val junitVersion: String by extra
val junitPioneerVersion: String by extra
val mockitoVersion: String by extra
val hamcrestVersion : String by extra
dependencies {
testImplementation("org.creekservice:creek-test-hamcrest:$creekVersion")
testImplementation("org.creekservice:creek-test-util:$creekVersion")
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-params:$junitVersion")
testImplementation("org.junit-pioneer:junit-pioneer:$junitPioneerVersion")
testImplementation("org.mockito:mockito-junit-jupiter:$mockitoVersion")
testImplementation("org.hamcrest:hamcrest-core:$hamcrestVersion")
testImplementation("com.google.guava:guava-testlib:$guavaVersion")
testImplementation("org.apache.logging.log4j:log4j-core:$log4jVersion")
testImplementation("org.apache.logging.log4j:log4j-slf4j2-impl:$log4jVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
}
configurations.all {
resolutionStrategy.eachDependency {
if (requested.group == "org.apache.kafka") {
// Need a known Kafka version for module patching to work:
useVersion(kafkaVersion)
}
}
}
}
defaultTasks("format", "static", "check")