tachiyomi-extensions-lib/library/build.gradle

98 lines
2.1 KiB
Groovy
Raw Normal View History

2017-01-20 21:46:11 +01:00
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
2017-01-21 17:51:24 +01:00
apply plugin: 'com.github.dcendents.android-maven'
2017-08-15 15:11:49 +02:00
version = '1.2'
2017-01-20 21:46:11 +01:00
android {
2020-05-09 18:05:50 +02:00
compileSdkVersion 27
buildToolsVersion "29.0.3"
2017-01-20 21:46:11 +01:00
defaultConfig {
2021-04-28 15:02:01 +02:00
minSdkVersion 21
2020-05-09 18:05:50 +02:00
targetSdkVersion 27
2017-01-20 21:46:11 +01:00
versionCode 1
2017-01-21 17:51:24 +01:00
versionName version
2017-01-20 21:46:11 +01:00
}
buildTypes {
release {
minifyEnabled false
}
}
}
dependencies {
2021-04-28 15:02:01 +02:00
provided "com.squareup.okhttp3:okhttp:4.9.1"
provided "io.reactivex:rxjava:1.3.8"
provided "org.jsoup:jsoup:1.13.1"
provided "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
repositories {
mavenCentral()
2017-01-20 21:46:11 +01:00
}
2017-01-21 17:51:24 +01:00
ext {
publishedGroupId = 'eu.kanade.tachiyomi'
libraryName = 'tachiyomi-extensions-lib'
artifact = 'extensions-library'
libraryDescription = 'Tachiyomi library to create new catalogues'
2020-05-09 18:05:50 +02:00
siteUrl = 'https://github.com/tachiyomiorg/extensions-lib'
gitUrl = 'https://github.com/tachiyomiorg/extensions-lib.git'
2017-01-21 17:51:24 +01:00
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
2017-01-20 21:46:11 +01:00
}
2017-01-21 17:51:24 +01:00
group = publishedGroupId
archivesBaseName = artifact
install {
repositories.mavenInstaller {
pom.project {
packaging 'jar'
groupId publishedGroupId
artifactId artifact
name libraryName
description libraryDescription
url siteUrl
licenses {
license {
name licenseName
url licenseUrl
}
}
developers {
developer {
id 'inorichi'
name 'Javier Tomas'
}
}
scm {
connection gitUrl
developerConnection gitUrl
url siteUrl
}
}
}
2017-01-20 21:46:11 +01:00
}
2017-01-21 17:51:24 +01:00
task sourcesJar(type: Jar) {
classifier = 'sources'
2017-01-21 17:51:24 +01:00
from android.sourceSets.main.java.srcDirs
}
task makeJar(type: Jar) {
from zipTree('build/intermediates/bundles/release/classes.jar')
}
artifacts {
archives sourcesJar
archives makeJar
}