-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
48 lines (41 loc) · 1 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
plugins {
id 'java'
id 'application'
}
group = 'org.example'
version = '0.1' // version is not important for the sample app
repositories {
mavenCentral()
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
// Reproducible builds
tasks.withType(AbstractArchiveTask).configureEach {
preserveFileTimestamps = false
reproducibleFileOrder = true
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
options.compilerArgs += [
"-Xlint:deprecation",
"-Xlint:removal",
"-Xlint:unchecked",
// TODO Eventually we should enable -Werror here
//"-Werror"
]
}
dependencies {
implementation libs.slf4j
implementation project(":penna-api")
implementation project(":penna-core")
runtimeOnly project(":penna-yaml-config")
runtimeOnly libs.jackson.core
runtimeOnly libs.jackson.databind
runtimeOnly libs.jackson.yaml
}
application {
mainClass = 'org.example.Main'
}