2018-06-26 17:28:48 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2019-05-01 07:30:54 +02:00
|
|
|
id 'org.jetbrains.kotlin.jvm' version '1.3.31'
|
2018-08-30 17:22:28 +02:00
|
|
|
id 'jacoco'
|
2018-06-26 17:28:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
group 'io.github.wulkanowy'
|
|
|
|
version '0.1.0-SNAPSHOT'
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
2018-06-27 16:21:09 +02:00
|
|
|
maven { url "https://jitpack.io" }
|
2018-06-26 17:28:48 +02:00
|
|
|
}
|
|
|
|
|
2018-08-30 17:22:28 +02:00
|
|
|
ext {
|
2018-12-24 00:59:40 +01:00
|
|
|
okhttp3 = "3.12.1"
|
2018-11-19 06:44:43 +01:00
|
|
|
retrofit = "2.5.0"
|
2018-08-30 17:22:28 +02:00
|
|
|
}
|
|
|
|
|
2018-06-26 17:28:48 +02:00
|
|
|
dependencies {
|
2018-08-30 17:22:28 +02:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
2018-06-26 17:28:48 +02:00
|
|
|
|
2018-10-14 00:57:02 +02:00
|
|
|
implementation 'com.github.wulkanowy:uonet-request-signer:d2f351a70e'
|
|
|
|
|
2018-08-30 17:22:28 +02:00
|
|
|
implementation 'com.google.code.gson:gson:2.8.5'
|
|
|
|
implementation "com.squareup.retrofit2:retrofit:$retrofit"
|
|
|
|
implementation "com.squareup.retrofit2:converter-gson:$retrofit"
|
2018-06-26 17:28:48 +02:00
|
|
|
|
2018-08-30 17:22:28 +02:00
|
|
|
implementation "com.squareup.retrofit2:retrofit:$retrofit"
|
|
|
|
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit"
|
|
|
|
implementation "com.squareup.okhttp3:logging-interceptor:$okhttp3"
|
2018-06-26 17:28:48 +02:00
|
|
|
|
2018-08-30 17:22:28 +02:00
|
|
|
testImplementation "junit:junit:4.12"
|
2018-06-26 17:28:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
2018-07-12 17:19:45 +02:00
|
|
|
|
|
|
|
jacocoTestReport {
|
|
|
|
reports {
|
|
|
|
xml.enabled true
|
|
|
|
}
|
|
|
|
}
|
2018-08-30 17:22:28 +02:00
|
|
|
test {
|
|
|
|
testLogging.showStandardStreams = true
|
|
|
|
}
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
|
|
classifier = 'sources'
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
|
|
|
|
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
|
|
classifier = 'javadoc'
|
|
|
|
from javadoc.destinationDir
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives sourcesJar
|
|
|
|
archives javadocJar
|
|
|
|
}
|