From 9c6ac3923c69eb71fec493ab49571d31f632a976 Mon Sep 17 00:00:00 2001 From: Esoteric Slime <90862990+EsotericSlime@users.noreply.github.com> Date: Wed, 11 Sep 2024 00:10:59 +0100 Subject: [PATCH] Rename the directories --- build.gradle.kts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 9d5c012f..4d40ea2b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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'") }