Skip to content

Nexus

Easy setup to publish to MavenCentral, Snapshot or any Nexus repository

Overview

  • nexus
    • isEnabled: Property<Boolean> // false
    • enabled(value: Boolean = true)
    • nexusPublishing(action: Action<NexusPublishException>)

Configuration

hubdle {
    config {
        nexus()
    }
}
  • Local properties, environment variables or Gradle properties
nexus.token=...
nexus.snapshotRepositoryUrl=...
nexus.stagingProfileId=...
nexus.url=...
nexus.user=...

Any property can be provided in screaming case too:

NEXUS_TOKEN=...
NEXUS_SNAPSHOT_REPOSITORY_URL=...
NEXUS_STAGING_PROFILE_ID=...
NEXUS_URL=...
NEXUS_USER=...