Gradle Maven Plugin: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 4: Line 4:


* [[Gradle_Concepts#Maven_Plugin|Gradle Concepts]]
* [[Gradle_Concepts#Maven_Plugin|Gradle Concepts]]
* [[Gradle_Artifact_Publishing_Concepts#Publishing_to_a_Maven_Repository|Gradle Artifact Publishing Concepts]]


=Overview=
=Overview=

Revision as of 19:16, 15 May 2018

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/")
        }
    }
}