Skip to content

Commit

Permalink
ci: [ANDROAPP-6188] Move group project to root (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmr authored May 30, 2024
1 parent 657bd64 commit 96c45c8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
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

0 comments on commit 96c45c8

Please sign in to comment.