Skip to content

Commit 3c83f8e

Browse files
Adds maven for library release
1 parent b3572ae commit 3c83f8e

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

IpFyAndroid/build.gradle

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
plugins {
22
id 'com.android.library'
33
id 'kotlin-android'
4+
id 'kotlin-parcelize'
5+
id 'maven-publish'
46
}
57

68
android {
@@ -42,4 +44,21 @@ dependencies {
4244

4345
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
4446
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
47+
}
48+
49+
afterEvaluate {
50+
publishing {
51+
publications {
52+
// Creates a Maven publication called "release".
53+
release(MavenPublication) {
54+
// Applies the component for the release build variant.
55+
from components.release
56+
57+
// You can then customize attributes of the publication as shown below.
58+
groupId = 'com.creative.chintan369'
59+
artifactId = 'IpFyAndroid'
60+
version = '1.0.1'
61+
}
62+
}
63+
}
4564
}

0 commit comments

Comments
 (0)