-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
79 lines (65 loc) · 2.17 KB
/
build.gradle.kts
File metadata and controls
79 lines (65 loc) · 2.17 KB
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
@file:Suppress("SpellCheckingInspection")
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
java
application
id("io.freefair.lombok") version "8.0.1"
id("io.spring.dependency-management") version "1.1.0"
id("org.springframework.boot") version "2.7.12"
}
group = "com.parolisoft"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
dependencyManagement {
dependencies {
imports {
mavenBom("org.testcontainers:testcontainers-bom:1.18.3")
}
dependencySet("org.mapstruct:1.5.5.Final") {
entry("mapstruct")
entry("mapstruct-processor")
}
}
}
dependencies {
implementation("org.mapstruct", "mapstruct")
annotationProcessor("org.mapstruct", "mapstruct-processor")
implementation("com.google.code.findbugs", "jsr305", "3.0.2")
implementation("org.springframework.boot", "spring-boot")
implementation("org.springframework.boot", "spring-boot-starter-data-jpa")
implementation("org.springframework.boot", "spring-boot-starter-data-rest")
runtimeOnly("org.flywaydb", "flyway-core")
runtimeOnly("org.postgresql", "postgresql")
testImplementation("com.parolisoft", "dbquerywatch", "1.1.0")
testImplementation("org.springframework.boot", "spring-boot-starter-test")
testImplementation("org.testcontainers", "junit-jupiter")
testImplementation("org.testcontainers", "postgresql")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.addAll(listOf(
"--release", "8",
"-Xlint:deprecation",
"-Xlint:unchecked",
"-Werror",
))
}
tasks.compileJava {
options.compilerArgs.addAll(listOf(
"-Amapstruct.suppressGeneratorTimestamp=true",
"-Amapstruct.suppressGeneratorVersionInfoComment=true",
))
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events = setOf(TestLogEvent.PASSED, TestLogEvent.FAILED)
}
}
extensions.findByName("buildScan")?.withGroovyBuilder {
setProperty("termsOfServiceUrl", "https://gradle.com/terms-of-service")
setProperty("termsOfServiceAgree", "yes")
}