Skip to content

Commit

Permalink
add publish gradle code
Browse files Browse the repository at this point in the history
  • Loading branch information
eriffanani committed Aug 29, 2024
1 parent 7e539bf commit 7c3e0c4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions filedownloader/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
plugins {
alias(libs.plugins.android.library)
id("maven-publish")
}

afterEvaluate {
configure<PublishingExtension> {
publications {
create<MavenPublication>("release") {
groupId = "com.github.eriffanani"
artifactId = "DownloadManager"
version = "1.0.0"
afterEvaluate {
artifact(tasks.getByName("bundleReleaseAar"))
}
}
}
}
}

android {
Expand Down
3 changes: 3 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven {
url = uri("https://jitpack.io")
}
}
}

Expand Down

0 comments on commit 7c3e0c4

Please sign in to comment.