Can't jar up resources if no java code is available

I have to create a jar of a bunch of resources, there is no java code to compile.

what is work around for this gradle bug? can’t jar up resources if no java code is available: http://issues.gradle.org/browse/GRADLE-982

I get a Could not copy MANIFEST.MF to ‘/Users/pswenson/dev/sag/optimize/trunk/modules/ccs-defaults/staging/tmp/jar/MANIFEST.MF’.

Hi phil, do you need the osgi plugin applied to your project even though you have no sources? As a workaround for this issue, adding the following snippet to your build file should help:

task bugfixtask << {
 mkdir sourceSets.main.output.classesDir
}
  jar.dependsOn(bugfixtask)

regards, René