Gradle Maven Plugin: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 15: Line 15:


=Publishing to a Maven Repository=
=Publishing to a Maven Repository=
{{External|https://docs.gradle.org/current/userguide/maven_plugin.html#uploading_to_maven_repositories}}


Gradle can be configured to [[Gradle_Concepts#Artifact_Publishing|publish artifacts]] to a Maven repository by configuring Maven plugin's uploadArchive task In [[build.gradle]]:
Gradle can be configured to [[Gradle_Concepts#Artifact_Publishing|publish artifacts]] to a Maven repository by configuring Maven plugin's uploadArchive task In [[build.gradle]]:

Revision as of 19:18, 15 May 2018

External

Internal

Overview

apply plugin: 'maven'

Publishing to a Maven Repository

https://docs.gradle.org/current/userguide/maven_plugin.html#uploading_to_maven_repositories

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