mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-03 20:50:38 +00:00
moved from gradle graalvm-native-image plugin to native-build.sh
This commit is contained in:
parent
98ca1eeb9a
commit
cdf829c75e
2 changed files with 42 additions and 21 deletions
30
build.gradle
30
build.gradle
|
@ -1,9 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'application'
|
||||
id 'eclipse'
|
||||
id 'org.mikeneck.graalvm-native-image' version '1.1.0'
|
||||
}
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'application'
|
||||
apply plugin: 'eclipse'
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
|
@ -27,21 +24,6 @@ dependencies {
|
|||
implementation 'org.slf4j:slf4j-simple:1.7.30'
|
||||
}
|
||||
|
||||
nativeImage {
|
||||
mainClass = mainClassName
|
||||
executableName = 'signal-cli'
|
||||
arguments(
|
||||
"--no-fallback",
|
||||
"--allow-incomplete-classpath",
|
||||
"--report-unsupported-elements-at-runtime",
|
||||
"--enable-url-protocols=http,https",
|
||||
"--enable-https",
|
||||
"--enable-all-security-services",
|
||||
"-H:ResourceConfigurationFiles=graalvm-config-dir/resource-config.json",
|
||||
"-H:ReflectionConfigurationFiles=graalvm-config-dir/reflect-config.json"
|
||||
)
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes(
|
||||
|
@ -92,3 +74,9 @@ task checkLibVersions {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
task printRuntimeClasspath {
|
||||
doLast {
|
||||
print sourceSets.main.runtimeClasspath.asPath
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue