version = "0.9.2"
java {
- sourceCompatibility = JavaVersion.VERSION_11
- targetCompatibility = JavaVersion.VERSION_11
+ sourceCompatibility = JavaVersion.VERSION_17
+ targetCompatibility = JavaVersion.VERSION_17
}
application {
this["main"].run {
configurationFileDirectories.from(file("graalvm-config-dir"))
buildArgs.add("--allow-incomplete-classpath")
+ buildArgs.add("--report-unsupported-elements-at-runtime")
}
}
}
implementation("org.bouncycastle:bcprov-jdk15on:1.69")
implementation("net.sourceforge.argparse4j:argparse4j:0.9.0")
implementation("com.github.hypfvieh:dbus-java:3.3.1")
- implementation("org.slf4j:slf4j-simple:1.7.30")
+ implementation("org.slf4j:slf4j-simple:1.7.32")
+ implementation("org.slf4j", "jul-to-slf4j", "1.7.32")
implementation(project(":lib"))
}
)
}
}
+
+task("fatJar", type = Jar::class) {
+ archiveBaseName.set("${project.name}-fat")
+ exclude(
+ "META-INF/*.SF",
+ "META-INF/*.DSA",
+ "META-INF/*.RSA",
+ "META-INF/NOTICE",
+ "META-INF/LICENSE",
+ "**/module-info.class"
+ )
+ from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
+ with(tasks.jar.get() as CopySpec)
+}