File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,8 +2,12 @@ plugins {
22 id ' com.android.library'
33 id ' kotlin-android'
44 id ' kotlin-kapt'
5+ id ' maven-publish'
56}
67
8+ group = ' com.github.rosuH'
9+ version = ' 1.0'
10+
711android {
812 compileSdkVersion 29
913 buildToolsVersion " 29.0.3"
@@ -34,9 +38,25 @@ android {
3438}
3539
3640dependencies {
37- implementation ' com.github.bumptech.glide:glide:4.11.0'
41+ compileOnly ' com.github.bumptech.glide:glide:4.11.0'
3842 kapt ' com.github.bumptech.glide:compiler:4.11.0'
39- implementation " org.jetbrains.kotlin:kotlin-stdlib:1.4.20 "
43+ implementation " org.jetbrains.kotlin:kotlin-stdlib:1.4.21 "
4044 implementation ' androidx.core:core-ktx:1.3.2'
41- testImplementation ' junit:junit:4.+'
45+ }
46+
47+ afterEvaluate {
48+ publishing {
49+ publications {
50+ // Creates a Maven publication called "release".
51+ release(MavenPublication ) {
52+ // Applies the component for the release build variant.
53+ from components. release
54+
55+ // You can then customize attributes of the publication as shown below.
56+ groupId = ' com.github.rosuH'
57+ artifactId = ' final'
58+ version = ' 1.0'
59+ }
60+ }
61+ }
4262}
You can’t perform that action at this time.
0 commit comments