remove native build

This commit is contained in:
Kilian Schuettler 2023-07-27 13:29:14 +02:00
parent c186927e3d
commit 510ec7ce45

View File

@ -6,7 +6,7 @@ plugins {
id("io.spring.dependency-management") version "1.1.0" id("io.spring.dependency-management") version "1.1.0"
id("org.sonarqube") version "4.2.1.3168" id("org.sonarqube") version "4.2.1.3168"
id("io.freefair.lombok") version "8.1.0" id("io.freefair.lombok") version "8.1.0"
id("org.graalvm.buildtools.native") version "0.9.23" //id("org.graalvm.buildtools.native") version "0.9.23"
} }
dependencies { dependencies {
@ -38,7 +38,7 @@ description = "layoutparser-service-server"
java { java {
withJavadocJar() withJavadocJar()
} }
/*
// AOT seems to be the name of the generated classes for native images // AOT seems to be the name of the generated classes for native images
// They are added as a SourceSet, and therefore checkstyle and pmd try to run on it // They are added as a SourceSet, and therefore checkstyle and pmd try to run on it
tasks.named<Checkstyle>("checkstyleAot") { tasks.named<Checkstyle>("checkstyleAot") {
@ -67,12 +67,14 @@ graalvmNative {
buildArgs.add("--initialize-at-build-time=org.slf4j.LoggerFactory,ch.qos.logback") buildArgs.add("--initialize-at-build-time=org.slf4j.LoggerFactory,ch.qos.logback")
buildArgs.add("--initialize-at-run-time=io.netty") buildArgs.add("--initialize-at-run-time=io.netty")
} }
} }
} }
nativeBuild { nativeBuild {
buildArgs("-H:ReflectionConfigurationFiles=../../../src/main/resources/reflection-config.json") buildArgs("-H:ReflectionConfigurationFiles=../../../src/main/resources/reflection-config.json")
} }
*/
tasks.named<BootBuildImage>("bootBuildImage") { tasks.named<BootBuildImage>("bootBuildImage") {
imageName.set("nexus.knecon.com:5001/ff/${project.name}:${project.version}") imageName.set("nexus.knecon.com:5001/ff/${project.name}:${project.version}")
if (project.hasProperty("buildbootDockerHostNetwork")) { if (project.hasProperty("buildbootDockerHostNetwork")) {