Skip to content

Commit 3ede54b

Browse files
committed
fix: add missing plugin to solve JitPack build
1 parent 9311f88 commit 3ede54b

3 files changed

Lines changed: 24 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ This library uses **Material Components 1.14+** for the `LoadingIndicator` compo
7272

7373
```gradle
7474
dependencies {
75-
implementation 'com.google.android.material:material:1.14.0'
75+
implementation 'com.google.android.material:material:1.14.0-alpha09'
7676
implementation 'androidx.core:core:1.16.0'
7777
}
7878
```

jitpack.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
jdk:
66
- openjdk17
77

8-
# Build commands (optional, JitPack auto-detects Gradle projects)
9-
# The library module ':refresh' will be built automatically
10-
11-
# Install the library module to make it available as a dependency
8+
# Build the library module
129
install:
13-
- ./gradlew :refresh:assemble :refresh:publishToMavenLocal
10+
- ./gradlew :refresh:assembleRelease :refresh:publishToMavenLocal

refresh/build.gradle

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id 'com.android.library'
3+
id 'maven-publish'
34
}
45

56
android {
@@ -30,9 +31,29 @@ android {
3031
sourceCompatibility JavaVersion.VERSION_1_8
3132
targetCompatibility JavaVersion.VERSION_1_8
3233
}
34+
35+
publishing {
36+
singleVariant('release') {
37+
withSourcesJar()
38+
withJavadocJar()
39+
}
40+
}
3341
}
3442

3543
dependencies {
3644
implementation 'androidx.core:core:1.16.0'
3745
implementation 'com.google.android.material:material:1.14.0-alpha09'
3846
}
47+
48+
afterEvaluate {
49+
publishing {
50+
publications {
51+
release(MavenPublication) {
52+
groupId = 'com.github.Netsnake-TN'
53+
artifactId = 'ExpressivepullToRefresh'
54+
version = '1.0.0'
55+
from components.release
56+
}
57+
}
58+
}
59+
}

0 commit comments

Comments
 (0)