added native-image plugin
This commit is contained in:
29
build.gradle
29
build.gradle
@@ -3,6 +3,7 @@ plugins {
|
||||
id 'maven-publish'
|
||||
alias(catalog.plugins.multi.release.jar)
|
||||
alias(catalog.plugins.lombok)
|
||||
alias(catalog.plugins.sambal)
|
||||
}
|
||||
|
||||
allprojects {
|
||||
@@ -18,6 +19,14 @@ allprojects {
|
||||
|
||||
pluginManager.withPlugin('java-library') {
|
||||
|
||||
java {
|
||||
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(17)
|
||||
vendor = JvmVendorSpec.GRAAL_VM
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation catalog.junit.jupiter.api
|
||||
testImplementation catalog.junit.jupiter.params
|
||||
@@ -36,6 +45,14 @@ allprojects {
|
||||
}
|
||||
|
||||
pluginManager.withPlugin('maven-publish') {
|
||||
|
||||
pluginManager.withPlugin('java-library') {
|
||||
java {
|
||||
withJavadocJar()
|
||||
withSourcesJar()
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
@@ -51,11 +68,6 @@ allprojects {
|
||||
}
|
||||
}
|
||||
|
||||
java {
|
||||
withJavadocJar()
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
ext {
|
||||
setProperty('jpms.module.name', 'net.woggioni.jwo')
|
||||
}
|
||||
@@ -70,11 +82,6 @@ dependencies {
|
||||
pathClassloaderTest group: 'com.google.inject', name: 'guice', version: getProperty('guice.version')
|
||||
}
|
||||
|
||||
java {
|
||||
withJavadocJar()
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
compileJava {
|
||||
options.release = 8
|
||||
options.compilerArgs << '-parameters'
|
||||
@@ -104,5 +111,3 @@ test {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user