Skip to content

Commit

Permalink
ci: fix maven publish
Browse files Browse the repository at this point in the history
  • Loading branch information
xavimolloy committed Jul 3, 2024
1 parent d427434 commit 6582e45
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 10 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.2-SNAPSHOT"
group = "org.hisp.dhis.mobile"

plugins {
Expand All @@ -13,6 +13,15 @@ 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
11 changes: 2 additions & 9 deletions designsystem/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version = "0.2-SNAPSHOT"
group = "org.hisp.dhis.mobile"
version = rootProject.version
group = rootProject.group

plugins {
kotlin("multiplatform")
Expand All @@ -9,13 +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 {
Expand Down

0 comments on commit 6582e45

Please sign in to comment.