@@ -2,20 +2,18 @@ apply plugin: 'com.android.library'
22apply plugin : ' kotlin-android'
33apply plugin : ' kotlin-kapt'
44apply plugin : ' org.jetbrains.dokka'
5- apply plugin : ' maven'
65apply plugin : ' signing'
76apply plugin : ' maven-publish'
87
98group = ' com.github.mindbox-moscow'
10- apply plugin : ' com.github.dcendents.android-maven'
119
1210android {
13- compileSdkVersion 31
14- buildToolsVersion " 29 .0.3 "
11+ compileSdkVersion 33
12+ buildToolsVersion " 33 .0.2 "
1513
1614 defaultConfig {
1715 minSdkVersion 19
18- targetSdkVersion 31
16+ targetSdkVersion 33
1917 versionCode 1
2018 multiDexEnabled true
2119 versionName ' "' + SDK_VERSION_NAME + ' "'
@@ -57,61 +55,63 @@ android {
5755 from android. sourceSets. main. java. srcDirs
5856 }
5957
60- afterEvaluate {
61- publishing {
62- publications {
63- release(MavenPublication ) {
64- from components. release
65- artifact androidSourcesJar
66- groupId = ' cloud.mindbox'
67- artifactId = ARTIFACT_ID
68- version = SDK_VERSION_NAME
69- pom {
70- name = ARTIFACT_NAME
71- description = ' Test release'
72- url = ' https://github.com/mindbox-moscow/android-sdk'
73- licenses {
74- license {
75- name = ' The Mindbox License'
76- url = ' https://github.com/mindbox-moscow/android-sdk/blob/master/LICENSE.md'
77- }
78- }
79- developers {
80- developer {
81- id = ' mindbox'
82- name = ' Petr Nikitin'
83- 84- }
58+ }
59+
60+ afterEvaluate {
61+ apply plugin : ' maven-publish'
62+ publishing {
63+ publications {
64+ release(MavenPublication ) {
65+ from components. release
66+ artifact androidSourcesJar
67+ groupId = ' cloud.mindbox'
68+ artifactId = ARTIFACT_ID
69+ version = SDK_VERSION_NAME
70+ pom {
71+ name = ARTIFACT_NAME
72+ description = ' Test release'
73+ url = ' https://github.com/mindbox-moscow/android-sdk'
74+ licenses {
75+ license {
76+ name = ' The Mindbox License'
77+ url = ' https://github.com/mindbox-moscow/android-sdk/blob/master/LICENSE.md'
8578 }
86- scm {
87- connection = ' scm:https://github.com/mindbox-moscow/android-sdk.git'
88- developerConnection = ' scm:git://github.com/mindbox-moscow/android-sdk.git'
89- url = ' https://github.com/mindbox-moscow/android-sdk'
79+ }
80+ developers {
81+ developer {
82+ id = ' mindbox'
83+ name = ' Petr Nikitin'
84+ 9085 }
9186 }
87+ scm {
88+ connection = ' scm:https://github.com/mindbox-moscow/android-sdk.git'
89+ developerConnection = ' scm:git://github.com/mindbox-moscow/android-sdk.git'
90+ url = ' https://github.com/mindbox-moscow/android-sdk'
91+ }
9292 }
9393 }
94+ }
9495
95- repositories {
96- if (! project. hasProperty(" sonatypeUsername" )) {
97- ext. sonatypeUsername = " sonatypeUsername"
98- }
99- if (! project. hasProperty(" sonatypePassword" )) {
100- ext. sonatypePassword = " sonatypePassword"
101- }
102- maven {
103- name = " OSSRH"
104- url = uri(" https://oss.sonatype.org/service/local/staging/deploy/maven2" )
105- credentials {
106- username = sonatypeUsername
107- password = sonatypePassword
108- }
96+ repositories {
97+ if (! project. hasProperty(" sonatypeUsername" )) {
98+ ext. sonatypeUsername = " sonatypeUsername"
99+ }
100+ if (! project. hasProperty(" sonatypePassword" )) {
101+ ext. sonatypePassword = " sonatypePassword"
102+ }
103+ maven {
104+ name = " OSSRH"
105+ url = uri(" https://oss.sonatype.org/service/local/staging/deploy/maven2" )
106+ credentials {
107+ username = sonatypeUsername
108+ password = sonatypePassword
109109 }
110110 }
111111 }
112+ }
112113
113- signing {
114- sign publishing. publications. release
115- }
114+ signing {
115+ sign publishing. publications. release
116116 }
117117}
0 commit comments