We upgraded to gradle 9 yesterday. We are using the Kotlin DSL. Post-upgrade we are getting a warning when setting up a integration test sourceset. Everything is still working so this is more than likely something I am doing incorrectly.
Actually, it is questionable whether integration tests should access main and test sources, integration tests should usually more be black-box testing, but that is a matter of PoV.
Why you get that warning is hard to say as you shared too less context, for example where you get that warning.
If I copy & paste your snippet into a Gradle 9 build script, there is no warning.
So you probably should share a proper MCVE to show your problem.
Besides that, even with it being still incubating, I’d recommend considering to use the JVM test suites plugin to set up integration tests or other test types.
Ah, I’m still on 2025.1, that’s maybe why.
What is the concrete error it displays?
You should probably report it to KTIJ project on JetBrains YouTrack so that the Kotlin plugin can get fixed.