-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
42 lines (34 loc) · 1.08 KB
/
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
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
id("com.gradleup.shadow") version "8.3.5"
java
}
java {
sourceCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
}
dependencies {
implementation("commons-codec:commons-codec:1.17.0")
implementation("com.fasterxml.jackson.core:jackson-databind:2.17.0")
implementation("io.javalin:javalin:6.3.0")
implementation("org.locationtech.spatial4j:spatial4j:0.8")
implementation("org.slf4j:slf4j-simple:2.0.13")
testImplementation("org.junit.jupiter:junit-jupiter:5.10.3")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks.withType<JavaCompile> {
options.compilerArgs.add("-Xlint:unchecked")
options.compilerArgs.add("-Xlint:deprecation")
options.compilerArgs.add("-Werror")
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging.events = setOf(TestLogEvent.FAILED, TestLogEvent.SKIPPED)
testLogging.showStandardStreams = true
testLogging.showExceptions = true
}
tasks.jar {
manifest.attributes["Main-Class"] = "MapServer"
}