|
1 | 1 | apply plugin: 'com.android.library' |
2 | 2 | apply plugin: "com.jfrog.bintray" |
3 | 3 | apply plugin: 'com.github.dcendents.android-maven' |
| 4 | +apply plugin: 'maven-publish' |
4 | 5 |
|
5 | 6 | android { |
6 | 7 | compileSdkVersion rootProject.ext.compileSdkVersion |
@@ -30,13 +31,38 @@ android { |
30 | 31 | dependencies { |
31 | 32 | implementation fileTree(dir: 'libs', include: ['*.jar']) |
32 | 33 | implementation 'com.google.code.gson:gson:2.8.5' |
33 | | - implementation 'com.squareup.retrofit2:retrofit:2.6.2' |
| 34 | + implementation 'com.squareup.retrofit2:retrofit:2.9.0' |
34 | 35 | implementation 'com.squareup.retrofit2:converter-gson:2.5.0' |
35 | | - implementation 'com.squareup.okhttp3:okhttp:3.14.6' |
| 36 | + implementation 'com.squareup.okhttp3:okhttp:3.14.9' |
36 | 37 | implementation "com.android.support:appcompat-v7:$rootProject.ext.supportLibraryVersion" |
37 | 38 | implementation 'co.paystack.android.design.widget:pinpad:1.0.4' |
38 | 39 | } |
39 | 40 |
|
| 41 | +project.afterEvaluate { |
| 42 | + publishing { |
| 43 | + publications { |
| 44 | + library(MavenPublication) { |
| 45 | + setGroupId 'co.paystack.android' |
| 46 | + setArtifactId 'paystack' |
| 47 | + version android.defaultConfig.versionName |
| 48 | + artifact bundleReleaseAar |
| 49 | + |
| 50 | + pom.withXml { |
| 51 | + def dependenciesNode = asNode().appendNode('dependencies') |
| 52 | + configurations.implementation.allDependencies.each { |
| 53 | + if (it.name != 'unspecified') { |
| 54 | + def dependencyNode = dependenciesNode.appendNode('dependency') |
| 55 | + dependencyNode.appendNode('groupId', it.group) |
| 56 | + dependencyNode.appendNode('artifactId', it.name) |
| 57 | + dependencyNode.appendNode('version', it.version) |
| 58 | + } |
| 59 | + } |
| 60 | + } |
| 61 | + } |
| 62 | + } |
| 63 | + } |
| 64 | +} |
| 65 | + |
40 | 66 | ext { |
41 | 67 | // Where you will see your artifact in Bintray's web interface |
42 | 68 | // The "bintrayName" should match the name of the Bintray repro. |
|
64 | 90 | licenseUrl = 'https://raw.githubusercontent.com/PaystackHQ/paystack-android/master/LICENSE.txt' |
65 | 91 | allLicenses = ["Apache-2.0"] |
66 | 92 | } |
67 | | - |
68 | 93 | apply from: 'https://raw.githubusercontent.com/ibrahimlawal/JCenter/master/installv1.gradle' |
69 | | -apply from: 'https://raw.githubusercontent.com/ibrahimlawal/JCenter/master/bintrayv1.gradle' |
| 94 | +apply from: "$rootProject.projectDir/paystack/bintray-config.gradle" |
0 commit comments