File tree Expand file tree Collapse file tree 9 files changed +13
-12
lines changed
main/kotlin/com/github/kotlinhandson/aoc
test/kotlin/com/github/kotlinhandson/aoc Expand file tree Collapse file tree 9 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -24,4 +24,4 @@ If you stuck with Kotlin-specific questions or anything related to this template
2424[ issues ] : https://github.com/kotlin-hands-on/advent-of-code-kotlin-template/issues
2525[ kotlin ] : https://kotlinlang.org
2626[ slack ] : https://surveys.jetbrains.com/s3/kotlin-slack-sign-up
27- [ template ] : https://github.com/hsz /advent-of-code-kotlin-template
27+ [ template ] : https://github.com/kotlinhandson /advent-of-code-kotlin-template
Original file line number Diff line number Diff line change @@ -40,23 +40,24 @@ jobs:
4040 sed -i "s/%GROUP%/$GROUP/g" .github/template-cleanup/*
4141
4242 # Replace template package name in project files with $GROUP
43- find src -type f -exec sed -i "s/com.github.hsz .aoc/$GROUP/g" {} +
43+ find src -type f -exec sed -i "s/com.github.kotlinhandson .aoc/$GROUP/g" {} +
4444 find src -type f -exec sed -i "s/Template/$NAME/g" {} +
4545 find src -type f -exec sed -i "s/JetBrains/$ACTOR/g" {} +
4646
4747 # Move content
4848 mkdir -p src/main/kotlin/${GROUP//.//}
4949 mkdir -p src/test/kotlin/${GROUP//.//}
5050 cp -R .github/template-cleanup/* .
51- mv src/main/kotlin/com/github/hsz /aoc/* src/main/kotlin/${GROUP//.//}/
52- mv src/test/kotlin/com/github/hsz /aoc/* src/test/kotlin/${GROUP//.//}/
51+ mv src/main/kotlin/com/github/kotlinhandson /aoc/* src/main/kotlin/${GROUP//.//}/
52+ mv src/test/kotlin/com/github/kotlinhandson /aoc/* src/test/kotlin/${GROUP//.//}/
5353
5454 # Cleanup
5555 rm -rf \
5656 .github/readme \
5757 .github/template-cleanup \
5858 .github/workflows/template-cleanup.yml
5959
60+ # Remove leftover empty directories
6061 find . -type d -empty -delete
6162
6263 # Commit modified files
Original file line number Diff line number Diff line change 11version = 2021.0
2- group = com.github.hsz .aoc
2+ group = com.github.kotlinhandson .aoc
33gradleVersion = 7.3
Original file line number Diff line number Diff line change 1- package com.github.hsz .aoc
1+ package com.github.kotlinhandson .aoc
22
3- import com.github.hsz .aoc.utils.Resources
3+ import com.github.kotlinhandson .aoc.utils.Resources
44
55abstract class Day (val number : Number ) {
66
Original file line number Diff line number Diff line change 1- package com.github.hsz .aoc
1+ package com.github.kotlinhandson .aoc
22
33class Day01 : Day (1 ) {
44
Original file line number Diff line number Diff line change 1- package com.github.hsz .aoc.utils
1+ package com.github.kotlinhandson .aoc.utils
22
33internal object Resources {
44
Original file line number Diff line number Diff line change 1- package com.github.hsz .aoc.utils
1+ package com.github.kotlinhandson .aoc.utils
22
33import java.math.BigInteger
44import java.security.MessageDigest
Original file line number Diff line number Diff line change 1- package com.github.hsz .aoc
1+ package com.github.kotlinhandson .aoc
22
33import kotlin.test.Test
44import kotlin.test.assertEquals
Original file line number Diff line number Diff line change 1- package com.github.hsz .aoc
1+ package com.github.kotlinhandson .aoc
22
33import org.junit.jupiter.api.AfterAll
44import org.junit.jupiter.api.TestInstance
You can’t perform that action at this time.
0 commit comments