Skip to content

Commit acc8479

Browse files
authored
Merge pull request #9 from u-barnwal/LIB-7
configure for Jitpack
2 parents 6d80088 + f475357 commit acc8479

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

Connection/build.gradle

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
plugins {
22
id 'com.android.library'
33
id 'kotlin-android'
4+
id 'maven-publish'
45
}
56

7+
group = 'com.github.jitpack'
8+
version = '1.0'
9+
610
android {
711
compileSdk 31
812

@@ -32,7 +36,6 @@ android {
3236
}
3337

3438
dependencies {
35-
3639
implementation 'androidx.core:core-ktx:1.7.0'
3740
implementation 'androidx.appcompat:appcompat:1.4.1'
3841
implementation 'com.google.android.material:material:1.5.0'
@@ -43,4 +46,18 @@ dependencies {
4346

4447
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
4548
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
49+
}
50+
51+
afterEvaluate {
52+
publishing {
53+
publications {
54+
// Creates a Maven publication called "release".
55+
release(MavenPublication) {
56+
from components.release
57+
groupId = 'com.github.jitpack'
58+
artifactId = 'connection'
59+
version = '1.0'
60+
}
61+
}
62+
}
4663
}

0 commit comments

Comments
 (0)