-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
45 lines (36 loc) · 985 Bytes
/
build.gradle.kts
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
plugins {
java
checkstyle
id("com.diffplug.spotless") version "7.0.1"
}
spotless {
java {
leadingSpacesToTabs(4)
removeUnusedImports()
trimTrailingWhitespace()
googleJavaFormat() // google's java style guide
}
}
checkstyle {
toolVersion = "10.21.1"
configFile = file("${project.projectDir}/config/checkstyle/checkstyle.xml")
}
group = "me.dvcopae.tickets"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
runtimeOnly("org.postgresql:postgresql:42.7.4")
testRuntimeOnly ("org.junit.platform:junit-platform-launcher")
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.mockito:mockito-core:5.4.0")
testImplementation("org.mockito:mockito-junit-jupiter:5.4.0")
}
tasks.test {
useJUnitPlatform()
if (project.hasProperty("skipDBTest")) {
exclude("**/*DBTest*")
}
}