hfhbd
03/07/2025, 11:02 AMjava-test-fixtures
plugin, I need to switch from testFixturesImplementation
to jvmTestFixturesImplementation
. While it makes sense, shouldn't be there a migration path? And what about to extending the default testFixturesImplementation
?Anton Lakotka [JB]
03/07/2025, 11:02 AMJavier
03/07/2025, 11:04 AMhfhbd
03/07/2025, 11:04 AMjava-test-fixtures
plugin to provide Java only test fixtures.hfhbd
03/07/2025, 11:05 AMplugins {
kotlin("multiplatform")
id("java-test-fixtures")
}
kotlin {
jvm()
linuxArm64()
}
dependencies {
jvmTestFixturesApi(libs.sapci.script.api) // was previously testFixturesApi
jvmTestFixturesApi(libs.sapci.adapter.api)
jvmTestFixturesApi(libs.apache.camel)
jvmTestFixturesApi(libs.sapci.javax.activation)
}
hfhbd
03/07/2025, 11:09 AMtapchicoma
03/07/2025, 11:17 AM2.1.10
you haven't used withJava()
?hfhbd
03/07/2025, 11:19 AMtapchicoma
03/07/2025, 12:26 PMwithJava()
in 2.1.20
if you have Gradle version <9.0 - then old test-fixtures configurations should work fine
We will add a section in What's new regarding this migration path.hfhbd
03/07/2025, 12:28 PMhfhbd
03/09/2025, 4:50 PMwithJava
function call, it does not work with the textFixtue dependency modifier: https://youtrack.jetbrains.com/issue/KT-75808/KGP-MPP-with-jvm-target-and-Gradle-java-test-fixtures-is-brokentapchicoma
03/10/2025, 9:11 AMtapchicoma
03/10/2025, 3:56 PMtapchicoma
03/10/2025, 3:57 PM