A minimum implementation to use main.kts in your project.
https://github.com/Stream29/SimpleMainKts.git
This project uses Gradle. To build and run the application, use the Gradle tool window by clicking the Gradle icon in the right-hand toolbar, or run it directly from the terminal:
./gradlew run to build and run the application../gradlew build to only build the application../gradlew check to run all checks, including tests../gradlew clean to clean all build outputs../gradlew).
This is the suggested way to use Gradle in production projects.
Learn more about the Gradle Wrapper.
Learn more about Gradle tasks.
This project follows the suggested multi-module setup and consists of the app and utils subprojects.
The shared build logic was extracted to a convention plugin located in buildSrc.
This project uses a version catalog (see gradle/libs.versions.toml) to declare and version dependencies
and both a build cache and a configuration cache (see gradle.properties).