Skip to content

Commit 2738446

Browse files
committed
feat: Add maven publish
1 parent 8afeb50 commit 2738446

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

LazyVerticalTitleGridLibrary/build.gradle

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
plugins {
22
id 'com.android.library'
33
id 'org.jetbrains.kotlin.android'
4+
id 'kotlin-android'
5+
id 'kotlin-kapt'
6+
id 'maven-publish'
47
}
58

69
android {
@@ -50,4 +53,27 @@ dependencies {
5053
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
5154
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
5255
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
56+
}
57+
58+
afterEvaluate {
59+
publishing {
60+
publications {
61+
release(MavenPublication) {
62+
// The following applies a component to this publication
63+
// which results in publishing an app bundle.
64+
from components.release
65+
66+
groupId = 'com.olivia.lazyverticaltitlegridlibrary.library'
67+
version = '1.0.0'
68+
}
69+
debug(MavenPublication) {
70+
// The following applies a component to this publication
71+
// which results in publishing APKs in a ZIP file.
72+
from components.debug
73+
74+
groupId = 'com.olivia.lazyverticaltitlegridlibrary.library'
75+
version = '1.0.0'
76+
}
77+
}
78+
}
5379
}

0 commit comments

Comments
 (0)