You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the original classesDirs to the friend paths of test compilations
The Kotlin Gradle plugin 1.3.60 has changed how friend paths are determined for the test compilations.
Earlier versions used to take the main's compile task destinationDir as the friend paths, but in 1.3.60,
there's a new mechanism that work on compilation level. According to it, the test compilation considers
the main's output.classesDirs as its friend paths.
The atomicfu-gradle-plugin modifies both the main compilation's output.classesDirs
and the test compilation's classpath, so that they point to different locations.
This caused internal visibility issues with Kotlin 1.3.60.
To fix this, add the main's original classesDirs to the test freeCompilerArgs
as -Xfriend-paths to ensure that internals are visible in the main's original
classes.
0 commit comments