Gleb Minaev
03/26/2026, 1:16 PMJvmBoxRunner does not want to see the plugin's runtime dependency (that is provided by addJvmClasspathRoots). My runners configuration can be found here. I am wondering what's going wrong.dmitriy.novozhilov
03/26/2026, 1:20 PMRuntimeClasspathProvider.
See the example in kotlinx.serialization tests.Youssef Shoaib [MOD]
03/26/2026, 1:26 PMprivate val annotationsRuntimeClasspath = TODO()
fun TestConfigurationBuilder.configureAnnotations() {
useConfigurators(::PluginAnnotationsProvider)
useCustomRuntimeClasspathProviders(::PluginAnnotationsClasspathProvider)
}
private class PluginAnnotationsProvider(testServices: TestServices) : EnvironmentConfigurator(testServices) {
override fun configureCompilerConfiguration(configuration: CompilerConfiguration, module: TestModule) {
configuration.addJvmClasspathRoots(annotationsRuntimeClasspath)
}
}
private class PluginAnnotationsClasspathProvider(testServices: TestServices) : RuntimeClasspathProvider(testServices) {
override fun runtimeClassPaths(module: TestModule) = annotationsRuntimeClasspath
}Gleb Minaev
03/26/2026, 1:40 PMEnvironmentConfigurator with RuntimeClasspathProvider instead of leaving the first one intact 🙂 Thank you for the examples!