Skip to content

Commit

Permalink
spb-#5 Prepare library for upload to JitPack (#6)
Browse files Browse the repository at this point in the history
Co-authored-by: javavirys <javavirys@gmail.com>
  • Loading branch information
udfvirus and udfvirus authored Dec 19, 2021
1 parent ea53089 commit 788c98d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
18 changes: 17 additions & 1 deletion SectorProgressBarLib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'maven-publish'
}
apply plugin: 'kotlin-android'

android {
compileSdk 31
Expand Down Expand Up @@ -31,6 +31,22 @@ android {
}
}

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

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

dependencies {
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3'
Expand Down
5 changes: 5 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
jdk:
- openjdk11

install:
- ./gradlew assemble :SectorProgressBarLib:publishToMavenLocal

0 comments on commit 788c98d

Please sign in to comment.