From f86f50f5be63bafd41617fe902639b49fd8af3f9 Mon Sep 17 00:00:00 2001 From: Kenechukwu Akubue Date: Fri, 8 Dec 2023 01:14:00 +0100 Subject: [PATCH] Fix bug --- buildSrc/src/main/kotlin/publish.gradle.kts | 7 ++++++- gradle.properties | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/publish.gradle.kts b/buildSrc/src/main/kotlin/publish.gradle.kts index c96d5d6..363294e 100644 --- a/buildSrc/src/main/kotlin/publish.gradle.kts +++ b/buildSrc/src/main/kotlin/publish.gradle.kts @@ -48,6 +48,9 @@ publishing { publications { create("release") { + groupId = PUBLISHING_GROUP + artifactId = project.name +// version = project.version.toString() afterEvaluate { if (plugins.hasPlugin("com.android.library")) { from(components["release"]) @@ -58,7 +61,7 @@ publishing { pom { if (!"USE_SNAPSHOT".byProperty.isNullOrBlank()) { - version = "$version-SNAPSHOT" + version = "${project.version.toString()}-SNAPSHOT" } description.set("A template for Kotlin Android projects") url.set("https://github.com/SimpleJnius/sj-firebase-java/") @@ -73,6 +76,8 @@ publishing { developer { id.set("kengoon") name.set("Kenechukwu Akubue") + organization.set("Simple Jnius") + organizationUrl.set("https://github.com/organizations/SimpleJnius") } } scm { diff --git a/gradle.properties b/gradle.properties index 23339e0..5984903 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,3 +19,5 @@ android.useAndroidX=true android.enableJetifier=true # Kotlin code style for this project: "official" or "obsolete": kotlin.code.style=official +version=0.4.2 +