Gradle Maven Plugin: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:
<syntaxhighlight lang='groovy'>
<syntaxhighlight lang='groovy'>
apply plugin: 'maven'
apply plugin: 'maven'
</syntaxhighlight>
=Publishing to a Maven Repository=
In [[build.gradle]]:
<syntaxhighlight lang='groovy'>
uploadArchives {
    repositories {
        mavenDeployer {
            repository(url: "file://localhost/tmp/myRepo/")
        }
    }
}
</syntaxhighlight>
</syntaxhighlight>

Revision as of 00:24, 2 May 2018

External

Internal

Overview

apply plugin: 'maven'

Publishing to a Maven Repository

In build.gradle:

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