-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
build.gradle.kts
52 lines (44 loc) · 1.32 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
43
44
45
46
47
48
49
50
51
52
plugins {
java
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
tasks.jar {
manifest {
attributes(
"Main-Class" to "app.attestation.server.AttestationServer",
"Class-Path" to configurations.runtimeClasspath.get().joinToString(" ") { it.name }
)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("com.almworks.sqlite4java:sqlite4java:1.0.392")
runtimeOnly(files("libs/sqlite4java-prebuilt/libsqlite4java-linux-amd64-1.0.392.so"))
implementation("com.github.ben-manes.caffeine:caffeine:3.1.8")
implementation("com.google.guava:guava:33.3.1-jre")
implementation("com.google.zxing:core:3.5.3")
implementation("com.google.zxing:javase:3.5.3")
implementation("org.bouncycastle:bcprov-jdk18on:1.79")
implementation("org.eclipse.angus:jakarta.mail:2.0.3")
implementation("org.eclipse.parsson:jakarta.json:1.1.7")
}
tasks.withType<AbstractArchiveTask>().configureEach {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
}
tasks.withType<JavaCompile> {
options.compilerArgs.addAll(listOf("-Xlint", "-Xlint:-serial"))
}
val copyJavaDeps by tasks.registering(Copy::class) {
from(configurations.runtimeClasspath)
into("build/libs")
}
tasks.build {
dependsOn(copyJavaDeps)
}