Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
amolood authored Jul 31, 2018
1 parent e72e8bc commit 2751c04
Showing 1 changed file with 0 additions and 89 deletions.
89 changes: 0 additions & 89 deletions CardForm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,92 +43,3 @@ dependencies {
testCompile 'org.mockito:mockito-core:2.8.9'
}

/* maven release */
task javadocs(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
failOnError false
}

task javadocsJar(type: Jar, dependsOn: javadocs) {
classifier = 'javadoc'
from javadocs.destinationDir
}

task sourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}

artifacts {
archives javadocsJar
archives sourcesJar
}

signing {
required { !version.endsWith("SNAPSHOT") }
sign configurations.archives
}

nexusStaging {
packageGroup = "com.braintreepayments"
}

def sonatypeUsername = System.env['SONATYPE_USERNAME']
def sonatypePassword = System.env['SONATYPE_PASSWORD']

uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2/') {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
snapshotRepository(url: 'https://oss.sonatype.org/content/repositories/snapshots/') {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}

pom.setArtifactId 'card-form'

pom.project {
name 'card-form'
groupId = 'com.braintreepayments'
version = "${android.defaultConfig.versionName}"
packaging 'aar'
description 'A ready-made card form layout that can be included in your Android app, making it easy to accept credit and debit cards.'

url 'https://github.com/braintree/android-card-form'

scm {
url 'scm:git@github.com:braintree/android-card-form.git'
connection 'scm:git@github.com:braintree/android-card-form.git'
developerConnection 'scm:git@github.com:braintree/android-card-form.git'
}

developers {
developer {
id 'devs'
name 'Braintree Payments'
}
}

licenses {
license {
name 'MIT'
url 'http://opensource.org/licenses/MIT'
distribution 'repo'
}
}
}

pom.whenConfigured { MavenPom pom ->
pom.dependencies.each {
if (it.artifactId == 'android-sdk') {
it.optional = true
}
}
}
}
}
}

0 comments on commit 2751c04

Please sign in to comment.