Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ kotlin.mpp.stability.nowarn=true
kotlin.native.ignoreDisabledTargets=true
org.gradle.jvmargs=-Xmx4G
ksp.useKSP2=true

# This needs to be false so that the ksp1 tests don't fail
kotlin.native.enableKlibsCrossCompilation=false
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even after the KSP issue is resolved, we'll have to disable cross compilation for the KSP1 test modules since they don't play well with ios targets from a Linux host.

9 changes: 5 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
kotlin-inject = "0.8.1-SNAPSHOT"
kotlin = "2.1.20"
ksp = "2.1.20-2.0.0"
kotlin = "2.2.20"
ksp = "2.2.20-2.0.3"
kotlinpoet = "2.0.0"
junit5 = "5.9.3"
jvmTarget = "11"
Expand All @@ -13,9 +13,10 @@ detekt-formatting = { module = "io.gitlab.arturbosch.detekt:detekt-formatting",
ksp = { module = "com.google.devtools.ksp:symbol-processing-api", version.ref = "ksp" }
kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlin" }
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
kotlin-compile-testing = { module = "dev.zacsweers.kctfork:ksp", version = "0.7.0" }
kotlin-compile-testing = { module = "dev.zacsweers.kctfork:ksp", version = "0.9.0" }
kotlin-metadata-jvm = { module = "org.jetbrains.kotlin:kotlin-metadata-jvm", version.ref = "kotlin" }
kotlinx-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version = "1.8.0" }
kotlinx-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version = "1.9.0" }
kotlinx-coroutinesTest = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version = "1.9.0" }
kotlinx-atomicfu = { module = "org.jetbrains.kotlinx:atomicfu", version = "0.23.2" }
kotlinx-wasm-browser = "org.jetbrains.kotlinx:kotlinx-browser:0.3"
jdk-compiler = { module = "io.earcam.wrapped:jdk.compiler", version = "1.8.132" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import assertk.assertions.isEqualTo
import assertk.assertions.isNotNull
import assertk.assertions.isNotSameInstanceAs
import assertk.assertions.isSameInstanceAs
import kotlinx.coroutines.test.runTest
import me.tatarka.inject.test.different.DifferentPackageScopedComponent
import me.tatarka.inject.test.different.create
import me.tatarka.inject.test.module.ExternalChildComponent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package me.tatarka.inject.test

import assertk.assertThat
import assertk.assertions.isInstanceOf
import kotlinx.coroutines.test.runTest
import kotlin.test.Test

class SuspendTest {
Expand Down
1 change: 1 addition & 0 deletions integration-tests/ksp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ kotlin {
dependencies {
implementation(kotlin("test"))
implementation(libs.kotlinx.coroutines)
implementation(libs.kotlinx.coroutinesTest)
implementation(libs.assertk)
}
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 3 additions & 1 deletion integration-tests/ksp1/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ kotlin {
dependencies {
implementation(kotlin("test"))
implementation(libs.kotlinx.coroutines)
implementation(libs.kotlinx.coroutinesTest)
implementation(libs.assertk)
}
}
Expand Down Expand Up @@ -60,7 +61,8 @@ kotlin {
targets.all {
compilations.all {
compileTaskProvider.configure {
compilerOptions.allWarningsAsErrors = true
// w: Language version 1.9 is deprecated and its support will be removed in a future version of Kotlin
compilerOptions.allWarningsAsErrors = false
}
}
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading