Skip to content

Commit

Permalink
Configure publishing tasks (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave authored Nov 28, 2023
1 parent b9a6519 commit d0926a9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions divviup/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id("com.android.library")
id("org.mozilla.rust-android-gradle.rust-android")
id("maven-publish")
}

android {
Expand Down Expand Up @@ -34,6 +35,13 @@ android {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

publishing {
singleVariant("release") {
withSourcesJar()
withJavadocJar()
}
}
}

dependencies {
Expand Down Expand Up @@ -83,3 +91,16 @@ afterEvaluate {
}
}
}

publishing {
publications {
register<MavenPublication>("release") {
groupId = "org.divviup.android"
artifactId = "divviup-android"

afterEvaluate {
from(components["release"])
}
}
}
}

0 comments on commit d0926a9

Please sign in to comment.