Skip to content

Commit

Permalink
Maven and jar issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanihadesuka committed Apr 22, 2024
1 parent 83f485b commit 296ecf6
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ plugins {
id("maven-publish")
}

val versionName: String = "2.0.2"
object MySettings {
val versionName: String = "2.0.3"
val namespace = "my.nanihadesuka.lazycolumnscrollbar"
}

android {
namespace = "my.nanihadesuka.lazycolumnscrollbar"
namespace = MySettings.namespace
compileSdk = 34

buildFeatures {
Expand Down Expand Up @@ -52,16 +55,23 @@ android {
isIncludeAndroidResources = true
}
}
}

afterEvaluate {
publishing {
publications {
register("release", MavenPublication::class) {
singleVariant("release") {
withSourcesJar()
}
}
}

publishing {
publications {
register<MavenPublication>("release") {
groupId = MySettings.namespace
artifactId = "lazycolumnscrollbar"
version = MySettings.versionName

afterEvaluate {
from(components["release"])
groupId = "my.nanihadesuka.lazycolumnscrollbar"
artifactId = "lazycolumnscrollbar"
version = versionName
}
}
}
Expand Down

0 comments on commit 296ecf6

Please sign in to comment.