Skip to content

Maven

PGP signs and publishes packages to Maven Central.

Option Description
mavenCliPath Path to Maven CLI (must be executable)
mavenSettingsPath Path to Maven settings.xml
mavenRepoId Maven server ID in settings.xml
mavenRepoUrl Maven repository URL
android Android configuration object or false
kmp Kotlin Multiplatform configuration or false
Option Description
distDirRegex Pattern for distribution directory names
fileReplaceeRegex Pattern for module name substring to replace
fileReplacerStr Replacement string for Android distribution file
Option Description
rootDistDirRegex Pattern for root distribution directory
appleDistDirRegex Pattern for Apple platform directories
klibDistDirRegex Pattern for JS/WASM directories
Name Description
OSSRH_USERNAME Sonatype repository username
OSSRH_PASSWORD Sonatype repository password
GPG_PASSPHRASE Passphrase for GPG private key
GPG_PRIVATE_KEY GPG private key (optional, uses default if not set)
targets:
- name: maven
mavenCliPath: scripts/mvnw.cmd
mavenSettingsPath: scripts/settings.xml
mavenRepoId: ossrh
mavenRepoUrl: https://oss.sonatype.org/service/local/staging/deploy/maven2/
android: false
targets:
- name: maven
mavenCliPath: scripts/mvnw.cmd
mavenSettingsPath: scripts/settings.xml
mavenRepoId: ossrh
mavenRepoUrl: https://oss.sonatype.org/service/local/staging/deploy/maven2/
android:
distDirRegex: /^sentry-android-.*$/
fileReplaceeRegex: /\d\.\d\.\d(-SNAPSHOT)?/
fileReplacerStr: release.aar