As of KGP 2.1 using `associateWith` on a custom co...
# build-tools
j
As of KGP 2.1 using
associateWith
on a custom compilation seems to depend on the jar output of the target compilation whereas in 2.0 it depended only on the classes. Depending on the jar is problematic because this is was a handy mechanism for creating multi-release jars. But with
associateWith
depending on the jar, this creates a task cycle. Is there some other way to do what
associateWith
was doing without depending on the jar?
Maybe it's a .jvm plugin thing? The stdlib build doesn't seem to have this problem.
Nah even when I do multiplatform I get the same problem. I don't understand how the stdlib does it.
t
this change stems from the need to properly support friends paths. We are currently redesigning this aspect of the language and a potential way will drop
-Xfriend-path
argument and simplify logic
anyway regarding multirelease jars - please open an issue. Maybe we will find a workaround
j
Will do with a sample project and report back here. Thanks!
I found https://youtrack.jetbrains.com/issue/KT-75550 which covers my use case. Will add my sample project to that instead of a new issue.
Although it's "shelved"? First time seeing that. Should I create a new issue then?
t
provided a solution in the issue