sdk/build.gradle

76 lines
1.7 KiB
Groovy
Raw Normal View History

2018-06-26 17:28:48 +02:00
plugins {
id 'java'
2019-06-20 22:27:24 +02:00
id 'org.jetbrains.kotlin.jvm' version '1.3.40'
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 {
2019-06-14 18:08:31 +02:00
okhttp3 = "3.12.3"
2019-06-14 18:02:49 +02:00
retrofit = "2.6.0"
2019-05-01 17:42:58 +02:00
threetenbp = "1.3.8"
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
2019-06-26 10:11:15 +02:00
implementation 'io.github.wulkanowy:api:6be7f47'
2019-06-17 13:44:08 +02:00
implementation 'io.github.wulkanowy:uonet-request-signer:eeb50c7'
2019-05-01 17:42:58 +02:00
compileOnly "org.threeten:threetenbp:$threetenbp:no-tzdb"
testImplementation "org.threeten:threetenbp:$threetenbp"
2018-10-14 00:57:02 +02:00
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"
2019-05-01 17:42:58 +02:00
implementation "com.squareup.retrofit2:converter-scalars:$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
2019-05-03 15:00:03 +02:00
testImplementation "com.squareup.okhttp3:mockwebserver:$okhttp3"
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
}