diff --git a/README.md b/README.md index 5ae834b4..306adfac 100644 --- a/README.md +++ b/README.md @@ -83,20 +83,18 @@ 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 ``` 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. diff --git a/nami-client/build.gradle b/nami-client/build.gradle index b5c8d981..04df1fa3 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}" + include implementation(project(path: ":nami-api", configuration: "namedElements")) } java {