File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 11plugins {
22 id ' com.android.library'
33 id ' kotlin-android'
4+ id ' maven-publish'
45}
56
67android {
@@ -27,6 +28,31 @@ android {
2728 kotlinOptions {
2829 jvmTarget = ' 11'
2930 }
31+ afterEvaluate {
32+ publishing {
33+ publications {
34+ // Creates a Maven publication called "release".
35+ release(MavenPublication ) {
36+ // Applies the component for the release build variant.
37+ from components. release
38+
39+ // You can then customize attributes of the publication as shown below.
40+ groupId = ' com.github.DeveloperPaul123.StarView'
41+ artifactId = ' final'
42+ version = ' 1.0.2'
43+ }
44+ // Creates a Maven publication called “debug”.
45+ debug(MavenPublication ) {
46+ // Applies the component for the debug build variant.
47+ from components. debug
48+
49+ groupId = ' com.github.DeveloperPaul123.StarView'
50+ artifactId = ' final-debug'
51+ version = ' 1.0.2'
52+ }
53+ }
54+ }
55+ }
3056}
3157
3258dependencies {
You can’t perform that action at this time.
0 commit comments