signal-cli/build.gradle.kts
2021-10-12 20:57:25 +02:00

66 lines
1.4 KiB
Kotlin

plugins {
java
application
eclipse
`check-lib-versions`
id("org.graalvm.buildtools.native") version "0.9.6"
}
version = "0.9.0"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
application {
mainClass.set("org.asamk.signal.Main")
}
graalvmNative {
binaries {
this["main"].run {
configurationFileDirectories.from(file("graalvm-config-dir"))
buildArgs.add("--allow-incomplete-classpath")
}
}
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation("org.bouncycastle:bcprov-jdk15on:1.69")
implementation("net.sourceforge.argparse4j:argparse4j:0.9.0")
implementation("com.github.hypfvieh:dbus-java:3.3.0")
implementation("org.slf4j:slf4j-simple:1.7.30")
implementation(project(":lib"))
}
configurations {
implementation {
resolutionStrategy.failOnVersionConflict()
}
}
tasks.withType<AbstractArchiveTask>().configureEach {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<Jar> {
manifest {
attributes(
"Implementation-Title" to project.name,
"Implementation-Version" to project.version,
"Main-Class" to application.mainClass.get()
)
}
}