Skip to content

Commit afcc9e8

Browse files
committed
🚀
[Add] - JitPack support
1 parent 89bac5f commit afcc9e8

1 file changed

Lines changed: 23 additions & 3 deletions

File tree

library/build.gradle

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff 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+
711
android {
812
compileSdkVersion 29
913
buildToolsVersion "29.0.3"
@@ -34,9 +38,25 @@ android {
3438
}
3539

3640
dependencies {
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
}

0 commit comments

Comments
 (0)