From 556291ead3ac02dffaf6061f0734531b6443801f Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Mon, 20 Dec 2021 10:17:01 +0100 Subject: [PATCH] cli: Cleanup --- alpha-cli-app/build.gradle.kts | 7 ------- .../resources/META-INF/native-image/resource-config.json | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/alpha-cli-app/build.gradle.kts b/alpha-cli-app/build.gradle.kts index 5fb1950d3..c6041826a 100644 --- a/alpha-cli-app/build.gradle.kts +++ b/alpha-cli-app/build.gradle.kts @@ -1,6 +1,5 @@ plugins { id("alpha.java-application-conventions") - id("com.github.johnrengelman.shadow") version "7.1.1" id("org.mikeneck.graalvm-native-image") version "1.4.1" } @@ -74,19 +73,13 @@ tasks.test { useJUnitPlatform() } -tasks.shadowJar { - archiveClassifier.set("shadow") -} - tasks.nativeImage { mainClass = main - //mainClass.set(main) executableName = "alpha" arguments( "--no-fallback", "-H:Log=registerResource", "-H:+ReportExceptionStackTraces", - //"-H:ResourceConfigurationFiles=src/main/resources/native-image/resource-config.json", "--report-unsupported-elements-at-runtime" ) } diff --git a/alpha-cli-app/src/main/resources/META-INF/native-image/resource-config.json b/alpha-cli-app/src/main/resources/META-INF/native-image/resource-config.json index 78ea7d079..bf8083793 100644 --- a/alpha-cli-app/src/main/resources/META-INF/native-image/resource-config.json +++ b/alpha-cli-app/src/main/resources/META-INF/native-image/resource-config.json @@ -2,8 +2,8 @@ "resources": { "includes": [ { - "pattern": "alpha-core:/stringtemplates/aggregate-encodings.stg", - "pattern": ".*" + "pattern": "stringtemplates/aggregate-encodings.stg", + "pattern": "simplelogger.properties" } ] },