forked from GrapheneOS/AttestationServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
49 lines (41 loc) · 1.22 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
plugins {
java
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(19))
}
}
tasks.jar {
manifest {
attributes("Main-Class" to "app.attestation.server.AttestationServer")
}
}
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.2")
implementation("com.google.guava:guava:31.1-jre")
implementation("com.google.zxing:core:3.5.1")
implementation("com.google.zxing:javase:3.5.1")
implementation("org.bouncycastle:bcpkix-jdk18on:1.72")
implementation("org.eclipse.angus:jakarta.mail:1.0.0")
implementation("org.eclipse.parsson:jakarta.json:1.1.1")
}
tasks.withType<AbstractArchiveTask>().configureEach {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
}
tasks.withType<JavaCompile> {
options.compilerArgs.addAll(arrayOf("-Xlint:unchecked", "-Xlint:deprecation"))
}
val copyJavaDeps by tasks.registering(Copy::class) {
from(configurations.runtimeClasspath)
into("build/libs")
}
tasks.build {
dependsOn(copyJavaDeps)
}