Skip to content

Instantly share code, notes, and snippets.

@xconnecting
Created November 1, 2012 01:57
Show Gist options
  • Save xconnecting/3991154 to your computer and use it in GitHub Desktop.
Save xconnecting/3991154 to your computer and use it in GitHub Desktop.
Gradle: Deploying to a Maven repository
apply plugin: 'java'
apply plugin: 'maven'
// If archivesBaseName is not specified, the project name is used for name
archivesBaseName = 'myapp'
group = 'com.mycompany.app'
version ='0.1'
uploadArchives {
repositories {
mavenDeployer {
repository(url: 'file://' + new File(System.getProperty('user.home'), '.m2/repository').absolutePath)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment