From d0a91c6053e65c431aaf4205b2b126105224aa38 Mon Sep 17 00:00:00 2001 From: Lyzev Date: Fri, 3 Nov 2023 22:34:24 +0100 Subject: [PATCH] Add Events and Settings as Submodules --- .gitmodules | 6 ++++++ Events | 1 + Settings | 1 + build.gradle.kts | 8 ++++---- 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 .gitmodules create mode 160000 Events create mode 160000 Settings diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000000..9cb0cf8f47 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "Events"] + path = Events + url = https://github.com/Lyzev/Events +[submodule "Settings"] + path = Settings + url = https://github.com/Lyzev/Settings diff --git a/Events b/Events new file mode 160000 index 0000000000..99b6e8f8da --- /dev/null +++ b/Events @@ -0,0 +1 @@ +Subproject commit 99b6e8f8daeb323bcb8768e1c54a097753e441ee diff --git a/Settings b/Settings new file mode 160000 index 0000000000..59cabc5b2b --- /dev/null +++ b/Settings @@ -0,0 +1 @@ +Subproject commit 59cabc5b2b3dd114ecf1e6f27136d876c3fe5045 diff --git a/build.gradle.kts b/build.gradle.kts index ce15897ccc..6bdb6a9563 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -56,11 +56,11 @@ dependencies { } loom { - accessWidenerPath.set(File("src/main/resources/schizoid.accesswidener")) + accessWidenerPath.set(File("src/main/resources/${project.extra["archives_base_name"] as String}.accesswidener")) } tasks.register("updateFabric") { - group = "schizoid" + group = project.extra["archives_base_name"] as String description = "Update Fabric Library Versions" doLast { val gameVersion = HttpClient.request(HttpMethod.GET, "https://meta.fabricmc.net/v2/versions/game").let { data -> @@ -120,7 +120,7 @@ tasks.register("updateFabric") { } tasks.register("updateKotlin") { - group = "schizoid" + group = project.extra["archives_base_name"] as String description = "Update Kotlin and Dokka Versions" doLast { val kotlinVersion = HttpClient.request( @@ -203,7 +203,7 @@ tasks { } dokkaHtml.configure { - moduleName.set("Schizoid") + moduleName.set(project.extra["archives_base_name"] as String) dokkaSourceSets { configureEach { includes.from("dokka-docs.md")