This is a project template for a greenfield Java project called Lumi. Given below are instructions on how to use it.
Prerequisites: JDK 25, update Intellij to the most recent version.
- Open Intellij (if you are not in the welcome screen, click
File>Close Projectto close the existing project first) - Open the project into Intellij as follows:
- Click
Open. - Select the project directory, and click
OK. - If there are any further prompts, accept the defaults.
- Click
- 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 theSDK defaultoption. - After that, locate the
src/main/java/lumi/Launcher.javafile, right-click it, and chooseRun Launcher.main()(if the code editor is showing compile errors, try restarting the IDE). If the setup is correct, a JavaFX window titledLumishould 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.
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 shadowJarOn macOS or Linux, run:
./gradlew shadowJarThe 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.jarOn macOS or Linux:
java -jar build/libs/lumi.jarThe 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.
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 checkstyleTestOn macOS or Linux:
./gradlew checkstyleMain checkstyleTestThe normal Gradle check and build tasks also run these Checkstyle checks.