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

(Phil Swenson) #1

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:

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

(René Groeschke) #2

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

regards, René