Skip to content

Commit

Permalink
Added maven publish gradle plugin to directdownload module
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyPouya committed Jul 12, 2024
1 parent a601109 commit d8449e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
21 changes: 1 addition & 20 deletions directdownload/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
alias(libs.plugins.androidLibrary)
alias(libs.plugins.jetbrainsKotlinAndroid)
`maven-publish`
alias(libs.plugins.maven.publish)
}

android {
Expand All @@ -18,12 +18,6 @@ android {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
publishing {
singleVariant("release") {
withSourcesJar()
withJavadocJar()
}
}
namespace = "com.pouyaheydari.appupdater.directdownload"
}

Expand All @@ -42,16 +36,3 @@ dependencies {
androidTestImplementation(libs.androidx.test.ui.espresso.core)
androidTestImplementation(libs.androidx.test.ui.espresso.intents)
}

afterEvaluate {
publishing {
publications {
register<MavenPublication>("release") {
from(components["release"])
groupId = "com.pouyaheydari.updater"
artifactId = "directdownload"
version = libs.versions.appVersion.get()
}
}
}
}
1 change: 1 addition & 0 deletions directdownload/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
POM_ARTIFACT_ID=directdownload

0 comments on commit d8449e7

Please sign in to comment.