added native-image plugin

This commit is contained in:
2023-10-05 21:33:54 +08:00
parent 70123e1c08
commit 16d2bffde6
37 changed files with 290 additions and 60 deletions

View File

@@ -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 {
}