Summary: Reuse the gradle setup we've built for Litho which allows for parallel publishing to Bintray and Maven Central in addition to Sonatype Snapshots. This appears not to break the existing jcenter deploy script which is pretty great. Reviewed By: emilsjolander Differential Revision: D5020576 fbshipit-source-id: 3ef163ccbfe91c6858b051d39dcf237ca388e18d
38 lines
950 B
Groovy
38 lines
950 B
Groovy
// Configure the Android maven publication
|
|
|
|
apply plugin: 'com.github.dcendents.android-maven'
|
|
|
|
version = VERSION_NAME
|
|
group = GROUP
|
|
// Set the .aar / .jar base file name to match the artifact ID
|
|
// in case the module has a different name
|
|
project.archivesBaseName = POM_ARTIFACT_ID
|
|
|
|
install {
|
|
repositories.mavenInstaller {
|
|
// This generates POM.xml with proper parameters
|
|
pom.project {
|
|
name POM_NAME
|
|
artifactId POM_ARTIFACT_ID
|
|
packaging POM_PACKAGING
|
|
description POM_DESCRIPTION
|
|
url projectUrl
|
|
|
|
scm {
|
|
url scmUrl
|
|
connection scmConnection
|
|
developerConnection scmDeveloperConnection
|
|
}
|
|
|
|
licenses projectLicenses
|
|
|
|
developers {
|
|
developer {
|
|
id developerId
|
|
name developerName
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|