2018-08-17 17:10:29 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2018-08-21 14:09:34 +02:00
|
|
|
id 'org.jetbrains.kotlin.jvm' version '1.2.61'
|
2018-08-20 21:10:40 +02:00
|
|
|
id 'jacoco'
|
2018-08-17 17:10:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
group 'io.github.wulkanowy'
|
|
|
|
version '0-1.0-SNAPSHOT'
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
2018-08-30 12:13:52 +02:00
|
|
|
ext {
|
|
|
|
jspoon = "1.3.2"
|
|
|
|
okhttp3 = "3.11.0"
|
|
|
|
retrofit = "2.4.0"
|
|
|
|
}
|
|
|
|
|
2018-08-17 17:10:29 +02:00
|
|
|
dependencies {
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
|
|
|
|
2018-08-30 12:13:52 +02:00
|
|
|
implementation "pl.droidsonroids:jspoon:$jspoon"
|
|
|
|
implementation "pl.droidsonroids.retrofit2:converter-jspoon:$jspoon"
|
2018-08-17 17:10:29 +02:00
|
|
|
|
2018-08-30 12:13:52 +02:00
|
|
|
implementation "com.squareup.retrofit2:retrofit:$retrofit"
|
|
|
|
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit"
|
|
|
|
implementation "com.squareup.okhttp3:logging-interceptor:$okhttp3"
|
|
|
|
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttp3"
|
2018-08-17 17:10:29 +02:00
|
|
|
|
2018-08-30 12:13:52 +02:00
|
|
|
testImplementation "com.squareup.okhttp3:mockwebserver:$okhttp3"
|
2018-08-17 17:10:29 +02:00
|
|
|
testImplementation group: 'junit', name: 'junit', version: '4.12'
|
|
|
|
}
|
|
|
|
|
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
2018-08-20 21:15:53 +02:00
|
|
|
|
|
|
|
jacocoTestReport {
|
|
|
|
reports {
|
|
|
|
xml.enabled true
|
|
|
|
}
|
|
|
|
}
|
2018-08-25 19:10:16 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|