Skip to content

Commit

Permalink
Rename the directories
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Sep 10, 2024
1 parent 7b82668 commit 9c6ac39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ tasks.register("renameProject") {
replaceStringInFile(buildFilePath, "val mainProjectAuthor = \"$mainProjectAuthor\"", "val mainProjectAuthor = \"$newAuthorName\"")
replaceStringInFile(buildFilePath, "val topLevelDomain = \"$topLevelDomain\"", "val topLevelDomain = \"$newTopLevelDomain\"")

File("src/main/java/net").renameTo(File("src/main/java/dev"))
File("src/main/java/dev/esoteric_slime").renameTo(File("src/main/java/dev/esoteric_development"))
File("src/main/java/dev/esoteric_development/template_paper_plugin").renameTo(File("src/main/java/dev/esoteric_development/esoteric_plugin"))
File("$startPath/$topLevelDomain").renameTo(File("$startPath/$newTopLevelDomain"))
File("$startPath/$newTopLevelDomain/$snakecaseMainProjectAuthor").renameTo(File("$startPath/$newTopLevelDomain/$newSnakecaseAuthorName"))
File("$startPath/$newTopLevelDomain/$newSnakecaseAuthorName/$snakecaseProjectNameString").renameTo(File("$startPath/$newTopLevelDomain/$newSnakecaseAuthorName/$newSnakecaseName"))

println("Renamed project to '$newName', author to '$newAuthorName', and top-level domain to '$newTopLevelDomain'")
}
Expand Down

0 comments on commit 9c6ac39

Please sign in to comment.