A command-line application that generates and displays an ASCII-art representation of the input string.
This demo shows how this application can be built with Jeka, even though it contains no build configuration.
Compile, tests, create Jar and run the application with specified arguments:
jeka -p Hello JeKa
Run only tests:
jeka project: test
Create Docker Image (need Docker cli):
jeka docker: build
Then run the image:
docker run --rm demo-zero-conf:latest "Hello Docker"
Compile to native executable:
jeka native: compile includeAllResources=true
Once compiled to native, you can execute it (this time, the native executable will run instead of the Java application):
jeka -p "Hello Native"
Create Docker image:
jeka docker: buildNative native: includeAllResources=true
Run the native image:
docker run --rm native-demo-zero-conf:latest Hello JeKa
Execute directly the application from its GIT repo:
jeka -r https://github.com/jeka-dev/demo-zero-conf.git -p "Hello remote Git"
To avoid repetitive typing, you can store configuration in thejeka.properties
file, like this:
@native.includeAllResources=true