diff --git a/buildSrc/src/main/kotlin/LibrarySetting.kt b/buildSrc/src/main/kotlin/LibrarySetting.kt index a5401f1..e01de20 100644 --- a/buildSrc/src/main/kotlin/LibrarySetting.kt +++ b/buildSrc/src/main/kotlin/LibrarySetting.kt @@ -15,7 +15,14 @@ import ProjectSetting.BASE_PACAKGE_NAME object LibrarySetting { - const val FROGO_LIB = "frogolib" - const val FROGO_LIB_ID = "$BASE_PACAKGE_NAME" + const val GITHUB_ACCOUNT = "frogobox" + const val GITHUB_REPOSITORY = "kick-start-library" + + const val ARTIFACT_ID = "frogolib" + const val GROUP_ID = "com.github.$GITHUB_ACCOUNT" + + const val NAME_SPACE = "$BASE_PACAKGE_NAME.$ARTIFACT_ID" + + const val MAVEN_URI = "https://maven.pkg.github.com/$GITHUB_ACCOUNT/$GITHUB_REPOSITORY" } \ No newline at end of file diff --git a/frogolib/build.gradle.kts b/frogolib/build.gradle.kts index 06f36db..26a5f66 100644 --- a/frogolib/build.gradle.kts +++ b/frogolib/build.gradle.kts @@ -8,7 +8,7 @@ plugins { android { compileSdk = ProjectSetting.PROJECT_COMPILE_SDK - namespace = LibrarySetting.FROGO_LIB_ID + namespace = LibrarySetting.NAME_SPACE defaultConfig { minSdk = ProjectSetting.PROJECT_MIN_SDK @@ -62,8 +62,8 @@ afterEvaluate { repositories { maven { - name = "KickStartLibrary" - url = uri("https://maven.pkg.github.com/frogobox/kick-start-library") + name = LibrarySetting.GITHUB_REPOSITORY + url = uri(LibrarySetting.MAVEN_URI) credentials { username = project.findProperty("gpr.user") as String? ?: "" password = project.findProperty("gpr.key") as String? ?: "" @@ -78,13 +78,13 @@ afterEvaluate { // NOTE : Delete this line code if you publish Native Java / Kotlin Library from(components["release"]) - // Library Name / Module Name (Example : "androidfirstlib") - // NOTE : Different ArtifactId For Each Library / Module, So That Each Library Is Not Overwritten - artifactId = LibrarySetting.FROGO_LIB - // Library Package Name (Example : "com.frogobox.androidfirstlib") // NOTE : Different GroupId For Each Library / Module, So That Each Library Is Not Overwritten - groupId = LibrarySetting.FROGO_LIB_ID + groupId = LibrarySetting.GROUP_ID + + // Library Name / Module Name (Example : "androidfirstlib") + // NOTE : Different ArtifactId For Each Library / Module, So That Each Library Is Not Overwritten + artifactId = LibrarySetting.ARTIFACT_ID // Version Library Name (Example : "1.0.0") version = ProjectSetting.PROJECT_VERSION_NAME