diff --git a/.github/readme/cover.png b/.github/readme/cover.png index bb6ca6f..7c1433c 100644 Binary files a/.github/readme/cover.png and b/.github/readme/cover.png differ diff --git a/README.md b/README.md index 7e1aea7..eaa780c 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,13 @@ We offer you a template prepared to use with [Kotlin][kotlin] language within th ![][file:cover] +> [!IMPORTANT] +> +> This is a fork of the main [Advent of Code Kotlin Template][template] repository which utilizes the Amper tool for project configuration, recently [introduced by JetBrains][amper]. +> +> With this version, we swapped the standard Gradle build configuration with `module.yaml` Amper file. +> For more deails, see [Amper project][amper-github] + ## Workflow **Advent of Code Kotlin Template** is a particular type of GitHub repository that lets you speed up the setup phase and start writing your AoC solutions immediately. @@ -39,7 +46,7 @@ After you create a new project based on the current template repository using th ``` . ├── README.md README file -├── build.gradle.kts Gradle configuration created with Kotlin DSL +├── module.yaml Amper configuration file ├── settings.gradle.kts Gradle project settings ├── gradle* Gradle wraper files └── src @@ -129,6 +136,9 @@ If you stuck with Kotlin-specific questions or anything related to this template [actions-user]: https://github.com/actions-user [aoc]: https://adventofcode.com +[amper]: https://blog.jetbrains.com/blog/2023/11/09/amper-improving-the-build-tooling-user-experience/ +[amper-github]: https://github.com/JetBrains/amper +[template]: https://github.com/kotlin-hands-on/advent-of-code-kotlin-template [docs]: https://kotlinlang.org/docs/home.html [issues]: https://github.com/kotlin-hands-on/advent-of-code-kotlin-template/issues [kiss]: https://en.wikipedia.org/wiki/KISS_principle diff --git a/build.gradle.kts b/build.gradle.kts deleted file mode 100644 index 09ec797..0000000 --- a/build.gradle.kts +++ /dev/null @@ -1,19 +0,0 @@ -plugins { - kotlin("jvm") version "1.9.20" -} - -repositories { - mavenCentral() -} - -tasks { - sourceSets { - main { - java.srcDirs("src") - } - } - - wrapper { - gradleVersion = "8.4" - } -} diff --git a/module.yaml b/module.yaml new file mode 100644 index 0000000..3e6ca54 --- /dev/null +++ b/module.yaml @@ -0,0 +1 @@ +product: jvm/app diff --git a/settings.gradle.kts b/settings.gradle.kts index 46ec124..1be216f 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1 +1,14 @@ rootProject.name = "Advent of Code Kotlin Template" + +pluginManagement { + repositories { + mavenCentral() + google() + gradlePluginPortal() + maven("https://maven.pkg.jetbrains.space/public/p/amper/amper") + } +} + +plugins { + id("org.jetbrains.amper.settings.plugin").version("0.1.0") +}