Download Gradle User Guide

Transcript
Table 45.3. Protocol jars for Maven deployment
Protocol
Library
http
org.apache.maven.wagon:wagon-http:1.0-beta-2
ssh
org.apache.maven.wagon:wagon-ssh:1.0-beta-2
ssh-external
org.apache.maven.wagon:wagon-ssh-external:1.0-beta-2
scp
org.apache.maven.wagon:wagon-scp:1.0-beta-2
ftp
org.apache.maven.wagon:wagon-ftp:1.0-beta-2
webdav
org.apache.maven.wagon:wagon-webdav-jackrabbit:1.0-beta-6
file
-
Table 45.4. Configuration elements of the MavenDeployer
Element
Javadoc
root
MavenDeployer
repository
org.apache.maven.artifact.ant.RemoteRepository
authentication
org.apache.maven.artifact.ant.Authentication
releases
org.apache.maven.artifact.ant.RepositoryPolicy
snapshots
org.apache.maven.artifact.ant.RepositoryPolicy
proxy
org.apache.maven.artifact.ant.Proxy
snapshotRepository
org.apache.maven.artifact.ant.RemoteRepository
45.6.3. Installing to the local repository
The Maven plugin adds an install task to your project. This task depends on all the archives
task of the archives configuration. It installs those archives to your local Maven repository. If the
default location for the local repository is redefined in a Maven settings.xml, this is considered
by this task.
45.6.4. Maven POM generation
The Maven POMs for uploading are automatically generated by Gradle. The groupId, artifactId,
version and packaging values are taken from the project object. The dependency elements are
created from the Gradle dependency declarations. You can find the generated POMs in the
directory <buildDir>/poms. You can further customize the POM via the API of the MavenPom
object.
You might want the artifact deployed to the maven repository to have a different version or name
than the artifact generated by Gradle. To customize these you can do:
Page 250 of 342