Skip to content

Commit

Permalink
Release v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
amirisback committed Oct 7, 2021
1 parent 986fac4 commit f02852e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Repository for testing build from jitpack.io
## Version Release
This Is Latest Release

$version_release = 1.1.2
$version_release = 1.0.1
$version_dcendents = 2.1

What's New??
Expand Down Expand Up @@ -42,8 +42,14 @@ What's New??

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

### For build.gradle (Groovy)
dependencies {
implementation 'com.github.amirisback:jitpack-library-kotlin-dsl-guide:1.0.0'
implementation 'com.github.amirisback:jitpack-library-kotlin-dsl-guide:1.0.1'
}

### For build.gradle.kts (Kotlin DSL)
dependencies {
implementation("com.github.amirisback:jitpack-library-kotlin-dsl-guide:1.0.1")
}

## ScreenShoot External Libraries Implementation
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/ProjectSetting.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ object ProjectSetting {

const val VERSION_MAJOR = 1
const val VERSION_MINOR = 0
const val VERSION_PATCH = 0
const val VERSION_PATCH = 1

const val PROJECT_COMPILE_SDK = 31
const val PROJECT_MIN_SDK = 21
Expand Down
28 changes: 23 additions & 5 deletions kotlinlib/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id("java-library")
java
id("kotlin")
`maven-publish`
}
Expand All @@ -13,6 +15,14 @@ dependencies {
implementation("com.google.code.gson:gson:2.8.8")
}

val sourcesJar by tasks.creating(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets.getByName("main").allSource)
from("LICENCE.md") {
into("META-INF")
}
}

group = ProjectSetting.PROJECT_LIB_ID_KOTLIN
version = ProjectSetting.PROJECT_VERSION_NAME

Expand All @@ -21,7 +31,7 @@ publishing {
publications {

// Creates a Maven publication called "release".
create<MavenPublication>("release") {
register("release", MavenPublication::class) {

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

from(components["java"])

artifact(sourcesJar)

pom {
packaging = "jar"
name.set(ProjectSetting.LIBRARY_KOTLIN)
description.set(ProjectSetting.LIBRARY_KOTLIN)
}

}

}

repositories {
maven {
maven { url = uri("https://jitpack.io") }
}
maven { url = uri("https://jitpack.io") }
}

}

0 comments on commit f02852e

Please sign in to comment.