-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
58 lines (45 loc) · 1.35 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
plugins {
id 'com.diffplug.spotless' version '6.1.0'
id("dev.jacomet.logging-capabilities") version "0.11.1"
}
repositories {
//mavenLocal()
mavenCentral()
}
subprojects { subproj ->
apply plugin: 'application'
apply plugin: 'com.diffplug.spotless'
repositories {
mavenLocal()
mavenCentral()
}
spotless {
java {
googleJavaFormat()
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
loggingCapabilities {
enforceLogback()
}
dependencies {
// logstash-logback-encoder 7.4 uses SLF4J 2, so must use logback 1.3 or 1.4
implementation "ch.qos.logback:logback-classic:1.5.3"
implementation 'net.logstash.logback:logstash-logback-encoder:7.4'
// logstash-logback-encoder 7.3 uses logback 1.2
//implementation "ch.qos.logback:logback-classic:1.2.12"
//implementation 'net.logstash.logback:logstash-logback-encoder:7.3'
// Use JUnit Jupiter for testing.
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
testImplementation 'org.assertj:assertj-core:3.21.0'
testImplementation 'org.awaitility:awaitility:4.1.1'
}
tasks.named('test') {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}
}