Skip to content

Commit

Permalink
add maven publish to common
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroSG94 committed Nov 3, 2023
1 parent 767009e commit a44b168
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'maven-publish'
id 'org.jetbrains.dokka'
}

android {
Expand All @@ -24,6 +26,27 @@ android {
kotlinOptions {
jvmTarget = '17'
}

publishing {
singleVariant("release")
}
}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
// Applies the component for the release build variant.
from components.release

// You can then customize attributes of the publication as shown below.
groupId = "$library_group"
artifactId = "common"
version = "$version_name"
}
}
}
}

dependencies {
Expand Down

0 comments on commit a44b168

Please sign in to comment.