From 3c83f8eac809e141a505fb88b551c54583ccfb2f Mon Sep 17 00:00:00 2001 From: chintak369promact Date: Thu, 2 Dec 2021 22:50:48 +0530 Subject: [PATCH] Adds maven for library release --- .idea/compiler.xml | 2 +- IpFyAndroid/build.gradle | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 3794d59..fb7f4a8 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/IpFyAndroid/build.gradle b/IpFyAndroid/build.gradle index 06e9939..c0c1b70 100644 --- a/IpFyAndroid/build.gradle +++ b/IpFyAndroid/build.gradle @@ -1,6 +1,8 @@ plugins { id 'com.android.library' id 'kotlin-android' + id 'kotlin-parcelize' + id 'maven-publish' } android { @@ -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' + } + } + } } \ No newline at end of file