Skip to content

Commit 028df77

Browse files
committed
Introduce Amper
1 parent 6eaf0a5 commit 028df77

File tree

5 files changed

+25
-20
lines changed

5 files changed

+25
-20
lines changed

.github/readme/cover.png

25 KB
Loading

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ We offer you a template prepared to use with [Kotlin][kotlin] language within th
77

88
![][file:cover]
99

10+
> [!IMPORTANT]
11+
>
12+
> 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].
13+
>
14+
> With this version, we swapped the standard Gradle build configuration with `module.yaml` Amper file.
15+
> For more deails, see [Amper project][amper-github]
16+
1017
## Workflow
1118
**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.
1219

@@ -39,7 +46,7 @@ After you create a new project based on the current template repository using th
3946
```
4047
.
4148
├── README.md README file
42-
├── build.gradle.kts Gradle configuration created with Kotlin DSL
49+
├── module.yaml Amper configuration file
4350
├── settings.gradle.kts Gradle project settings
4451
├── gradle* Gradle wraper files
4552
└── src
@@ -129,6 +136,9 @@ If you stuck with Kotlin-specific questions or anything related to this template
129136

130137
[actions-user]: https://github.com/actions-user
131138
[aoc]: https://adventofcode.com
139+
[amper]: https://blog.jetbrains.com/blog/2023/11/09/amper-improving-the-build-tooling-user-experience/
140+
[amper-github]: https://github.com/JetBrains/amper
141+
[template]: https://github.com/kotlin-hands-on/advent-of-code-kotlin-template
132142
[docs]: https://kotlinlang.org/docs/home.html
133143
[issues]: https://github.com/kotlin-hands-on/advent-of-code-kotlin-template/issues
134144
[kiss]: https://en.wikipedia.org/wiki/KISS_principle

build.gradle.kts

Lines changed: 0 additions & 19 deletions
This file was deleted.

module.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
product: jvm/app

settings.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
11
rootProject.name = "Advent of Code Kotlin Template"
2+
3+
pluginManagement {
4+
repositories {
5+
mavenCentral()
6+
google()
7+
gradlePluginPortal()
8+
maven("https://maven.pkg.jetbrains.space/public/p/amper/amper")
9+
}
10+
}
11+
12+
plugins {
13+
id("org.jetbrains.amper.settings.plugin").version("0.1.0")
14+
}

0 commit comments

Comments
 (0)