Skip to content

Commit 338a3cd

Browse files
committed
WIP: support a jlink'ed schnorr-example
This works on macOS if `gradle jlink` is followed by: cp /nix/store/<hash>-secp256k1-0.6.0/lib/libsecp256k1.* \ secp-examples-java/build/image/lib/
1 parent 9cd61de commit 338a3cd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

secp-examples-java/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id 'java'
33
id 'application'
4+
id 'org.beryx.jlink' version '3.1.4-rc'
45
}
56

67
ext.moduleName = 'org.bitcoinj.secp.examples'
@@ -41,6 +42,13 @@ configurations {
4142
nativeToolRuntimeOnly.extendsFrom runtimeOnly
4243
}
4344

45+
jlink {
46+
options = ['--add-modules', 'org.bitcoinj.secp.ffm']
47+
launcher {
48+
name = application.applicationName
49+
}
50+
}
51+
4452
tasks.register('runEcdsa', JavaExec) {
4553
javaLauncher = javaToolchains.launcherFor {
4654
languageVersion = JavaLanguageVersion.of(javaToolchainVersion)

0 commit comments

Comments
 (0)