Skip to content

Commit

Permalink
[Kotlin] Upgrade to Kotlin 1.5.0 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
kittinunf authored May 14, 2021
1 parent 4e74b88 commit 6db475f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
10 changes: 3 additions & 7 deletions buildSrc/buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
// Main libraries
object Kotlin {

private const val version = "1.4.32"
private const val version = "1.5.0"

const val plugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$version"

const val testCommon = "org.jetbrains.kotlin:kotlin-test-common"
const val testAnnotationsCommon = "org.jetbrains.kotlin:kotlin-test-annotations-common"
const val testJunit = "org.jetbrains.kotlin:kotlin-test-junit"
}

object Android {
Expand All @@ -31,7 +27,7 @@ object AndroidX {

object Coroutines {

private const val version = "1.4.3-native-mt"
private const val version = "1.5.0-RC-native-mt"

const val core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version"
const val test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:$version"
Expand All @@ -48,7 +44,7 @@ object JUnit {
}

object Jacoco {
const val version = "0.8.6"
const val version = "0.8.7"
}

// Publishing libraries
Expand Down
16 changes: 1 addition & 15 deletions cored/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,6 @@ group = Publishing.groupId
val gitSha = "git rev-parse --short HEAD".runCommand(project.rootDir)?.trim().orEmpty()
version = if (isReleaseBuild) Publishing.version else "main-$gitSha-SNAPSHOT"

// this is workaround to make it work with Kotlin 1.4, it will not be needed anymore in Kotlin 1.5
android {
configurations {
create("androidTestApi")
create("androidTestDebugApi")
create("androidTestReleaseApi")
create("testApi")
create("testDebugApi")
create("testReleaseApi")
}
}

kotlin {
android {
publishLibraryVariants("release", "debug")
Expand Down Expand Up @@ -54,8 +42,7 @@ kotlin {

val commonTest by getting {
dependencies {
implementation(Kotlin.testCommon)
implementation(Kotlin.testAnnotationsCommon)
implementation(kotlin("test"))
}
}

Expand All @@ -64,7 +51,6 @@ kotlin {
val androidTest by getting {
dependencies {
implementation(Coroutines.test)
implementation(Kotlin.testJunit)
}
}

Expand Down

0 comments on commit 6db475f

Please sign in to comment.