when doing builds with the gradle multiplatform pl...
# gradle
r
when doing builds with the gradle multiplatform plugin, I want to copy additional resources to the output folder, could be things like a readme, support-scripts etc. - i.e., items that are just to be copied. I've searched around, trying the
distribution
plugin, but it yields no output, which makes me think that the solution I'm looking for might actually be in the kotlin multiplatform and not standard gradle. Is this the case, and if so can I get an assist in getting this going?
c
perhaps needs adjustment for multiplatform (not using that) but for JVM / Kotlin you can add them to the processResources task in a doFirst (or doLast), which is just a copy task.
v
He does not want it in the jar, but side-to-side, just what the
distribution
plugin does, which is just not compatible with multiplatform as someone mentioned. I guess there should be an easy work-around actually, but I don't use multiplatform either
c
ah yea. hopefully multiplatform has some equivalent copy task.
r
That is exactly right. So basically I'm better off doing a workaround 🙂 oh well, can do that, current solution is a temporary thing anyway - that said this should probably be solved, since I'm most likely not the first and will definitely not be the last 🙂