-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
77 lines (58 loc) · 1.86 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
plugins {
alias(libs.plugins.versions)
alias(libs.plugins.shadow)
alias(libs.plugins.spotless)
alias(libs.plugins.nexusPublish)
alias(libs.plugins.axionRelease)
alias(libs.plugins.testLogger)
alias(libs.plugins.testRetry)
id 'java-library'
id 'groovy'
}
group = 'com.github.lburgazzoli'
apply from: "${rootProject.projectDir}/gradle/style.gradle"
apply from: "${rootProject.projectDir}/gradle/quality.gradle"
apply from: "${rootProject.projectDir}/gradle/publishing-release.gradle"
apply from: "${rootProject.projectDir}/gradle/publishing-release-tasks.gradle"
apply from: "${rootProject.projectDir}/gradle/versions.gradle"
apply from: "${rootProject.projectDir}/gradle/publish.gradle"
apply from: "${rootProject.projectDir}/gradle/release.gradle"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
api libs.slf4j
implementation libs.guava
implementation libs.bundles.jackson
implementation libs.bundles.camel
implementation libs.bundles.pulsar
implementation platform("org.apache.groovy:groovy-bom:${libs.versions.groovy.get()}")
implementation "org.apache.groovy:groovy"
testImplementation platform("org.spockframework:spock-bom:${libs.versions.spock.get()}")
testImplementation "org.spockframework:spock-core"
testImplementation libs.bundles.testing
testImplementation libs.bundles.testingIt
testRuntimeOnly libs.bundles.log4j
}
compileJava {
options.release = 17
}
test {
useJUnitPlatform()
maxParallelForks = Runtime.runtime.availableProcessors() ?: 1
retry {
maxRetries = 1
maxFailures = 5
}
}
testlogger {
theme 'mocha-parallel'
showStandardStreams false
}
tasks.register('allDeps', DependencyReportTask)
// disable standard jar task so we can have a single ube jar as result
jar.enabled = false
shadowJar {
mergeServiceFiles()
}