From 93d6813844890aeac83499f4f5dc11db06af29f0 Mon Sep 17 00:00:00 2001 From: cattyn Date: Sat, 21 Feb 2026 01:14:16 +0300 Subject: [PATCH 1/3] build: remove required PAT auth when building a client --- README.md | 8 +++----- nami-client/build.gradle | 24 ++++++++++-------------- 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 5ae834b4..9a812a87 100644 --- a/README.md +++ b/README.md @@ -83,15 +83,13 @@ The default command prefix is `-`. 1. Clone the repository: - ```bash + ```sh git clone https://github.com/NamiDevelopment/Nami.git cd nami ``` -2. In order to get nami-api dependency,you need to configure your PAT-token in your root .gradle/gradle.dependency +2. Build with Gradle: -3. Build with Gradle: - - ```bash + ```sh ./gradlew build ``` diff --git a/nami-client/build.gradle b/nami-client/build.gradle index b5c8d981..c188348e 100644 --- a/nami-client/build.gradle +++ b/nami-client/build.gradle @@ -6,24 +6,23 @@ plugins { } repositories { - maven { - url = uri("https://maven.pkg.github.com/NamiDevelopment/nami") - credentials { - username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR") - password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN") - } - } - maven { url = "https://maven.fabricmc.net/" } - maven { url = "https://repo.spongepowered.org/maven" } mavenCentral() - } loom { accessWidenerPath = file("src/main/resources/META-INF/nami.accesswidener") + + mods { + "nami-api" { + sourceSet project(":nami-api").sourceSets.main + } + "nami-client" { + sourceSet sourceSets.main + } + } } processResources { @@ -42,7 +41,6 @@ processResources { group = project.maven_group version = project.mod_version -def namiApiVersion = project.nami_api tasks.register("printVersion") { doLast { @@ -56,9 +54,7 @@ dependencies { modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" - - modImplementation "namidevelopment.kiriyaga:nami-api:${namiApiVersion}" - include "namidevelopment.kiriyaga:nami-api:${namiApiVersion}" + implementation project(path: ":nami-api", configuration: "namedElements") } java { From d08568cb12d3e877f3557a3ed4364f375df846be Mon Sep 17 00:00:00 2001 From: cattyn Date: Sat, 21 Feb 2026 01:31:38 +0300 Subject: [PATCH 2/3] fix: add include to build properly --- nami-client/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nami-client/build.gradle b/nami-client/build.gradle index c188348e..04df1fa3 100644 --- a/nami-client/build.gradle +++ b/nami-client/build.gradle @@ -54,7 +54,7 @@ dependencies { modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" - implementation project(path: ":nami-api", configuration: "namedElements") + include implementation(project(path: ":nami-api", configuration: "namedElements")) } java { From 7091c2d964156a7a7df9a7c043f6c362fd3103a6 Mon Sep 17 00:00:00 2001 From: cattyn Date: Sat, 21 Feb 2026 01:42:07 +0300 Subject: [PATCH 3/3] docs: update README build path --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9a812a87..306adfac 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ The default command prefix is `-`. ``` The compiled JAR will be located at: -`build/libs/nami-.jar` +`.//build/libs/nami-.jar` nami-client is packaged with nami-api inside of it.