Configure NBT so that it works consistently
This commit configures the Native Build Tools plugin to use Maven's `target/classes` rather than the default generated JAR of the project. Previously, this would fail with the default repackage option as the default JAR is the repackaged archive and it has a specific format that NBT can't understand. Closes gh-31848
This commit is contained in:
parent
85c41d6698
commit
f962f2a430
|
|
@ -238,25 +238,20 @@ publishing.publications.withType(MavenPublication) {
|
||||||
delegate.goal('aot-generate')
|
delegate.goal('aot-generate')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
execution {
|
|
||||||
delegate.id('repackage')
|
|
||||||
configuration {
|
|
||||||
delegate.classifier('exec')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
plugin {
|
plugin {
|
||||||
delegate.groupId('org.graalvm.buildtools')
|
delegate.groupId('org.graalvm.buildtools')
|
||||||
delegate.artifactId('native-maven-plugin')
|
delegate.artifactId('native-maven-plugin')
|
||||||
configuration {
|
configuration {
|
||||||
|
delegate.classesDirectory('${project.build.outputDirectory}')
|
||||||
metadataRepository {
|
metadataRepository {
|
||||||
delegate.enabled('true')
|
delegate.enabled('true')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
executions {
|
executions {
|
||||||
execution {
|
execution {
|
||||||
delegate.id('build-native')
|
delegate.id('native-build')
|
||||||
goals {
|
goals {
|
||||||
delegate.goal('build')
|
delegate.goal('build')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue