Skip to content
 
 

Repository files navigation

Lumi project

This is a project template for a greenfield Java project called Lumi. Given below are instructions on how to use it.

Setting up in Intellij

Prerequisites: JDK 25, update Intellij to the most recent version.

  1. Open Intellij (if you are not in the welcome screen, click File > Close Project to close the existing project first)
  2. Open the project into Intellij as follows:
    1. Click Open.
    2. Select the project directory, and click OK.
    3. If there are any further prompts, accept the defaults.
  3. Configure the project to use JDK 25 (not other versions) as explained in here.
    In the same dialog, set the Project language level field to the SDK default option.
  4. After that, locate the src/main/java/lumi/Launcher.java file, right-click it, and choose Run Launcher.main() (if the code editor is showing compile errors, try restarting the IDE). If the setup is correct, a JavaFX window titled Lumi should appear. Enter a message using the text field and either press Enter or click Send to see the user message and Lumi's response.

Warning: Keep src/main/java as the source root for all Java packages. Do not move the lumi package outside this folder, because build tools such as Gradle expect this standard layout.

Building the fat JAR

The Shadow plugin packages Lumi and all of its runtime dependencies into one executable file named lumi.jar. Ensure that java -version reports Java 25 before building or running it.

From the project root, run the following command on Windows:

.\gradlew.bat shadowJar

On macOS or Linux, run:

./gradlew shadowJar

The completed JAR is created at build/libs/lumi.jar. The normal Gradle build task also creates this JAR because the Shadow task is connected to the build lifecycle.

To run Lumi from the project root on Windows:

java -jar build\libs\lumi.jar

On macOS or Linux:

java -jar build/libs/lumi.jar

The GUI includes the responsive layout and core CSS tweaks from JavaFX tutorial Part 5. Its FXML views are in src/main/resources/view, while the linked stylesheets are in src/main/resources/css. Lumi echoes each message through the tutorial's initial response hook; the full task-command integration remains available through the console entry point and can be connected to the GUI in a later step.

In IntelliJ, you can build the same JAR by opening the Gradle tool window, finding the shadowJar task, and running it. Refresh the project view afterward if the build folder is not immediately visible.

Checking code style

The project uses Checkstyle 11.0.0 with the SE-EDU Java coding-standard rules. Run both the production-code and test-code checks from the project root:

On Windows:

.\gradlew.bat checkstyleMain checkstyleTest

On macOS or Linux:

./gradlew checkstyleMain checkstyleTest

The normal Gradle check and build tasks also run these Checkstyle checks.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages