Skip to content

jeka-dev/demo-zero-conf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

JeKa Demo - Build with Zero-Conf

This demo illustrates how to build a Java application using Jeka without requiring any build configuration.

The built application is a command-line tool that generates and displays an ASCII-art representation of an input string.

This application relies on third party dependencies, declared in dependencies.txt file.


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" 

Notes

To avoid repetitive typing, you can store configuration in thejeka.properties file, like this:

@native.includeAllResources=true

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages