- Bundle native library in jar and extract at runtime.
- Don't reinitialise terminal in TerminalAccess.getTerminal() if already initialised.
This commit is contained in:
10
build.gradle
10
build.gradle
@@ -64,6 +64,16 @@ task nativeHeaders {
|
||||
}
|
||||
}
|
||||
|
||||
task nativeJar(type: Jar) {
|
||||
from compileMain
|
||||
archiveName = 'native-platform-jni.jar'
|
||||
}
|
||||
|
||||
startScripts.classpath += nativeJar.outputs.files
|
||||
applicationDistribution.from(nativeJar) {
|
||||
into 'lib'
|
||||
}
|
||||
|
||||
compileMain.dependsOn nativeHeaders
|
||||
test.dependsOn compileMain
|
||||
|
||||
|
||||
Reference in New Issue
Block a user