From 5fe72ad3eb905e79d9401565de9c656bfeb8011b Mon Sep 17 00:00:00 2001 From: "Jo G." <1451036+jo-elimu@users.noreply.github.com> Date: Sun, 27 Apr 2025 21:54:01 +0700 Subject: [PATCH] docs: "common:utils" --> ":common-utils" Remove the need for changing the groupId and artifactId in the app being tested. --- README.md | 11 ++++------- utils/build.gradle | 4 ++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 52d8c60..163dd5c 100644 --- a/README.md +++ b/README.md @@ -42,13 +42,10 @@ So, make sure you have Hilt & kapt imported in your projects via below check-lis ### How to publish a snapshot for local development & testing? -1. Change the `libVersion` and `versionCode` in https://github.com/elimu-ai/common-utils/blob/main/utils/build.gradle -2. Under `publishing` -> `repositories` block in the same Gradle script: Replace the existing `maven` repo by `mavenLocal()` -3. Run `./gradlew clean utils:publishReleasePublicationToMavenLocal` from project's root folder -4. In app side: Add `mavenLocal()` to `repositories` block in `build.gradle` script -5. Implement `ai.elimu.common:utils:$snapshot_version` in app's `build.gradle` file -6. You're now ready to test the snapshot! - +1. Under `publishing` -> `repositories` block in the same Gradle script: Replace the existing `maven` repo by `mavenLocal()` +2. Run `./gradlew clean utils:publishReleasePublicationToMavenLocal` from project's root folder +3. In app side: Add `mavenLocal()` to the `repositories` block in `build.gradle` script +4. You're now ready to test the `-SNAPSHOT` version! ## How to release a new version? diff --git a/utils/build.gradle b/utils/build.gradle index 0409791..c426251 100644 --- a/utils/build.gradle +++ b/utils/build.gradle @@ -7,8 +7,8 @@ plugins { id 'org.ajoberstar.grgit' } -def utilsGroupId = "ai.elimu.common" -def utilsArtifactId = "utils" +def utilsGroupId = "ai.elimu" +def utilsArtifactId = "common-utils" def utilsVersionCode = 1000013 def utilsVersionName = '1.0.13-SNAPSHOT'