Skip to content

jeka-dev/demo-base-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Projectless Application

This repository demonstrates JeKa's ability to build, dockerize, and publish applications with zero build configurations or project structure.

The application is a simple command line tool displaying OpenJDK distributions managed by foojay-disco, by requesting the foojay-disco REST API.

Here, we don't create a project structure but rely solely on the JeKa scripting engine. Sources and tests are all located in the jeka-src directory, which allows declaring dependencies directly in Java code.

By convention, the _dev package (and its sub-packages) contains code and dependencies that are excluded from the production JAR.

This structure is suitable for small to medium-sized applications but can be trivially moved to a project structure later on.

Note:
This application can be easily moved into a plain project structure without requiring build configuration (only dependencies need to be externalized in a dependency.txt file).

Execute Directly the App from this Repo

  • Print help: jeka -r https://github.com/jeka-dev/demo-base-application -p --help
  • Print available distros: jeka -r https://github.com/jeka-dev/demo-base-application -p --distrib
  • Print temurin versions: jeka -r https://github.com/jeka-dev/demo-base-application -p temurin

Build Commands

Execute tests

jeka test

Create jar

jeka pack

Run jar

jeka runJar programArgs="temurin" jvmOptions=""

Run jar This will directly run the built application, without checking if sources have changed since last run

jeka -p

Docker

Create image

jeka docker: build

Show info about image

jeka docker: info

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages