|
1 | 1 | apply plugin: 'com.android.library' |
2 | 2 | apply plugin: 'kotlin-android' |
3 | | -apply plugin: "com.jfrog.bintray" |
4 | | -apply plugin: 'com.github.dcendents.android-maven' |
5 | | -apply plugin: 'maven-publish' |
6 | 3 |
|
7 | 4 | android { |
8 | 5 | compileSdkVersion rootProject.ext.compileSdkVersion |
@@ -36,57 +33,4 @@ dependencies { |
36 | 33 | implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.7" |
37 | 34 | } |
38 | 35 |
|
39 | | -project.afterEvaluate { |
40 | | - publishing { |
41 | | - publications { |
42 | | - library(MavenPublication) { |
43 | | - setGroupId 'co.paystack.android' |
44 | | - setArtifactId 'paystack' |
45 | | - version android.defaultConfig.versionName |
46 | | - artifact bundleReleaseAar |
47 | | - |
48 | | - pom.withXml { |
49 | | - def dependenciesNode = asNode().appendNode('dependencies') |
50 | | - configurations.implementation.allDependencies.each { |
51 | | - if (it.name != 'unspecified') { |
52 | | - def dependencyNode = dependenciesNode.appendNode('dependency') |
53 | | - dependencyNode.appendNode('groupId', it.group) |
54 | | - dependencyNode.appendNode('artifactId', it.name) |
55 | | - dependencyNode.appendNode('version', it.version) |
56 | | - } |
57 | | - } |
58 | | - } |
59 | | - } |
60 | | - } |
61 | | - } |
62 | | -} |
63 | | - |
64 | | -ext { |
65 | | - // Where you will see your artifact in Bintray's web interface |
66 | | - // The "bintrayName" should match the name of the Bintray repro. |
67 | | - bintrayRepo = 'maven' |
68 | | - bintrayName = 'paystack-android' |
69 | | - |
70 | | - // Maven metadata |
71 | | - publishedGroupId = 'co.paystack.android' |
72 | | - libraryName = 'paystack-android' |
73 | | - // Save yourself a head ache, and set this equal to the name of the Android Studio library |
74 | | - // module. The artifact name needs to match the name of the library. |
75 | | - artifact = 'paystack' |
76 | | - |
77 | | - libraryDescription = 'An android sdk for working with paystack' |
78 | | - libraryVersion = rootProject.ext.versionName |
79 | | - |
80 | | - developerId = 'paystack' |
81 | | - developerName = 'Paystack' |
82 | | - developerEmail = '[email protected]' |
83 | | - |
84 | | - siteUrl = 'https://github.com/PaystackHQ/paystack-android' |
85 | | - gitUrl = 'https://github.com/PaystackHQ/paystack-android.git' |
86 | | - |
87 | | - licenseName = 'The Apache Software License, Version 2.0' |
88 | | - licenseUrl = 'https://raw.githubusercontent.com/PaystackHQ/paystack-android/master/LICENSE.txt' |
89 | | - allLicenses = ["Apache-2.0"] |
90 | | -} |
91 | | -apply from: 'https://raw.githubusercontent.com/ibrahimlawal/JCenter/master/installv1.gradle' |
92 | | -apply from: "$rootProject.projectDir/paystack/bintray-config.gradle" |
| 36 | +apply from: "https://raw.githubusercontent.com/PaystackHQ/publish-mavencentral/main/maven-publish.gradle" |
0 commit comments