-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
82 lines (72 loc) · 3.14 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
plugins {
id 'org.springframework.boot' version "2.6.2"
id "de.undercouch.download" version "5.2.1"
id 'java'
}
group 'sky'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
configurations {
all {
exclude group: 'org.apache.logging.log4j', module: 'log4j-slf4j-impl'
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-web'
}
}
dependencies {
implementation("org.glassfish.jaxb:jaxb-runtime:2.3.3")
implementation("org.springframework.boot:spring-boot-starter:2.7.3")
implementation("org.springframework.boot:spring-boot-configuration-processor:2.7.3")
implementation("ch.qos.logback:logback-core:1.2.6")
implementation("org.slf4j:slf4j-api:1.7.30")
implementation 'org.jetbrains:annotations:23.0.0'
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor:2.7.3")
annotationProcessor("org.springframework.boot:spring-boot-autoconfigure:2.7.3")
implementation("org.springframework.kafka:spring-kafka:2.9.0")
testImplementation("org.springframework.kafka:spring-kafka-test:2.9.0")
implementation("org.springframework.boot:spring-boot-starter-parent:2.7.3")
implementation("org.springframework.boot:spring-boot-starter-webflux:2.7.3")
implementation("org.springframework.boot:spring-boot-starter-validation:2.7.3")
implementation("javax.annotation:jsr250-api:1.0")
implementation('com.fasterxml.jackson.core:jackson-annotations:2.13.4')
implementation("io.projectreactor.kafka:reactor-kafka:1.3.12")
implementation("io.projectreactor.kafka:reactor-kafka-tools:1.3.12")
implementation('com.fasterxml.jackson.core:jackson-databind:2.13.4')
implementation("io.projectreactor:reactor-core:3.4.23")
compileOnly('org.projectlombok:lombok:1.18.24')
annotationProcessor("org.projectlombok:lombok:1.18.22")
implementation("io.github.resilience4j:resilience4j-reactor:1.7.1")
testCompileOnly("org.projectlombok:lombok:1.18.22")
testAnnotationProcessor("org.projectlombok:lombok:1.18.22")
testImplementation("org.assertj:assertj-core:3.23.1")
testImplementation("org.springframework.boot:spring-boot-starter-test:2.7.3")
testImplementation("org.junit.platform:junit-platform-commons:1.9.0")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.9.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
testImplementation('org.testcontainers:kafka:1.17.4')
testImplementation('org.testcontainers:junit-jupiter:1.17.4')
}
test {
useJUnitPlatform()
}
tasks.withType(Test) {
jvmArgs += "--enable-preview"
}
tasks.withType(JavaExec) {
jvmArgs += '--enable-preview'
}
tasks.withType(Test).all {
jvmArgs += '--enable-preview'
jvmArgs += '--add-opens=java.base/sun.nio.ch=ALL-UNNAMED'
}
tasks.withType(JavaCompile).all {
options.compilerArgs += ['--enable-preview']
options.compilerArgs += ['--add-opens=java.base/sun.nio.ch=ALL-UNNAMED']
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
compileJava {
options.compilerArgs += ["--enable-preview"]
}