Skip to content
Public template

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Simple Kotlin Gradle Template

A minimalist template for building Kotlin applications with Gradle.

Tech Stack

  • Language: Kotlin
  • Build System: Gradle (Kotlin DSL)
  • Plugin: ShadowJar (9.6.1)
  • Logging: Logback Classic (1.6.1)

Project Structure

├── build.gradle.kts        # Main build configuration
├── settings.gradle.kts     # Project settings
├── src/
│   └── main/
│       ├── kotlin/         # Your Kotlin source code
│       └── resources/      # Configuration files

Getting Started

Requirements

  • JDK 17+ installed on your machine.

Building the Project

To compile the code and generate a "fat" JAR:

./gradlew build

The resulting JAR file will be located in build/libs/.

Running the Application

You can run the generated JAR using the following command:

java -jar build/libs/SimpleKotlin.jar

Customization

  1. Change Project Name: Update rootProject.name in settings.gradle.kts.
  2. Update Dependencies: Add or modify libraries in build.gradle.kts.
  3. Configure Logging: Modify src/main/resources/logback.xml to adjust logging levels and appenders.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages