Skip to content

Commit

Permalink
OpenSRP Sonatype Publishing Set Up
Browse files Browse the repository at this point in the history
- Updated versions of preview releases - Releases.kt
- Publishing configurations of individual modules
  • Loading branch information
ndegwamartin committed Feb 24, 2023
1 parent aff90f1 commit 7aa06df
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 6 deletions.
12 changes: 6 additions & 6 deletions buildSrc/src/main/kotlin/Releases.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,38 +36,38 @@ interface LibraryArtifact {
}

object Releases {
const val groupId = "com.google.android.fhir"
const val groupId = "org.smartregister"

// Libraries

object Common : LibraryArtifact {
override val artifactId = "common"
override val version = "0.1.0-alpha03"
override val version = "0.1.0-alpha03-preview4-SNAPSHOT"
override val name = "Android FHIR Common Library"
}

object Engine : LibraryArtifact {
override val artifactId = "engine"
override val version = "0.1.0-beta02"
override val version = "0.1.0-beta02-preview10-SNAPSHOT"
override val name = "Android FHIR Engine Library"
}

object DataCapture : LibraryArtifact {
override val artifactId = "data-capture"
override val version = "0.1.0-beta06"
override val version = "0.1.0-beta06-preview8-SNAPSHOT"
override val name = "Android FHIR Structured Data Capture Library"
}

object Workflow : LibraryArtifact {
override val artifactId = "workflow"
override val version = "0.1.0-alpha02"
override val version = "0.1.0-alpha02-preview8-SNAPSHOT"
override val name = "Android FHIR Workflow Library"
}

object Contrib {
object Barcode : LibraryArtifact {
override val artifactId = "contrib-barcode"
override val version = "0.1.0-beta3"
override val version = "0.1.0-beta3-preview3-SNAPSHOT"
override val name = "Android FHIR Structured Data Capture - Barcode Extensions (contrib)"
}
}
Expand Down
11 changes: 11 additions & 0 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ plugins {
jacoco
}

publishing{
repositories {
maven {

credentials(PasswordCredentials::class)
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
name = "sonatype"
}
}
}

publishArtifact(Releases.Common)

createJacocoTestReportTask()
Expand Down
11 changes: 11 additions & 0 deletions contrib/barcode/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ plugins {
jacoco
}

publishing{
repositories {
maven {

credentials(PasswordCredentials::class)
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
name = "sonatype"
}
}
}

publishArtifact(Releases.Contrib.Barcode)

createJacocoTestReportTask()
Expand Down
9 changes: 9 additions & 0 deletions datacapture/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ plugins {
jacoco
id(Plugins.BuildPlugins.dokka).version(Plugins.Versions.dokka)
}
publishing{
repositories {
maven {
credentials(PasswordCredentials::class)
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
name = "sonatype"
}
}
}

publishArtifact(Releases.DataCapture)

Expand Down
10 changes: 10 additions & 0 deletions engine/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ plugins {
jacoco
id(Plugins.BuildPlugins.dokka).version(Plugins.Versions.dokka)
}
publishing{
repositories {
maven {

credentials(PasswordCredentials::class)
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
name = "sonatype"
}
}
}

publishArtifact(Releases.Engine)

Expand Down
10 changes: 10 additions & 0 deletions workflow/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ plugins {
id(Plugins.BuildPlugins.dokka).version(Plugins.Versions.dokka)
}

publishing{
repositories {
maven {
credentials(PasswordCredentials::class)
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
name = "sonatype"
}
}
}

publishArtifact(Releases.Workflow)

createJacocoTestReportTask()
Expand Down

0 comments on commit 7aa06df

Please sign in to comment.