Skip to content

Instantly share code, notes, and snippets.

@ncthbrt
Last active January 19, 2016 18:22
Show Gist options
  • Save ncthbrt/7ead6fb73f4b2855ffaf to your computer and use it in GitHub Desktop.
Save ncthbrt/7ead6fb73f4b2855ffaf to your computer and use it in GitHub Desktop.
Upload to gradle
apply plugin: 'maven'
group = publishedGroupId // Maven Group ID for the artifact
install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'jar'
groupId publishedGroupId
artifactId artifact
// Add your description here
name libraryName
description libraryDescription
url siteUrl
// Set your license
licenses {
license {
name licenseName
url licenseUrl
}
}
developers {
developer {
id developerId
name developerName
email developerEmail
}
}
scm {
connection gitUrl
developerConnection gitUrl
url siteUrl
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment