@@ -29,7 +29,6 @@ buildscript {
29
29
dependencies {
30
30
classpath ' com.android.tools.build:gradle:7.2.1'
31
31
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
32
- classpath ' com.github.dcendents:android-maven-gradle-plugin:2.1'
33
32
}
34
33
}
35
34
@@ -72,6 +71,8 @@ subprojects {
72
71
apply plugin : ' kotlin-android'
73
72
apply plugin : ' kotlin-parcelize'
74
73
apply plugin : ' kotlin-kapt'
74
+ apply plugin : ' maven-publish'
75
+
75
76
76
77
dependencies {
77
78
testImplementation ' junit:junit:4.13.2'
@@ -99,6 +100,17 @@ subprojects {
99
100
api " androidx.lifecycle:lifecycle-common-java8:$lifecycle "
100
101
api " androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle "
101
102
}
103
+
104
+ it. afterEvaluate {
105
+ publishing {
106
+ publications {
107
+ release(MavenPublication ) {
108
+ from components. release
109
+ }
110
+ }
111
+ }
112
+ }
113
+
102
114
break
103
115
104
116
case ' extensions' :
@@ -108,6 +120,7 @@ subprojects {
108
120
apply plugin : ' kotlin-android'
109
121
apply plugin : ' kotlin-parcelize'
110
122
apply plugin : ' kotlin-kapt'
123
+ apply plugin : ' maven-publish'
111
124
112
125
dependencies {
113
126
implementation project(path : ' :core' )
@@ -120,12 +133,24 @@ subprojects {
120
133
apply plugin : ' kotlin-android'
121
134
apply plugin : ' kotlin-parcelize'
122
135
apply plugin : ' kotlin-kapt'
136
+ apply plugin : ' maven-publish'
123
137
124
138
dependencies {
125
139
api project(path : ' :core' )
126
140
implementation project(path : ' :extensions' )
127
141
}
128
142
143
+ it. afterEvaluate {
144
+ publishing {
145
+ publications {
146
+ release(MavenPublication ) {
147
+ from components. release
148
+ }
149
+ }
150
+ }
151
+ }
152
+
153
+ break
129
154
130
155
}
131
156
0 commit comments