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 75b2f77 commit 83f485b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,18 @@ plugins {
id("maven-publish")
}

val versionCode: Int = 21
val versionName: String = "2.0.1"
val versionName: String = "2.0.2"

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

buildFeatures {
buildConfig = true
compose = true
}

defaultConfig {
minSdk = 21
// you removed these variables REALLY GRADLE ???
buildConfigField("int", "VERSION_CODE", versionCode.toString())
buildConfigField("String", "VERSION_NAME", "\"$versionName\"")

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
vectorDrawables {
Expand Down Expand Up @@ -63,8 +57,8 @@ android {
afterEvaluate {
publishing {
publications {
create<MavenPublication>("release") {
from(components.getByName("release"))
register("release", MavenPublication::class) {
from(components["release"])
groupId = "my.nanihadesuka.lazycolumnscrollbar"
artifactId = "lazycolumnscrollbar"
version = versionName
Expand Down

0 comments on commit 83f485b

Please sign in to comment.