Failure recognizing valid gradle build with multi-project source sets (2025.1)
Previously IJ IDEA CE (2023.X) was correctly recognizing dependencies on source sets in another project (gradle multi-module build) but upon upgrading to 2025.1 the same build file continues compiling with gradle but IJ shows errors in the code and fails to show usages, etc. These are for integration tests, which still run fine using gradle via IJ, however the reported errors and lack of indexing make it problematic.
Previously working gradle.kts snippet:
integrationTestImplementation(testFixtures(project(":shared:nats")))
Note that the project import works as expected to import the main source, however the “testFixture” source set fails. Note that the build works fully, the integrationTests run successfully both from CLI using gradle and through IJ using gradle, it is only the IJ module setup that is failing to see the relation.
Partial gradle layout:

And at the same level as monolith:

Please sign in to leave a comment.
I was able to resolve this by disabling the K2 mode in IJ. Apparently not currently supported with K2 compiler?
https://youtrack.jetbrains.com/issue/KTIJ-33890