From 83f485b7d7bc7a9149a8095d7762ab27b5d5e258 Mon Sep 17 00:00:00 2001 From: nani <87673002+nanihadesuka@users.noreply.github.com> Date: Mon, 22 Apr 2024 20:40:29 +0200 Subject: [PATCH] Maven and jar issues. --- lib/build.gradle.kts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index aa165b3..4a862f2 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -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 { @@ -63,8 +57,8 @@ android { afterEvaluate { publishing { publications { - create("release") { - from(components.getByName("release")) + register("release", MavenPublication::class) { + from(components["release"]) groupId = "my.nanihadesuka.lazycolumnscrollbar" artifactId = "lazycolumnscrollbar" version = versionName