
* updated to Kotlin 1.7.21, kotlinx-coroutines 1.6.4, gradle 7.6 * runBlockingTest is deprecated, was replaced with runTest, proper import was added for currentTime * cleaned up some other deprecations, implemented improvement suggestions
59 lines
2.0 KiB
Groovy
59 lines
2.0 KiB
Groovy
plugins {
|
|
id 'org.jetbrains.kotlin.jvm' version '1.7.21'
|
|
id 'org.jetbrains.kotlin.plugin.serialization' version '1.7.21'
|
|
}
|
|
|
|
group 'intro-coroutines'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib"
|
|
implementation "org.jetbrains.kotlin:kotlin-reflect"
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1")
|
|
|
|
def coroutines_version = '1.6.4'
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-swing:$coroutines_version"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$coroutines_version"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-slf4j:$coroutines_version"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-debug:$coroutines_version"
|
|
|
|
implementation 'ch.qos.logback:logback-classic:1.4.5'
|
|
|
|
def retrofit_version = '2.9.0'
|
|
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
|
|
implementation "com.squareup.retrofit2:retrofit-mock:$retrofit_version"
|
|
implementation "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0"
|
|
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
|
|
|
|
implementation 'io.reactivex.rxjava2:rxjava:2.2.21'
|
|
implementation 'io.reactivex.rxjava2:rxkotlin:2.4.0'
|
|
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit_version"
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version"
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
|
|
}
|
|
}
|
|
|
|
compileTestKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main.kotlin.srcDirs = ['src']
|
|
main.resources.srcDirs = ['resources']
|
|
test.kotlin.srcDirs = ['test']
|
|
} |