-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
51 lines (43 loc) · 1.28 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
plugins {
id 'org.springframework.boot' version '2.3.3.RELEASE'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'org.asciidoctor.convert' version '1.5.8'
id 'java'
}
group = 'com.acme'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '14'
repositories {
mavenCentral()
}
ext {
set('snippetsDir', file("build/generated-snippets"))
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.apache.kafka:kafka-streams'
implementation 'org.springframework.kafka:spring-kafka'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation 'io.projectreactor:reactor-test'
testImplementation 'org.springframework.kafka:spring-kafka-test'
testImplementation 'org.awaitility:awaitility:4.0.3'
testImplementation 'org.springframework.restdocs:spring-restdocs-webtestclient'
}
test {
outputs.dir snippetsDir
useJUnitPlatform()
jvmArgs("--enable-preview")
}
asciidoctor {
inputs.dir snippetsDir
dependsOn test
}
tasks.withType(JavaCompile) {
options.incremental = true
options.compilerArgs.add("--enable-preview") // records and switch features in preview ;)
}
tasks.withType(JavaExec) {
jvmArgs += '--enable-preview'
}