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'
|
|
|
|
apply plugin: 'com.jfrog.bintray'
|
|
|
|
|
2017-04-23 22:34:58 +02:00
|
|
|
version = '1.1'
|
2017-01-20 21:46:11 +01:00
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion 25
|
2017-01-21 17:51:24 +01:00
|
|
|
buildToolsVersion "25.0.2"
|
2017-01-20 21:46:11 +01:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 16
|
|
|
|
targetSdkVersion 25
|
|
|
|
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 {
|
|
|
|
provided "com.squareup.okhttp3:okhttp:3.5.0"
|
|
|
|
provided "io.reactivex:rxjava:1.2.4"
|
|
|
|
provided "org.jsoup:jsoup:1.10.1"
|
|
|
|
provided "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
2017-01-21 17:51:24 +01:00
|
|
|
ext {
|
|
|
|
bintrayRepo = 'tachiyomi'
|
|
|
|
bintrayName = 'extensions-library'
|
|
|
|
|
|
|
|
publishedGroupId = 'eu.kanade.tachiyomi'
|
|
|
|
libraryName = 'tachiyomi-extensions-lib'
|
|
|
|
artifact = 'extensions-library'
|
|
|
|
|
|
|
|
libraryDescription = 'Tachiyomi library to create new catalogues'
|
|
|
|
|
|
|
|
siteUrl = 'https://github.com/inorichi/tachiyomi-extensions-lib'
|
|
|
|
gitUrl = 'https://github.com/inorichi/tachiyomi-extensions-lib.git'
|
|
|
|
githubRepository= 'inorichi/tachiyomi-extensions-lib'
|
|
|
|
|
|
|
|
licenseName = 'The Apache Software License, Version 2.0'
|
|
|
|
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
|
|
|
allLicenses = ["Apache-2.0"]
|
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'
|
|
|
|
from android.sourceSets.main.java.srcDirs
|
|
|
|
}
|
|
|
|
|
|
|
|
task makeJar(type: Jar) {
|
|
|
|
from zipTree('build/intermediates/bundles/release/classes.jar')
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives sourcesJar
|
|
|
|
archives makeJar
|
|
|
|
}
|
|
|
|
|
|
|
|
// Bintray
|
|
|
|
Properties properties = new Properties()
|
|
|
|
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
|
|
|
|
|
|
|
bintray {
|
|
|
|
user = properties.getProperty("bintray.user")
|
|
|
|
key = properties.getProperty("bintray.apikey")
|
|
|
|
|
|
|
|
configurations = ['archives']
|
|
|
|
pkg {
|
|
|
|
repo = bintrayRepo
|
|
|
|
name = bintrayName
|
|
|
|
desc = libraryDescription
|
|
|
|
websiteUrl = siteUrl
|
|
|
|
issueTrackerUrl = siteUrl+'/issues'
|
|
|
|
vcsUrl = gitUrl
|
|
|
|
licenses = allLicenses
|
|
|
|
githubRepo = githubRepository
|
|
|
|
publish = true
|
|
|
|
publicDownloadNumbers = true
|
|
|
|
version {
|
|
|
|
desc = libraryDescription
|
|
|
|
gpg {
|
|
|
|
sign = true
|
|
|
|
passphrase = properties.getProperty("bintray.gpg.password")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|