-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
83 lines (66 loc) · 1.94 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
plugins {
id "checkstyle"
id "io.spring.javaformat" version "$javaFormatVersion"
id "java"
id "org.springframework.boot" version "3.3.5"
}
repositories {
mavenCentral()
}
java {
sourceCompatibility = '17'
}
checkstyle {
toolVersion = "10.13.0"
}
def integrationTest = sourceSets.create("integrationTest") {
compileClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.main.output
}
configurations {
checkstyle {
resolutionStrategy.capabilitiesResolution.withCapability("com.google.collections:google-collections") {
select("com.google.guava:guava:0")
}
}
integrationTestImplementation {
extendsFrom(testImplementation)
}
integrationTestRuntimeOnly {
extendsFrom(testRuntimeOnly)
}
}
dependencies {
checkstyle("com.puppycrawl.tools:checkstyle:${checkstyle.toolVersion}")
checkstyle("io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}")
implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))
implementation("org.bouncycastle:bcpg-jdk18on:1.79")
implementation("org.springframework:spring-web")
implementation("org.springframework.boot:spring-boot-starter-json")
integrationTestImplementation("org.testcontainers:junit-jupiter")
integrationTestImplementation("org.testcontainers:testcontainers")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks.withType(Test) {
useJUnitPlatform()
}
tasks.named("jar") {
enabled = false;
}
tasks.named("bootJar") {
archiveVersion = ""
}
tasks.register('integrationTest', Test) {
description = "Runs integration tests"
group = "verification"
testClassesDirs = integrationTest.output.classesDirs
classpath = integrationTest.runtimeClasspath
shouldRunAfter(tasks.named('test'))
}
tasks.named("check") {
dependsOn(tasks.named("integrationTest"))
}
tasks.withType(JavaCompile) {
options.compilerArgs = ["-parameters", "-Xlint:all"]
}