-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
90 lines (69 loc) · 1.96 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
83
84
85
86
87
88
89
90
apply plugin: 'java'
apply plugin: 'application'
mainClassName = 'org.peidevs.waro.Main'
repositories {
mavenCentral()
}
dependencies {
implementation 'com.fasterxml.jackson.core:jackson-core:2.11.2'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.11.2'
implementation 'org.apache.httpcomponents:httpclient:4.5.10'
implementation 'com.google.guava:guava:24.1-jre'
implementation 'org.apache.commons:commons-lang3:3.10'
implementation 'org.springframework:spring-context:5.2.5.RELEASE'
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
sourceCompatibility = 19
run {
standardInput = System.in
}
test {
jvmArgs(['--enable-preview'])
useJUnitPlatform()
testLogging {
events "passed", "failed"
}
}
tasks.withType(JavaCompile) {
options.compilerArgs += '--enable-preview'
}
tasks.withType(JavaExec) {
jvmArgs += "--enable-preview"
}
installDist.doFirst {
ant.delete(dir: project.stagingDir)
}
installDist {
into project.stagingDir
}
// --------- integration tests
sourceSets {
integration {
java.srcDir "$projectDir/src/integration/java"
resources.srcDir "$projectDir/src/integration/resources"
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
}
}
configurations {
integrationImplementation.extendsFrom testImplementation
integrationRuntime.extendsFrom testRuntime
}
task testIntegration(type: Test) {
testClassesDirs = sourceSets.integration.output.classesDirs
classpath = sourceSets.integration.runtimeClasspath
jvmArgs(['--enable-preview'])
useJUnitPlatform()
testLogging {
events "passed", "failed"
}
}
// --------- build scan
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
tag "backend-engineer"
}
}