Use

java -agentlib:native-image-agent=config-output-dir=ConfigFolderName -jar build/libs/embedded-kafka-0.0.1-SNAPSHOT.jar

to get configurations

github token - TOKEN

Login to github

export CR_PAT=TOKEN
echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin

Native static

https://www.graalvm.org/22.3/reference-manual/native-image/guides/build-static-executables/ https://graalvm.github.io/native-build-tools/latest/gradle-plugin.html

export GRAALVM_HOME=`/usr/libexec/java_home -v 17.0.5`
PATH=$PATH:$GRAALVM_HOME/bin

jar cmvf META-INF/MANIFEST.MF <new-jar-filename>.jar  <files to include>

native-image -jar ./build/libs/demo-0.0.1-SNAPSHOT-plain.jar

graalvm