Skip to content

Commit cbc359f

Browse files
committed
Prepare library for publish in jitpack
1 parent a873db1 commit cbc359f

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

jitpack.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
jdk:
2+
- openjdk11

library/build.gradle.kts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
alias(libs.plugins.android.library)
33
alias(libs.plugins.android.kotlin)
4+
id("maven-publish")
45
}
56
android {
67
namespace = "ir.alirezaivaz.numberstoletters"
@@ -25,4 +26,22 @@ android {
2526
kotlinOptions {
2627
jvmTarget = "11"
2728
}
28-
}
29+
publishing {
30+
singleVariant("release") {
31+
withSourcesJar()
32+
withJavadocJar()
33+
}
34+
}
35+
}
36+
publishing {
37+
publications {
38+
register<MavenPublication>("release") {
39+
groupId = "ir.alirezaivaz"
40+
artifactId = "numberstoletters"
41+
version = "2.0.0"
42+
afterEvaluate {
43+
from(components["release"])
44+
}
45+
}
46+
}
47+
}

0 commit comments

Comments
 (0)