Skip to content

Commit f64494d

Browse files
committed
Initial commit
0 parents  commit f64494d

28 files changed

+1236
-0
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Dependabot configuration:
2+
# https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
# Maintain dependencies for GitHub Actions
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"

.github/workflows/build.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
Build:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
checks: write
15+
contents: write
16+
steps:
17+
- name: 🚚 Checkout
18+
uses: actions/checkout@v6
19+
20+
- name: ☕️ Set up JDK
21+
uses: actions/setup-java@v5
22+
with:
23+
java-version: '25'
24+
distribution: 'temurin'
25+
26+
- name: 🐘 Setup Gradle
27+
uses: gradle/actions/setup-gradle@v5
28+
with:
29+
dependency-graph: generate-and-submit
30+
add-job-summary: on-failure
31+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
32+
33+
- name: 🛠 Build
34+
run: ./gradlew build --scan
35+
36+
- name: 💹 Publish Test Report
37+
if: always()
38+
uses: dorny/test-reporter@v2
39+
with:
40+
name: 'Test Results'
41+
path: '**/build/test-results/test/TEST-*.xml'
42+
reporter: 'java-junit'
43+
list-suites: 'failed'
44+
list-tests: 'failed'
45+
46+
- name: 📋 Upload build reports
47+
uses: actions/upload-artifact@v5
48+
if: always()
49+
with:
50+
name: build-reports
51+
path: build/reports/

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.gradle
2+
.idea
3+
.kotlin/
4+
build
5+
local.properties

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# advent-of-code-2025
2+
3+
Welcome to the Advent of Code[^aoc] Kotlin project created by [ath0s][github] using the [Advent of Code Kotlin Template][template] delivered by JetBrains.
4+
5+
In this repository, ath0s is about to provide solutions for the puzzles using [Kotlin][kotlin] language.
6+
7+
If you're stuck with Kotlin-specific questions or anything related to this template, check out the following resources:
8+
9+
- [Kotlin docs][docs]
10+
- [Kotlin Slack][slack]
11+
- Template [issue tracker][issues]
12+
13+
14+
[^aoc]:
15+
[Advent of Code][aoc] – An annual event of Christmas-oriented programming challenges started December 2015.
16+
Every year since then, beginning on the first day of December, a programming puzzle is published every day for twenty-five days.
17+
You can solve the puzzle and provide an answer using the language of your choice.
18+
19+
[aoc]: https://adventofcode.com
20+
[docs]: https://kotlinlang.org/docs/home.html
21+
[github]: https://github.com/ath0s
22+
[issues]: https://github.com/kotlin-hands-on/advent-of-code-kotlin-template/issues
23+
[kotlin]: https://kotlinlang.org
24+
[slack]: https://surveys.jetbrains.com/s3/kotlin-slack-sign-up
25+
[template]: https://github.com/kotlin-hands-on/advent-of-code-kotlin-template

build.gradle.kts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21
2+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3+
4+
plugins {
5+
kotlin("jvm") version "2.2.21"
6+
}
7+
8+
repositories {
9+
mavenCentral()
10+
}
11+
12+
dependencies {
13+
implementation(kotlin("reflect"))
14+
15+
testImplementation(platform("org.junit:junit-bom:6.0.1"))
16+
testImplementation("org.junit.jupiter:junit-jupiter-params")
17+
testImplementation(kotlin("test"))
18+
19+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
20+
}
21+
22+
tasks {
23+
24+
wrapper {
25+
gradleVersion = "9.2.1"
26+
}
27+
28+
withType<JavaCompile> {
29+
enabled = false
30+
options.release = 21
31+
}
32+
33+
withType<KotlinCompile> {
34+
compilerOptions{
35+
jvmTarget = JVM_21
36+
freeCompilerArgs.add("-Xannotation-default-target=param-property")
37+
}
38+
}
39+
40+
test {
41+
useJUnitPlatform()
42+
}
43+
44+
}

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
org.gradle.caching=true
2+
org.gradle.configuration-cache=true

gradle/wrapper/gradle-wrapper.jar

44.6 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)