Skip to content

Commit 8a0eed2

Browse files
committed
Rename hsz to kotlinhandson group name
1 parent e0b87fc commit 8a0eed2

File tree

9 files changed

+13
-12
lines changed

9 files changed

+13
-12
lines changed

.github/template-cleanup/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

.github/workflows/template-cleanup.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version = 2021.0
2-
group = com.github.hsz.aoc
2+
group = com.github.kotlinhandson.aoc
33
gradleVersion = 7.3

src/main/kotlin/com/github/hsz/aoc/Day.kt renamed to src/main/kotlin/com/github/kotlinhandson/aoc/Day.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

55
abstract class Day(val number: Number) {
66

src/main/kotlin/com/github/hsz/aoc/Day01.kt renamed to src/main/kotlin/com/github/kotlinhandson/aoc/Day01.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.hsz.aoc
1+
package com.github.kotlinhandson.aoc
22

33
class Day01 : Day(1) {
44

src/main/kotlin/com/github/hsz/aoc/utils/Resources.kt renamed to src/main/kotlin/com/github/kotlinhandson/aoc/utils/Resources.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.hsz.aoc.utils
1+
package com.github.kotlinhandson.aoc.utils
22

33
internal object Resources {
44

src/main/kotlin/com/github/hsz/aoc/utils/utils.kt renamed to src/main/kotlin/com/github/kotlinhandson/aoc/utils/utils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.hsz.aoc.utils
1+
package com.github.kotlinhandson.aoc.utils
22

33
import java.math.BigInteger
44
import java.security.MessageDigest

src/test/kotlin/com/github/hsz/aoc/Day01Test.kt renamed to src/test/kotlin/com/github/kotlinhandson/aoc/Day01Test.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.hsz.aoc
1+
package com.github.kotlinhandson.aoc
22

33
import kotlin.test.Test
44
import kotlin.test.assertEquals

src/test/kotlin/com/github/hsz/aoc/DayTest.kt renamed to src/test/kotlin/com/github/kotlinhandson/aoc/DayTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.hsz.aoc
1+
package com.github.kotlinhandson.aoc
22

33
import org.junit.jupiter.api.AfterAll
44
import org.junit.jupiter.api.TestInstance

0 commit comments

Comments
 (0)