Skip to content

Instantly share code, notes, and snippets.

@florent37
Created May 5, 2017 14:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save florent37/72cc356849060dc48bf3f442eeae15dc to your computer and use it in GitHub Desktop.
Save florent37/72cc356849060dc48bf3f442eeae15dc to your computer and use it in GitHub Desktop.
apply plugin: 'com.github.dcendents.android-maven'
group = publishedGroupId // Maven Group ID for the artifact
install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'aar'
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
}
}
}
}
}
//from https://github.com/workarounds/bundler/blob/master/gradle/install-v1.gradle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment