Skip to content

Commit

Permalink
Add maven-publish plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mshafrir-stripe committed Mar 9, 2020
1 parent 0991d89 commit ecfe4e8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions stripe/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {

id 'maven'
id 'signing'
id 'maven-publish'

// make sure this line comes *after* you apply the Android plugin
id 'com.getkeepsafe.dexcount'
Expand Down
25 changes: 25 additions & 0 deletions stripe/deploy.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,31 @@ def getRepositoryPassword() {
}

afterEvaluate { project ->
// See https://developer.android.com/studio/build/maven-publish-plugin
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
// Applies the component for the release build variant.
from components.release

// You can then customize attributes of the publication as shown below.
groupId = GROUP
artifactId = POM_ARTIFACT_ID
version = VERSION_NAME
}
// Creates a Maven publication called "debug".
debug(MavenPublication) {
// Applies the component for the debug build variant.
from components.debug

groupId = GROUP
artifactId = POM_ARTIFACT_ID
version = VERSION_NAME
}
}
}

uploadArchives {
repositories {
mavenDeployer {
Expand Down

0 comments on commit ecfe4e8

Please sign in to comment.