added native-image plugin
This commit is contained in:
@@ -2,6 +2,7 @@ plugins {
|
||||
id 'java-library'
|
||||
alias(catalog.plugins.lombok)
|
||||
alias(catalog.plugins.envelope)
|
||||
alias(catalog.plugins.native.image)
|
||||
}
|
||||
|
||||
repositories {
|
||||
@@ -12,7 +13,10 @@ dependencies {
|
||||
implementation project(':jmath')
|
||||
}
|
||||
|
||||
envelopeJar {
|
||||
application {
|
||||
mainClass = 'net.woggioni.jmath.benchmark.Main'
|
||||
}
|
||||
|
||||
configureNativeImage {
|
||||
args('20')
|
||||
}
|
||||
|
2
jmath-benchmark/native-image/jni-config.json
Normal file
2
jmath-benchmark/native-image/jni-config.json
Normal file
@@ -0,0 +1,2 @@
|
||||
[
|
||||
]
|
1
jmath-benchmark/native-image/native-image.properties
Normal file
1
jmath-benchmark/native-image/native-image.properties
Normal file
@@ -0,0 +1 @@
|
||||
Args=-H:Optimize=3 --initialize-at-build-time=net.woggioni.jmath.benchmark.Main
|
@@ -0,0 +1,8 @@
|
||||
[
|
||||
{
|
||||
"type":"agent-extracted",
|
||||
"classes":[
|
||||
]
|
||||
}
|
||||
]
|
||||
|
2
jmath-benchmark/native-image/proxy-config.json
Normal file
2
jmath-benchmark/native-image/proxy-config.json
Normal file
@@ -0,0 +1,2 @@
|
||||
[
|
||||
]
|
2
jmath-benchmark/native-image/reflect-config.json
Normal file
2
jmath-benchmark/native-image/reflect-config.json
Normal file
@@ -0,0 +1,2 @@
|
||||
[
|
||||
]
|
5
jmath-benchmark/native-image/resource-config.json
Normal file
5
jmath-benchmark/native-image/resource-config.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"resources":{
|
||||
"includes":[]},
|
||||
"bundles":[]
|
||||
}
|
8
jmath-benchmark/native-image/serialization-config.json
Normal file
8
jmath-benchmark/native-image/serialization-config.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"types":[
|
||||
],
|
||||
"lambdaCapturingTypes":[
|
||||
],
|
||||
"proxies":[
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user