Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: [ANDROAPP-6188] fix public snapshot #249

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

version = "0.3.0-SNAPSHOT"
group = "org.hisp.dhis.mobile"

plugins {
Expand All @@ -13,6 +13,14 @@ plugins {
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
}

/**
* Property from the Gradle command line. To remove the snapshot suffix from the version.
*/
if (project.hasProperty("removeSnapshotSuffix")) {
val mainVersion = (version as String).split("-SNAPSHOT")[0]
version = mainVersion
}

allprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
ktlint {
Expand Down
12 changes: 2 additions & 10 deletions designsystem/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version = "0.3.0-SNAPSHOT"
group = "org.hisp.dhis.mobile"
version = rootProject.version
group = rootProject.group

plugins {
kotlin("multiplatform")
Expand All @@ -9,14 +9,6 @@ plugins {
id("app.cash.paparazzi").version("1.3.3")
}

/**
* Property from the Gradle command line. To remove the snapshot suffix from the version.
*/
if (project.hasProperty("removeSnapshotSuffix")) {
val mainVersion = (version as String).split("-SNAPSHOT")[0]
version = mainVersion
}

kotlin {
androidTarget {
publishLibraryVariants("release")
Expand Down
Loading