Gradle Maven Plugin

From NovaOrdis Knowledge Base
Revision as of 19:17, 15 May 2018 by Ovidiu (talk | contribs)
Jump to navigation Jump to search

External

Internal

Overview

apply plugin: 'maven'

Publishing to a Maven Repository

Gradle can be configured to publish artifacts to a Maven repository by configuring Maven plugin's uploadArchive task In build.gradle:

uploadArchives {
    repositories {
        mavenDeployer {
            repository(url: "file://localhost/tmp/myRepo/")
        }
    }
}