diff --git a/build.gradle.kts b/build.gradle.kts index 5b9afda60a..6b0c9037dd 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,4 +1,5 @@ +import com.unciv.build.BuildConfig.coroutinesVersion import com.unciv.build.BuildConfig.gdxVersion import com.unciv.build.BuildConfig.kotlinVersion import com.unciv.build.BuildConfig.ktorVersion @@ -65,7 +66,7 @@ project(":desktop") { dependencies { "implementation"(project(":core")) - "implementation"("com.badlogicgames.gdx:gdx-backend-lwjgl3:${gdxVersion}") + "implementation"("com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion") "implementation"("com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop") "implementation"("com.badlogicgames.gdx:gdx-tools:$gdxVersion") { @@ -102,7 +103,7 @@ project(":android") { dependencies { "implementation"(project(":core")) "implementation"("com.badlogicgames.gdx:gdx-backend-android:$gdxVersion") - "implementation"("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4") + "implementation"("org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion") natives("com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a") natives("com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a") natives("com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86") @@ -131,18 +132,14 @@ project(":core") { dependencies { "implementation"("com.badlogicgames.gdx:gdx:$gdxVersion") - "implementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") - "implementation"("org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}") + "implementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion") + "implementation"("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion") - // Ktor core "implementation"("io.ktor:ktor-client-core:$ktorVersion") - // CIO engine "implementation"("io.ktor:ktor-client-cio:$ktorVersion") - // WebSocket support "implementation"("io.ktor:ktor-client-websockets:$ktorVersion") // Gzip transport encoding "implementation"("io.ktor:ktor-client-encoding:$ktorVersion") - // Content negotiation "implementation"("io.ktor:ktor-client-content-negotiation:$ktorVersion") // JSON serialization and de-serialization "implementation"("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion") @@ -157,7 +154,7 @@ project(":core") { dependencies { "implementation"(project(":core")) - "implementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") + "implementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion") "implementation"("junit:junit:4.13.2") "implementation"("org.mockito:mockito-core:5.1.1") diff --git a/buildSrc/src/main/kotlin/BuildConfig.kt b/buildSrc/src/main/kotlin/BuildConfig.kt index 9d58faf844..04b40b17b3 100644 --- a/buildSrc/src/main/kotlin/BuildConfig.kt +++ b/buildSrc/src/main/kotlin/BuildConfig.kt @@ -9,5 +9,6 @@ object BuildConfig { const val gdxVersion = "1.11.0" const val ktorVersion = "2.2.3" + const val coroutinesVersion = "1.6.4" const val roboVMVersion = "2.3.1" }