I'm trying to include output of copy task in jvm r...
# gradle
t
I'm trying to include output of copy task in jvm resources inside multiplatform project, but they're not effectively present in jar, not avaiable to run task. Is there proper way to do it? Other than modyfing jar and run tasks.
Copy code
kotlin.jvm().compilations["main"].defaultSourceSet.resources.compiledBy(someCopyTask){
    val directoryProperty = project.objects.directoryProperty()
    directoryProperty.set(someCopyTaskOutputDir)
    directoryProperty
}
If anyone wonder, this form works:
Copy code
kotlin.jvm().compilations["main"].defaultSourceSet.resources.srcDir(files(someCopyTaskOutputDir) {
    builtBy(someCopyTask)
})
Dunno, why the first form did not work.