From 3fb1e6cf9c6d9380891fcfb6298cd58836ec8b20 Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Fri, 25 Sep 2026 17:55:19 +0200 Subject: [PATCH] Stop publishing generic Android app to Maven Central Stop publishing the GenericApp APK as the io.openremote:app Maven artifact. The generic Android application is a distributable application rather than a reusable library and is already distributed through Google Play. Keep building the APK in CI while limiting Maven Central publication to the reusable ORLib and protobuf artifacts. Also update the README to remove the Maven Central reference for the generic application. --- GenericApp/app/build.gradle | 78 ------------------------------------- README.md | 1 - 2 files changed, 79 deletions(-) diff --git a/GenericApp/app/build.gradle b/GenericApp/app/build.gradle index 768d91e..e10df6d 100644 --- a/GenericApp/app/build.gradle +++ b/GenericApp/app/build.gradle @@ -3,8 +3,6 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget plugins { alias(libs.plugins.android.application) alias(libs.plugins.google.services) - id 'maven-publish' - id 'signing' } android { @@ -53,11 +51,6 @@ android { } namespace = 'io.openremote.app' - - publishing { - singleVariant('release') { - } - } } kotlin { @@ -82,74 +75,3 @@ dependencies { // Unit testing framework testImplementation libs.junit } - -tasks.register('sourcesJar', Jar) { - from android.sourceSets.main.java.srcDirs - archiveClassifier = 'sources' -} - -afterEvaluate { - publishing { - publications { - release(MavenPublication) { - from components.release - - artifact source: file('build/outputs/apk/release/app-release.apk') - artifact sourcesJar - - group = "io.openremote" - artifactId = "app" - - pom { - name = 'OpenRemote Android Console' - description = 'Provides the Android OpenRemote Console Application' - url = 'https://github.com/openremote/console-android' - licenses { - license { - name = 'GNU Affero General Public License v3.0' - url = 'https://www.gnu.org/licenses/agpl-3.0.en.html' - } - } - developers { - developer { - id = 'developers' - name = 'Developers' - email = 'developers@openremote.io' - organization = 'OpenRemote' - organizationUrl = 'https://openremote.io' - } - } - scm { - connection = 'scm:git:git://github.com/openremote/console-android.git' - developerConnection = 'scm:git:ssh://github.com:openremote/console-android.git' - url = 'https://github.com/openremote/console-android/tree/main' - } - } - } - } - - repositories { - maven { - if (!version.endsWith('-LOCAL')) { - credentials { - username = findProperty("publishUsername") - password = findProperty("publishPassword") - } - } - url = version.endsWith('-LOCAL') ? layout.buildDirectory.dir('repo') : version.endsWith('-SNAPSHOT') ? findProperty("snapshotsRepoUrl") : findProperty("releasesRepoUrl") - } - } - } - - signing { - def signingKey = findProperty("signingKey") - def signingPassword = findProperty("signingPassword") - if (signingKey && signingPassword) { - useInMemoryPgpKeys(signingKey, signingPassword) - sign publishing.publications - signReleasePublication.dependsOn(packageRelease) - } - } - - publishReleasePublicationToMavenLocal.dependsOn(packageRelease) -} diff --git a/README.md b/README.md index e115412..500dda5 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,6 @@ This is the basis of the official OpenRemote Android app and can also be used as Available from: - [Google Play](https://play.google.com/store/apps/details?id=io.openremote.app) -- [Maven Central (`io.openremote:app`)](https://central.sonatype.com/artifact/io.openremote/app) ### `protobuf`