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
24
24
[ issues ] : https://github.com/kotlin-hands-on/advent-of-code-kotlin-template/issues
25
25
[ kotlin ] : https://kotlinlang.org
26
26
[ 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:
40
40
sed -i "s/%GROUP%/$GROUP/g" .github/template-cleanup/*
41
41
42
42
# 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" {} +
44
44
find src -type f -exec sed -i "s/Template/$NAME/g" {} +
45
45
find src -type f -exec sed -i "s/JetBrains/$ACTOR/g" {} +
46
46
47
47
# Move content
48
48
mkdir -p src/main/kotlin/${GROUP//.//}
49
49
mkdir -p src/test/kotlin/${GROUP//.//}
50
50
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//.//}/
53
53
54
54
# Cleanup
55
55
rm -rf \
56
56
.github/readme \
57
57
.github/template-cleanup \
58
58
.github/workflows/template-cleanup.yml
59
59
60
+ # Remove leftover empty directories
60
61
find . -type d -empty -delete
61
62
62
63
# Commit modified files
Original file line number Diff line number Diff line change 1
1
version = 2021.0
2
- group = com.github.hsz .aoc
2
+ group = com.github.kotlinhandson .aoc
3
3
gradleVersion = 7.3
Original file line number Diff line number Diff line change 1
- package com.github.hsz .aoc
1
+ package com.github.kotlinhandson .aoc
2
2
3
- import com.github.hsz .aoc.utils.Resources
3
+ import com.github.kotlinhandson .aoc.utils.Resources
4
4
5
5
abstract class Day (val number : Number ) {
6
6
Original file line number Diff line number Diff line change 1
- package com.github.hsz .aoc
1
+ package com.github.kotlinhandson .aoc
2
2
3
3
class Day01 : Day (1 ) {
4
4
Original file line number Diff line number Diff line change 1
- package com.github.hsz .aoc.utils
1
+ package com.github.kotlinhandson .aoc.utils
2
2
3
3
internal object Resources {
4
4
Original file line number Diff line number Diff line change 1
- package com.github.hsz .aoc.utils
1
+ package com.github.kotlinhandson .aoc.utils
2
2
3
3
import java.math.BigInteger
4
4
import 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
2
2
3
3
import kotlin.test.Test
4
4
import 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
2
2
3
3
import org.junit.jupiter.api.AfterAll
4
4
import org.junit.jupiter.api.TestInstance
You can’t perform that action at this time.
0 commit comments