Skip to content

Commit 1f29aa7

Browse files
Trying to fix things for Jitpack
1 parent cc2ca3d commit 1f29aa7

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

‎AutoFitTextViewLibrary/build.gradle.kts‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,23 @@ android {
2626
jvmTarget.set(JvmTarget.JVM_17)
2727
}
2828
}
29+
publishing {
30+
singleVariant("release") {
31+
withSourcesJar()
32+
}
33+
}
34+
}
35+
36+
afterEvaluate {
37+
publishing {
38+
publications {
39+
register<MavenPublication>("release") {
40+
from(components["release"])
41+
// Keep artifactId as Repo name for JitPack to find it easily if requested as com.github.User:Repo:Version
42+
artifactId = "AutoFitTextView"
43+
}
44+
}
45+
}
2946
}
3047

3148
dependencies {

‎build.gradle.kts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ plugins {
55
id("com.android.library") version "9.0.1" apply false
66
id("org.jetbrains.kotlin.android") version "2.3.10" apply false
77
}
8+
9+
allprojects {
10+
group = findProperty("group") ?: "com.github.AndroidDeveloperLB"
11+
version = findProperty("version") ?: "1.0.0"
12+
}

‎gradle.properties‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ org.gradle.configuration-cache=true
2525

2626
#https://dev.to/cdsap/gradle-811-faster-configuration-cache-and-improved-configuration-time-ja1
2727
org.gradle.configuration-cache.parallel=true
28-
android.defaults.buildfeatures.buildconfig=false

0 commit comments

Comments
 (0)