Created
November 1, 2012 01:57
-
-
Save xconnecting/3991154 to your computer and use it in GitHub Desktop.
Gradle: Deploying to a Maven repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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