Gradle Plugins

Maintained by aalmiray

Summary

The plugin provides support for configuring and uploading artifacts to Sonatype Nexus. It can be configured to deploy to a self-hosted instance of Nexus or Sonatype OSS. The default setup is to publish to Sonatype OSS. Currently, Java and Groovy project artifact generation is supported. In addition to the JAR and POM file artifacts containing the JavaDocs and source files are created. Signing the artifacts is optional.

Website https://github.com/bmuschko/gradle-nexus-plugin
Author bmuschko
Version 0.7

Usage

buildscript {
    repositories { jcenter() }
    dependencies {
        classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.7'
    }
}

apply plugin: 'nexus'

nexus {
    attachSources = true
    attachTests   = false
    attachJavadoc = true
    sign = true
    repositoryUrl         = project.nexusReleaseURL
    snapshotRepositoryUrl = project.nexusSnapshotURL
}