mirror of
https://github.com/tachiyomiorg/extensions-lib.git
synced 2024-11-16 16:29:19 +01:00
51 lines
947 B
Groovy
51 lines
947 B
Groovy
plugins {
|
|
id 'com.android.library'
|
|
id 'kotlin-android'
|
|
id 'maven-publish'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 29
|
|
|
|
defaultConfig {
|
|
minSdkVersion 21
|
|
targetSdkVersion 29
|
|
versionCode 1
|
|
versionName '1.2'
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly "com.squareup.okhttp3:okhttp:4.9.1"
|
|
compileOnly "io.reactivex:rxjava:1.3.8"
|
|
compileOnly "org.jsoup:jsoup:1.14.3"
|
|
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
}
|
|
|
|
task androidSourcesJar(type: Jar) {
|
|
classifier 'sources'
|
|
from android.sourceSets.main.java.srcDirs
|
|
}
|
|
|
|
project.afterEvaluate {
|
|
publishing {
|
|
publications {
|
|
release(MavenPublication) {
|
|
from components.release
|
|
artifact androidSourcesJar
|
|
}
|
|
}
|
|
}
|
|
}
|