diff --git a/SectorProgressBarLib/build.gradle b/SectorProgressBarLib/build.gradle index 9f0629f..b5642db 100644 --- a/SectorProgressBarLib/build.gradle +++ b/SectorProgressBarLib/build.gradle @@ -1,8 +1,8 @@ plugins { id 'com.android.library' id 'kotlin-android' + id 'maven-publish' } -apply plugin: 'kotlin-android' android { compileSdk 31 @@ -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' diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 0000000..d3fe907 --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,5 @@ +jdk: + - openjdk11 + +install: + - ./gradlew assemble :SectorProgressBarLib:publishToMavenLocal \ No newline at end of file