๐Ÿ“ฆ Stream29 / SimpleMainKts

A minimum implementation to use main.kts in your project.

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching โš–๏ธ Apache License 2.0
๐Ÿ“ฅ Clone https://github.com/Stream29/SimpleMainKts.git
HTTPS git clone https://github.com/Stream29/SimpleMainKts.git
SSH git clone git@github.com:Stream29/SimpleMainKts.git
CLI gh repo clone Stream29/SimpleMainKts
Stream Stream feat: allowing script using project's classpath b1229bb 1 years ago ๐Ÿ“ History
๐Ÿ“‚ b1229bb85d517bf54a36ba234d6f4779f43c9868 View all commits โ†’
๐Ÿ“ app
๐Ÿ“ buildSrc
๐Ÿ“ gradle
๐Ÿ“ script
๐Ÿ“„ .gitignore
๐Ÿ“„ gradle.properties
๐Ÿ“„ gradlew
๐Ÿ“„ gradlew.bat
๐Ÿ“„ README.md
๐Ÿ“„ README.md

SimpleMainKts

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:

  • Run ./gradlew run to build and run the application.
  • Run ./gradlew build to only build the application.
  • Run ./gradlew check to run all checks, including tests.
  • Run ./gradlew clean to clean all build outputs.
Note the usage of the Gradle Wrapper (./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).