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-09-10 20:34:27 +02:00
id 'org.jetbrains.kotlin.jvm' version '1.3.50'
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-09-27 21:12:12 +02:00
okhttp3 = "3.12.5"
retrofit = "2.6.2"
2019-09-10 20:34:27 +02:00
threetenbp = "1.4.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
2019-11-01 23:42:33 +01:00
implementation "io.github.wulkanowy:api:02e3190"
2019-10-30 07:42:57 +01:00
implementation "io.github.wulkanowy:uonet-request-signer:6d7aebf0e9"
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
2019-10-06 21:58:26 +02:00
implementation 'com.google.code.gson:gson:2.8.6'
2018-08-30 17:22:28 +02:00
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
}