Skip to content

Commit 31166a0

Browse files
committed
update library to fix jitpack publish error
1 parent 7a66382 commit 31166a0

File tree

4 files changed

+23
-4
lines changed

4 files changed

+23
-4
lines changed

RecyclerViewSwipeExt/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ android {
2828
kotlinOptions {
2929
jvmTarget = '1.8'
3030
}
31+
32+
3133
}
3234

3335
dependencies {
@@ -38,4 +40,4 @@ dependencies {
3840
testImplementation 'junit:junit:4.13.2'
3941
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
4042
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
41-
}
43+
}

app/build.gradle

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id 'com.android.application'
33
id 'org.jetbrains.kotlin.android'
4+
id 'maven-publish'
45
}
56

67
android {
@@ -11,8 +12,8 @@ android {
1112
applicationId "dev.jahidhasanco.recyclerviewswipeextdemo"
1213
minSdk 24
1314
targetSdk 33
14-
versionCode 2
15-
versionName "1.0.1"
15+
versionCode 3
16+
versionName "1.0.2"
1617

1718
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1819
}
@@ -47,4 +48,17 @@ dependencies {
4748
testImplementation 'junit:junit:4.13.2'
4849
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
4950
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
51+
}
52+
53+
54+
afterEvaluate {
55+
publishing {
56+
publications {
57+
release(MavenPublication) {
58+
groupId = 'dev.jahidhasanco.recyclerviewswipeext'
59+
artifactId = 'RecyclerViewSwipeExt' //your-repository
60+
version = '1.0.2' // As same as the Tag
61+
}
62+
}
63+
}
5064
}

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ kotlin.code.style=official
2020
# Enables namespacing of each library's R class so that its R class includes only the
2121
# resources declared in the library itself and none from the library's dependencies,
2222
# thereby reducing the size of the R class for that library
23-
android.nonTransitiveRClass=true
23+
android.nonTransitiveRClass=true
24+
android.disableAutomaticComponentCreation=true

jitpack.yml

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

0 commit comments

Comments
 (0)