build: add enable native access attribute to jar manifest

This commit is contained in:
Gauthier Roebroeck 2025-06-25 10:46:28 +08:00
parent 5f9cc449b7
commit 860274079d

View file

@ -1,3 +1,4 @@
import nu.studer.gradle.jooq.JooqGenerate
import org.apache.tools.ant.taskdefs.condition.Os
import org.flywaydb.gradle.task.FlywayMigrateTask
@ -156,6 +157,12 @@ tasks {
maxHeapSize = "1G"
}
withType<Jar> {
manifest {
attributes("Enable-Native-Access" to "ALL-UNNAMED")
}
}
getByName<Jar>("jar") {
enabled = true
}