Skip to content

Commit

Permalink
Adds maven for library release
Browse files Browse the repository at this point in the history
  • Loading branch information
chintak369promact committed Dec 2, 2021
1 parent b3572ae commit 3c83f8e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions IpFyAndroid/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-parcelize'
id 'maven-publish'
}

android {
Expand Down Expand Up @@ -42,4 +44,21 @@ dependencies {

implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
// Applies the component for the release build variant.
from components.release

// You can then customize attributes of the publication as shown below.
groupId = 'com.creative.chintan369'
artifactId = 'IpFyAndroid'
version = '1.0.1'
}
}
}
}

0 comments on commit 3c83f8e

Please sign in to comment.