From b54d27fc092b61d0893a55073c030a446af7ac62 Mon Sep 17 00:00:00 2001 From: andresmr Date: Fri, 22 Mar 2024 10:44:30 +0100 Subject: [PATCH] add maven publish in form, commons, program rules, mps and ui components --- commons/build.gradle.kts | 1 + commons/gradle.properties | 15 +++++++++++++++ dhis2-mobile-program-rules/build.gradle.kts | 1 + dhis2-mobile-program-rules/gradle.properties | 15 +++++++++++++++ dhis2_android_maps/build.gradle.kts | 1 + dhis2_android_maps/gradle.properties | 15 +++++++++++++++ form/build.gradle.kts | 1 + form/gradle.properties | 15 +++++++++++++++ ui-components/build.gradle.kts | 3 +-- ui-components/gradle.properties | 15 +++++++++++++++ 10 files changed, 80 insertions(+), 2 deletions(-) create mode 100644 commons/gradle.properties create mode 100644 dhis2-mobile-program-rules/gradle.properties create mode 100644 dhis2_android_maps/gradle.properties create mode 100644 form/gradle.properties create mode 100644 ui-components/gradle.properties diff --git a/commons/build.gradle.kts b/commons/build.gradle.kts index 20ecdd06a0..9c184f2595 100644 --- a/commons/build.gradle.kts +++ b/commons/build.gradle.kts @@ -3,6 +3,7 @@ plugins { kotlin("android") kotlin("kapt") id("kotlin-parcelize") + id("maven-publish-conventions") } apply(from = "${project.rootDir}/jacoco/jacoco.gradle.kts") diff --git a/commons/gradle.properties b/commons/gradle.properties new file mode 100644 index 0000000000..c9795086db --- /dev/null +++ b/commons/gradle.properties @@ -0,0 +1,15 @@ +VERSION_NAME=1.0-SNAPSHOT +GROUP=org.hisp.dhis.mobile +POM_NAME=Android commons library +POM_ARTIFACT_ID=commons +POM_PACKAGING=aar +POM_DESCRIPTION=DHIS2 Android commons library +POM_URL=https://github.com/dhis2/dhis2-android-capture-app +POM_SCM_URL=https://github.com/dhis2/dhis2-android-capture-app +POM_SCM_CONNECTION=scm:git:git://github.com/dhis2/dhis2-android-capture-app.git +POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/dhis2/dhis2-android-capture-app.git +POM_LICENCE_NAME=BSD +POM_LICENCE_URL=https://opensource.org/licenses/BSD-3-Clause +POM_LICENCE_DIST=repo +POM_DEVELOPER_ID=DHIS 2 +POM_DEVELOPER_NAME=DHIS 2 \ No newline at end of file diff --git a/dhis2-mobile-program-rules/build.gradle.kts b/dhis2-mobile-program-rules/build.gradle.kts index 89845ee924..8ee8f5e42c 100644 --- a/dhis2-mobile-program-rules/build.gradle.kts +++ b/dhis2-mobile-program-rules/build.gradle.kts @@ -1,6 +1,7 @@ plugins { id("com.android.library") kotlin("android") + id("maven-publish-conventions") } apply(from = "${project.rootDir}/jacoco/jacoco.gradle.kts") diff --git a/dhis2-mobile-program-rules/gradle.properties b/dhis2-mobile-program-rules/gradle.properties new file mode 100644 index 0000000000..ebe28114a9 --- /dev/null +++ b/dhis2-mobile-program-rules/gradle.properties @@ -0,0 +1,15 @@ +VERSION_NAME=1.0-SNAPSHOT +GROUP=org.hisp.dhis.mobile +POM_NAME=Android rules library +POM_ARTIFACT_ID=rules +POM_PACKAGING=aar +POM_DESCRIPTION=DHIS2 Android rules library +POM_URL=https://github.com/dhis2/dhis2-android-capture-app +POM_SCM_URL=https://github.com/dhis2/dhis2-android-capture-app +POM_SCM_CONNECTION=scm:git:git://github.com/dhis2/dhis2-android-capture-app.git +POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/dhis2/dhis2-android-capture-app.git +POM_LICENCE_NAME=BSD +POM_LICENCE_URL=https://opensource.org/licenses/BSD-3-Clause +POM_LICENCE_DIST=repo +POM_DEVELOPER_ID=DHIS 2 +POM_DEVELOPER_NAME=DHIS 2 \ No newline at end of file diff --git a/dhis2_android_maps/build.gradle.kts b/dhis2_android_maps/build.gradle.kts index cb7aaa95aa..3696185b5f 100644 --- a/dhis2_android_maps/build.gradle.kts +++ b/dhis2_android_maps/build.gradle.kts @@ -2,6 +2,7 @@ plugins { id("com.android.library") kotlin("android") kotlin("kapt") + id("maven-publish-conventions") } apply(from = "${project.rootDir}/jacoco/jacoco.gradle.kts") diff --git a/dhis2_android_maps/gradle.properties b/dhis2_android_maps/gradle.properties new file mode 100644 index 0000000000..57712e22e2 --- /dev/null +++ b/dhis2_android_maps/gradle.properties @@ -0,0 +1,15 @@ +VERSION_NAME=1.0-SNAPSHOT +GROUP=org.hisp.dhis.mobile +POM_NAME=Android maps library +POM_ARTIFACT_ID=maps +POM_PACKAGING=aar +POM_DESCRIPTION=DHIS2 Android maps library +POM_URL=https://github.com/dhis2/dhis2-android-capture-app +POM_SCM_URL=https://github.com/dhis2/dhis2-android-capture-app +POM_SCM_CONNECTION=scm:git:git://github.com/dhis2/dhis2-android-capture-app.git +POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/dhis2/dhis2-android-capture-app.git +POM_LICENCE_NAME=BSD +POM_LICENCE_URL=https://opensource.org/licenses/BSD-3-Clause +POM_LICENCE_DIST=repo +POM_DEVELOPER_ID=DHIS 2 +POM_DEVELOPER_NAME=DHIS 2 \ No newline at end of file diff --git a/form/build.gradle.kts b/form/build.gradle.kts index 5b5d511093..753eb59206 100644 --- a/form/build.gradle.kts +++ b/form/build.gradle.kts @@ -2,6 +2,7 @@ plugins { id("com.android.library") kotlin("android") kotlin("kapt") + id("maven-publish-conventions") } apply(from = "${project.rootDir}/jacoco/jacoco.gradle.kts") diff --git a/form/gradle.properties b/form/gradle.properties new file mode 100644 index 0000000000..e68898c062 --- /dev/null +++ b/form/gradle.properties @@ -0,0 +1,15 @@ +VERSION_NAME=1.0-SNAPSHOT +GROUP=org.hisp.dhis.mobile +POM_NAME=Android Data Entry library +POM_ARTIFACT_ID=entryform +POM_PACKAGING=aar +POM_DESCRIPTION=DHIS2 Android data entry library +POM_URL=https://github.com/dhis2/dhis2-android-capture-app +POM_SCM_URL=https://github.com/dhis2/dhis2-android-capture-app +POM_SCM_CONNECTION=scm:git:git://github.com/dhis2/dhis2-android-capture-app.git +POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/dhis2/dhis2-android-capture-app.git +POM_LICENCE_NAME=BSD +POM_LICENCE_URL=https://opensource.org/licenses/BSD-3-Clause +POM_LICENCE_DIST=repo +POM_DEVELOPER_ID=DHIS 2 +POM_DEVELOPER_NAME=DHIS 2 \ No newline at end of file diff --git a/ui-components/build.gradle.kts b/ui-components/build.gradle.kts index ea038fcb2a..b7b9c5bd12 100644 --- a/ui-components/build.gradle.kts +++ b/ui-components/build.gradle.kts @@ -3,6 +3,7 @@ plugins { kotlin("android") id("kotlin-parcelize") id("kotlinx-serialization") + id("maven-publish-conventions") } apply(from = "${project.rootDir}/jacoco/jacoco.gradle.kts") @@ -12,7 +13,6 @@ android { defaultConfig { minSdk = libs.versions.minSdk.get().toInt() - targetSdk = libs.versions.sdk.get().toInt() testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles("consumer-rules.pro") @@ -53,7 +53,6 @@ android { } dependencies { - implementation(libs.bundles.uicomponents.implementation) api(libs.bundles.uicomponents.api) debugApi(libs.bundles.uicomponents.debugapi) diff --git a/ui-components/gradle.properties b/ui-components/gradle.properties new file mode 100644 index 0000000000..ba37588729 --- /dev/null +++ b/ui-components/gradle.properties @@ -0,0 +1,15 @@ +VERSION_NAME=1.0-SNAPSHOT +GROUP=org.hisp.dhis.mobile +POM_NAME=Android legacy ui Library +POM_ARTIFACT_ID=ui-legacy +POM_PACKAGING=aar +POM_DESCRIPTION=DHIS2 Android legacy ui Library +POM_URL=https://github.com/dhis2/dhis2-android-capture-app +POM_SCM_URL=https://github.com/dhis2/dhis2-android-capture-app +POM_SCM_CONNECTION=scm:git:git://github.com/dhis2/dhis2-android-capture-app.git +POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/dhis2/dhis2-android-capture-app.git +POM_LICENCE_NAME=BSD +POM_LICENCE_URL=https://opensource.org/licenses/BSD-3-Clause +POM_LICENCE_DIST=repo +POM_DEVELOPER_ID=DHIS 2 +POM_DEVELOPER_NAME=DHIS 2 \ No newline at end of file