Quarkus micro-profile starter using Scala 2.13.0 built with Maven tool.
getting started
git clone -b quarkus-scala --depth=1 https://github.com/daggerok/main-starter.git
cd main-starter
rm -rf .git
maven dev mode
./mvnw compile quarkus:dev
http :8080/api/v1/hello
maven build
./mvnw compile jar:jar quarkus:build
java -cp target/lib -jar target/*-runner.jar
http :8080/api/v1/hello/max
fat jar
./mvnw package -PuberJar
java -jar target/*-runner.jar
http :8080/api/v1/hello/max
maven docker-compose plugin
./mvnw -P docker compile jar:jar quarkus:build docker-compose:up
#
./mvnw -P docker docker-compose:down
docker-compose
./mvnw
docker-compose -f ./src/main/docker/docker-compose-maven.yaml up
# ...
docker-compose -f ./src/main/docker/docker-compose-maven.yaml down
docker jvm
./mvnw clean compile jar:jar quarkus:build
docker build -f src/main/docker/Dockerfile.jvm -t quarkus/quarkus-example-jvm .
docker run -i --rm --name app -p 8080:8080 quarkus/quarkus-example-jvm &
#...
docker rm -f -v app
docker native
./mvnw package -Pnative -Dnative-image.docker-build=true
docker build -f src/main/docker/Dockerfile.native -t quarkus/quarkus-example-native .
docker run -i --rm --name app -p 8080:8080 quarkus/quarkus-example-native
# ...
docker rm -f -v app
project sources archive
./mvnw assemble:single
find archive with all project sources in target folder too:
./mvnw assembly:single -Dassembly.ignoreMissingDescriptor
unzip -d target/sources target/*-sources.zip
unzip -d target/default target/*-src.zip
maven archetype generator
mvn io.quarkus:quarkus-maven-plugin:0.14.0:create \
-DprojectGroupId=com.github.daggerok \
-DprojectArtifactId=rest-api \
-DprojectVersion=1.0-SNAPSHOT \
-DclassName="com.github.daggerok.hello.RestResourcesource"
NOTE: This project has been based on GitHub: daggerok/main-starter
repo quarkus-scala
branch