Skip to content

ci: Complete Maven Central publishing workflow and Android publishing scripts - #62

Merged
andredestro merged 4 commits into
mainfrom
maven-central
Jan 22, 2026
Merged

ci: Complete Maven Central publishing workflow and Android publishing scripts#62
andredestro merged 4 commits into
mainfrom
maven-central

Conversation

@andredestro

Copy link
Copy Markdown
Contributor

No description provided.

andredestro and others added 2 commits January 21, 2026 10:27
Co-authored-by: Pedro Bilro <pedro.gustavo.bilro@outsystems.com>
@OS-pedrogustavobilro OS-pedrogustavobilro changed the title feat(ci): add Maven Central publishing workflow and Android publishing scripts ci: Complete Maven Central publishing workflow and Android publishing scripts Jan 21, 2026

@OS-pedrogustavobilro OS-pedrogustavobilro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per this error - Also missing this from the packages/capacitor-plugin/android/build-gradle. Same for geolocation

buildscript {
    repositories {
        // add this below other repositories
        maven {
            url = uri("https://plugins.gradle.org/m2/")
        }
    }
    dependencies {
        // add this
        if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
            classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
        }
    }
}

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
    apply plugin: 'io.github.gradle-nexus.publish-plugin'
    apply from: file('../../../scripts/android/publish-root.gradle')
    apply from: file('../../../scripts/android/publish-module.gradle')
}

And the capacitor dependency should be like below (same for geolocation):

dependencies {
    if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
        implementation "com.capacitorjs:core:$capacitorVersion"
    } else {
        implementation project(':capacitor-android')
    }
}

Co-authored-by: Pedro Bilro <pedro.gustavo.bilro@outsystems.com>
@andredestro andredestro changed the title ci: Complete Maven Central publishing workflow and Android publishing scripts feat(ci): Complete Maven Central publishing workflow and Android publishing scripts Jan 22, 2026
@andredestro andredestro changed the title feat(ci): Complete Maven Central publishing workflow and Android publishing scripts ci: Complete Maven Central publishing workflow and Android publishing scripts Jan 22, 2026
@andredestro
andredestro merged commit 8e1c5ee into main Jan 22, 2026
8 checks passed
@andredestro
andredestro deleted the maven-central branch January 22, 2026 11:02
@andredestro
andredestro restored the maven-central branch January 22, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants