From 2301378334486443ccb11bb209aafba31f92f1e1 Mon Sep 17 00:00:00 2001 From: Paul T Date: Wed, 29 Dec 2021 10:53:48 -0500 Subject: [PATCH] Fix Jitpack Deployment Issues --- starview/build.gradle | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/starview/build.gradle b/starview/build.gradle index 1ddcd5b..6098be4 100644 --- a/starview/build.gradle +++ b/starview/build.gradle @@ -1,6 +1,7 @@ plugins { id 'com.android.library' id 'kotlin-android' + id 'maven-publish' } android { @@ -27,6 +28,31 @@ android { kotlinOptions { jvmTarget = '11' } + 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.github.DeveloperPaul123.StarView' + artifactId = 'final' + version = '1.0.2' + } + // Creates a Maven publication called “debug”. + debug(MavenPublication) { + // Applies the component for the debug build variant. + from components.debug + + groupId = 'com.github.DeveloperPaul123.StarView' + artifactId = 'final-debug' + version = '1.0.2' + } + } + } + } } dependencies {