Ensure the following are installed on your system:
- Java Development Kit (JDK) 8 or later
- Gradle
- Make
simple-gradle-kotlin-project/
├── build.gradle.kts # Gradle build script (Kotlin DSL)
├── settings.gradle.kts # Gradle settings
├── Makefile # Makefile for simplified task execution
├── src/
│ ├── main/
│ │ └── kotlin/
│ │ └── Main.kt # Main application code
│ └── test/
│ └── kotlin/
│ └── MainTest.kt # Unit tests
└── build/ # Generated build files (ignored in VCS)
To simplify project management, a Makefile is provided. Use the following commands to perform common tasks:
Compiles the source code and generates the build artifacts.
make buildExecutes the unit tests and generates a report.
make testOpens the HTML test report in your default browser.
make reportRuns the main application.
make runHappy coding! 🎉