Skip to content

Commit f02852e

Browse files
committed
Release v1.0.1
1 parent 986fac4 commit f02852e

File tree

3 files changed

+32
-8
lines changed

3 files changed

+32
-8
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Repository for testing build from jitpack.io
1313
## Version Release
1414
This Is Latest Release
1515

16-
$version_release = 1.1.2
16+
$version_release = 1.0.1
1717
$version_dcendents = 2.1
1818

1919
What's New??
@@ -42,8 +42,14 @@ What's New??
4242

4343
### Step 2. Add the dependency (build.gradle : Module)
4444

45+
### For build.gradle (Groovy)
4546
dependencies {
46-
implementation 'com.github.amirisback:jitpack-library-kotlin-dsl-guide:1.0.0'
47+
implementation 'com.github.amirisback:jitpack-library-kotlin-dsl-guide:1.0.1'
48+
}
49+
50+
### For build.gradle.kts (Kotlin DSL)
51+
dependencies {
52+
implementation("com.github.amirisback:jitpack-library-kotlin-dsl-guide:1.0.1")
4753
}
4854

4955
## ScreenShoot External Libraries Implementation

buildSrc/src/main/kotlin/ProjectSetting.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ object ProjectSetting {
2424

2525
const val VERSION_MAJOR = 1
2626
const val VERSION_MINOR = 0
27-
const val VERSION_PATCH = 0
27+
const val VERSION_PATCH = 1
2828

2929
const val PROJECT_COMPILE_SDK = 31
3030
const val PROJECT_MIN_SDK = 21

kotlinlib/build.gradle.kts

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2+
13
plugins {
2-
id("java-library")
4+
java
35
id("kotlin")
46
`maven-publish`
57
}
@@ -13,6 +15,14 @@ dependencies {
1315
implementation("com.google.code.gson:gson:2.8.8")
1416
}
1517

18+
val sourcesJar by tasks.creating(Jar::class) {
19+
archiveClassifier.set("sources")
20+
from(sourceSets.getByName("main").allSource)
21+
from("LICENCE.md") {
22+
into("META-INF")
23+
}
24+
}
25+
1626
group = ProjectSetting.PROJECT_LIB_ID_KOTLIN
1727
version = ProjectSetting.PROJECT_VERSION_NAME
1828

@@ -21,7 +31,7 @@ publishing {
2131
publications {
2232

2333
// Creates a Maven publication called "release".
24-
create<MavenPublication>("release") {
34+
register("release", MavenPublication::class) {
2535

2636
// Library Package Name (Example : "com.frogobox.androidfirstlib")
2737
// NOTE : Different GroupId For Each Library / Module, So That Each Library Is Not Overwritten
@@ -34,14 +44,22 @@ publishing {
3444
// Version Library Name (Example : "1.0.0")
3545
version = ProjectSetting.PROJECT_VERSION_NAME
3646

47+
from(components["java"])
48+
49+
artifact(sourcesJar)
50+
51+
pom {
52+
packaging = "jar"
53+
name.set(ProjectSetting.LIBRARY_KOTLIN)
54+
description.set(ProjectSetting.LIBRARY_KOTLIN)
55+
}
56+
3757
}
3858

3959
}
4060

4161
repositories {
42-
maven {
43-
maven { url = uri("https://jitpack.io") }
44-
}
62+
maven { url = uri("https://jitpack.io") }
4563
}
4664

4765
}

0 commit comments

Comments
 (0)