2019-11-14 17:49:27 +01:00
|
|
|
plugins {
|
2021-04-07 11:28:31 +02:00
|
|
|
id 'org.jetbrains.kotlin.jvm' version '1.4.32' apply false
|
2020-03-01 16:19:06 +01:00
|
|
|
id "org.jlleitschuh.gradle.ktlint" version "9.2.1"
|
2020-04-08 19:07:41 +02:00
|
|
|
id 'com.jfrog.bintray' version '1.8.5'
|
2019-11-14 17:49:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
ext {
|
2021-04-18 19:56:00 +02:00
|
|
|
PUBLISH_VERSION = '1.1.5'
|
2019-11-14 18:34:40 +01:00
|
|
|
SITE_URL = 'https://github.com/wulkanowy/sdk'
|
|
|
|
GIT_URL = 'https://github.com/wulkanowy/sdk.git'
|
|
|
|
|
2019-11-14 17:49:27 +01:00
|
|
|
jspoon = "1.3.2"
|
2021-05-01 16:27:11 +02:00
|
|
|
okhttp3 = "4.9.1"
|
2021-05-01 16:37:39 +02:00
|
|
|
retrofit = "2.9.0"
|
2019-12-20 10:56:04 +01:00
|
|
|
slf4j = "1.7.30"
|
2021-05-01 16:43:40 +02:00
|
|
|
moshi = "1.12.0"
|
2019-11-14 17:49:27 +01:00
|
|
|
}
|
|
|
|
|
2019-11-14 11:26:25 +01:00
|
|
|
allprojects {
|
2019-11-14 17:49:27 +01:00
|
|
|
apply plugin: 'java'
|
2019-12-23 19:20:15 +01:00
|
|
|
apply plugin: 'maven'
|
2019-11-14 17:49:27 +01:00
|
|
|
apply plugin: 'kotlin'
|
2019-11-17 17:14:24 +01:00
|
|
|
apply plugin: "org.jlleitschuh.gradle.ktlint"
|
2019-12-23 19:19:30 +01:00
|
|
|
apply plugin: 'com.jfrog.bintray'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
maven { url "https://jitpack.io" }
|
|
|
|
}
|
2019-11-17 17:14:24 +01:00
|
|
|
|
2020-06-14 23:33:39 +02:00
|
|
|
dependencies {
|
|
|
|
implementation "org.slf4j:slf4j-api:$slf4j"
|
|
|
|
testImplementation "org.slf4j:slf4j-simple:$slf4j"
|
|
|
|
}
|
|
|
|
|
2019-12-22 17:46:54 +01:00
|
|
|
version = PUBLISH_VERSION
|
2019-12-23 19:19:30 +01:00
|
|
|
group = "io.github.wulkanowy"
|
|
|
|
|
|
|
|
bintray {
|
|
|
|
user = System.getenv('BINTRAY_USER')
|
|
|
|
key = System.getenv('BINTRAY_KEY')
|
|
|
|
configurations = ['archives']
|
|
|
|
|
|
|
|
pkg {
|
|
|
|
repo = 'wulkanowy'
|
|
|
|
name = 'sdk'
|
|
|
|
desc = 'Unified way of retrieving data from the UONET+ register through mobile api and scraping api'
|
|
|
|
|
|
|
|
websiteUrl = 'https://github.com/wulkanowy/sdk'
|
|
|
|
issueTrackerUrl = 'https://github.com/wulkanowy/sdk/issues'
|
|
|
|
vcsUrl = 'https://github.com/wulkanowy/sdk.git'
|
|
|
|
licenses = ['Apache-2.0']
|
|
|
|
userOrg = 'wulkanowy'
|
|
|
|
labels = ['wulkanowy', 'sdk']
|
|
|
|
publicDownloadNumbers = true
|
|
|
|
publish = true
|
|
|
|
|
|
|
|
version {
|
|
|
|
name = PUBLISH_VERSION
|
|
|
|
vcsTag = PUBLISH_VERSION
|
|
|
|
released = new Date()
|
2019-12-22 17:46:54 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-12-23 19:19:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
apply plugin: 'jacoco'
|
2019-12-22 17:46:54 +01:00
|
|
|
|
2019-11-17 17:14:24 +01:00
|
|
|
ktlint {
|
|
|
|
additionalEditorconfigFile = file(".editorconfig")
|
|
|
|
disabledRules = [
|
|
|
|
"no-wildcard-imports",
|
|
|
|
"import-ordering",
|
|
|
|
"max-line-length"
|
|
|
|
]
|
|
|
|
}
|
2019-11-14 17:49:27 +01:00
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
|
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions {
|
2021-05-01 16:37:39 +02:00
|
|
|
jvmTarget = "1.8"
|
2019-11-14 17:49:27 +01:00
|
|
|
javaParameters = true
|
|
|
|
}
|
|
|
|
}
|
2021-05-01 16:37:39 +02:00
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
2019-11-14 17:49:27 +01:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
2021-05-01 16:13:37 +02:00
|
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3'
|
2019-11-14 13:36:46 +01:00
|
|
|
|
2019-11-14 17:49:27 +01:00
|
|
|
implementation "com.squareup.okhttp3:logging-interceptor:$okhttp3"
|
|
|
|
|
2021-02-26 10:43:37 +01:00
|
|
|
testImplementation "junit:junit:4.13.2"
|
2020-08-08 11:04:03 +02:00
|
|
|
testImplementation "com.squareup.okhttp3:mockwebserver:$okhttp3"
|
|
|
|
testImplementation "com.squareup.retrofit2:retrofit-mock:$retrofit"
|
2021-05-01 16:13:08 +02:00
|
|
|
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.3'
|
2019-11-14 17:49:27 +01:00
|
|
|
}
|
2019-11-14 18:34:40 +01:00
|
|
|
|
2019-11-17 17:14:24 +01:00
|
|
|
jacocoTestReport {
|
|
|
|
reports {
|
|
|
|
xml.enabled true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-17 17:32:58 +01:00
|
|
|
test {
|
|
|
|
testLogging.showStandardStreams = false
|
|
|
|
}
|
|
|
|
|
2019-12-23 19:20:15 +01:00
|
|
|
group = "io.github.wulkanowy.sdk"
|
2019-12-23 19:19:30 +01:00
|
|
|
if (project.plugins.hasPlugin('java')) {
|
2019-11-14 18:34:40 +01:00
|
|
|
|
2019-12-23 19:19:30 +01:00
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
|
|
classifier = 'sources'
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
2019-11-14 18:34:40 +01:00
|
|
|
|
2019-12-23 19:19:30 +01:00
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
|
|
classifier = 'javadoc'
|
|
|
|
from javadoc.destinationDir
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives sourcesJar
|
|
|
|
archives javadocJar
|
|
|
|
}
|
2019-11-14 18:34:40 +01:00
|
|
|
}
|
2018-08-30 17:22:28 +02:00
|
|
|
}
|
2019-12-23 19:20:15 +01:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(":sdk")
|
|
|
|
compile project(":sdk-mobile")
|
|
|
|
compile project(":sdk-scrapper")
|
2020-01-10 15:14:46 +01:00
|
|
|
|
|
|
|
compile "com.squareup.okhttp3:okhttp:$okhttp3"
|
2019-12-23 19:20:15 +01:00
|
|
|
}
|