1
0
mirror of https://github.com/mik3y/usb-serial-for-android.git synced 2026-08-11 16:32:53 +00:00

jitpack with gradle 7

This commit is contained in:
kai-morich
2021-09-21 20:38:32 +02:00
parent 70d4f41268
commit d319879386
5 changed files with 31 additions and 24 deletions
+25 -2
View File
@@ -1,4 +1,7 @@
apply plugin: 'com.android.library'
plugins {
id 'com.android.library'
id 'maven-publish'
}
android {
compileSdkVersion 30
@@ -30,6 +33,26 @@ dependencies {
androidTestImplementation 'org.apache.commons:commons-lang3:3.11'
}
//apply from: 'publishToMavenLocal.gradle'
// gradle task: publishToMavenLocal
project.afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
artifact androidSourcesJar
// values used for local maven repo, jitpack uses github release:
groupId 'com.github.mik3y'
artifactId 'usb-serial-for-android'
version 'v3.5.0beta'
}
}
}
}
task androidSourcesJar(type: Jar) {
classifier 'sources'
from android.sourceSets.main.java.srcDirs
}
//apply from: 'coverage.gradle'