Skip to content

Commit

Permalink
tryed to fix jitpack issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
kamaravichow committed Sep 30, 2021
1 parent 86fb3a5 commit 5180b2b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion jitpack.yml
@@ -1,2 +1,4 @@
jdk:
- openjdk11
- openjdk11
install:
- ./gradlew build :lib:publishToMavenLocal
18 changes: 18 additions & 0 deletions lib/build.gradle
@@ -1,5 +1,23 @@
plugins {
id 'com.android.library'
id 'maven-publish'
}


task androidSourcesJar(type: Jar) {
classifier 'sources'
from android.sourceSets.main.java.srcDirs
}

project.afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
artifact androidSourcesJar // optional sources
}
}
}
}

android {
Expand Down

0 comments on commit 5180b2b

Please sign in to comment.