Skip to content

Commit 1f86e47

Browse files
updated dependencies
1 parent 8f8d7d6 commit 1f86e47

File tree

5 files changed

+10
-18
lines changed

5 files changed

+10
-18
lines changed

app/build.gradle.kts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22

33
plugins {
4-
kotlin("jvm") version "1.4.31"
5-
kotlin("kapt") version "1.4.32"
4+
kotlin("jvm") version "1.5.21"
5+
kotlin("kapt") version "1.5.21"
66
}
77

88
group = "com.github.livingwithhippos"
@@ -18,13 +18,13 @@ val ktlint: Configuration by configurations.creating
1818

1919
dependencies {
2020

21-
val kotlinVersion = "1.4.31"
22-
val coroutinesVersion = "1.4.3"
21+
val kotlinVersion = "1.5.21"
22+
val coroutinesVersion = "1.5.1"
2323
val telegramVersion = "6.0.4"
24-
val moshiVersion = "1.11.0"
24+
val moshiVersion = "1.12.0"
2525
val retrofitVersion = "2.9.0"
2626
val okhttpVersion = "4.9.1"
27-
val koinVersion = "2.2.2"
27+
val koinVersion = "3.1.2"
2828
val ktLintVersion = "0.41.0"
2929

3030
// kotlin stdlib
@@ -35,9 +35,9 @@ dependencies {
3535
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
3636

3737
// Koin for Kotlin
38-
implementation ("org.koin:koin-core:$koinVersion")
38+
implementation ("io.insert-koin:koin-core:$koinVersion")
3939
// Koin extended & experimental features
40-
implementation ("org.koin:koin-core-ext:$koinVersion")
40+
// implementation ("org.koin:koin-core-ext:$koinVersion")
4141

4242
// telegram bot
4343
implementation ("io.github.kotlin-telegram-bot.kotlin-telegram-bot:telegram:$telegramVersion")
@@ -71,10 +71,6 @@ tasks {
7171
from(zipTree(file.absoluteFile))
7272
}
7373
}
74-
75-
withType<KotlinCompile> {
76-
kotlinOptions.jvmTarget = "1.8"
77-
}
7874
}
7975

8076
// ktlint stuff
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

app/settings.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
21
rootProject.name = "unchained-bot-kotlin"
32

app/src/main/kotlin/com/github/livingwithhippos/unchained_bot/BotApplication.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@ import okhttp3.OkHttpClient
3030
import okhttp3.Request
3131
import okio.buffer
3232
import okio.sink
33-
import org.koin.core.component.KoinApiExtension
3433
import org.koin.core.component.KoinComponent
3534
import org.koin.core.component.inject
3635
import java.io.File
3736
import kotlin.system.exitProcess
3837

39-
@KoinApiExtension
4038
class BotApplication : KoinComponent {
4139

4240
// Environment variables

app/src/main/kotlin/com/github/livingwithhippos/unchained_bot/Main.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
package com.github.livingwithhippos.unchained_bot
22

33
import com.github.livingwithhippos.unchained_bot.di.myModules
4-
import org.koin.core.component.KoinApiExtension
54
import org.koin.core.context.startKoin
65
import org.koin.core.logger.Level
6+
import org.koin.environmentProperties
77

8-
@KoinApiExtension
98
fun main(args: Array<String>) {
109

1110
val koinInstance = startKoin {

0 commit comments

Comments
 (0)