From 24983672c0777035b4760811114be9d5965baa0c Mon Sep 17 00:00:00 2001 From: birjuvachhani Date: Tue, 11 Jan 2022 22:52:42 +0530 Subject: [PATCH] Refactor jitpack publishing --- build.gradle.kts | 14 -------------- locus/build.gradle.kts | 10 ++++++++++ 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 54045af..baed688 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,3 @@ -plugins { - id("maven-publish") -} - buildscript { repositories { google() @@ -24,14 +20,4 @@ allprojects { tasks.register("clean", Delete::class) { delete(rootProject.buildDir) -} - -publishing { - publications { - create("locus-android") { - groupId = "com.github.BirjuVachhani" - artifactId = "locus-android" - artifact("locus/build/outputs/aar/locus-release.aar") - } - } } \ No newline at end of file diff --git a/locus/build.gradle.kts b/locus/build.gradle.kts index cda0c0b..8f2185a 100644 --- a/locus/build.gradle.kts +++ b/locus/build.gradle.kts @@ -41,4 +41,14 @@ dependencies { compileOnly("com.google.android.gms:play-services-location:19.0.1") implementation("androidx.appcompat:appcompat:1.4.0") implementation("androidx.activity:activity-ktx:1.4.0") +} + +publishing { + publications { + create("locus-android") { + groupId = "com.github.BirjuVachhani" + artifactId = "locus-android" + artifact("$buildDir/outputs/aar/locus-release.aar") + } + } } \ No newline at end of file