POC for OSGi Connect Native Builds.
./greeting
A simple OSGi application using Declarative Services.
- Install GraalVM CE Java 11 and Native Image
gu install native-image
- Clone Atomos to local directory and install
cd [local directory]
./mvnw clean install -Psubstrate
- Clone OSGiAOT to local directory
cd [local directory]
- Build
./mvnw clean package
- Run greeting uber-jar
java -jar ./greeting/greeting.launch/target/run.jar
- Test by entering
hello [name]
andhallo [name]
- Run greeting uber-jar
./greeting/greeting.native/target/native_image_build/[random]/bin/greeting-native
- Test by entering
hello [name]
andhallo [name]