Skip to content

Instantly share code, notes, and snippets.

@zirouan
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zirouan/a9d2d402c21db31c57e1 to your computer and use it in GitHub Desktop.
Save zirouan/a9d2d402c21db31c57e1 to your computer and use it in GitHub Desktop.
build.gradle library
apply plugin: 'maven'
uploadArchives {
repositories {
mavenDeployer {
repository(url: "https://oss.sonatype.org/content/repositories/snapshots")
pom.groupId = GROUP
pom.artifactId = POM_ARTIFACT_ID
pom.version = VERSION_NAME
}
}
}
task install(dependsOn: uploadArchives)
apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment