Skip to content

Commit

Permalink
Refactor jitpack publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
BirjuVachhani committed Jan 11, 2022
1 parent 915c341 commit 2498367
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
14 changes: 0 additions & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
plugins {
id("maven-publish")
}

buildscript {
repositories {
google()
Expand All @@ -24,14 +20,4 @@ allprojects {

tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}

publishing {
publications {
create<MavenPublication>("locus-android") {
groupId = "com.github.BirjuVachhani"
artifactId = "locus-android"
artifact("locus/build/outputs/aar/locus-release.aar")
}
}
}
10 changes: 10 additions & 0 deletions locus/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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<MavenPublication>("locus-android") {
groupId = "com.github.BirjuVachhani"
artifactId = "locus-android"
artifact("$buildDir/outputs/aar/locus-release.aar")
}
}
}

0 comments on commit 2498367

Please sign in to comment.