Terribly sorry ...

I tried

classpath = configurations.zkm + sourceSets.main.classes  // just use '+'
here

and there's an error.

I tried

 FileCollection f = files()
f.add(configurations.zkm)
 f.add(sourceSets.main.runtimeClasspath)

and it tells me the collection can't be modified! (what is the add function
doing there then? confused).

And I tried (not expecting it to work) plain old

classpath = sourceSets.main.runtimeClasspath

and it worked. However, even though we've change how zkm and junit are used
in the dependencies block,
they've arrived back again in my distribution zip

here's my dependencies block:

dependencies {
testCompile files('../depends/junit.jar')
 zkm files('/mnt/data/dev/zelix/ZKM5.2.4e.jar')
compile project(':path/SimpleSharedProject')
 compile files('../depends/shared.jar')
}

and my dist task:


task dist(dependsOn: unobfuscatedJar, type: Zip) { // as per
http://www.gradle.org/tutorial_java_projects.html
    dependsOn jar
    into('libs') {
        from jar.archivePath
        from configurations.runtime
    }
}


Also, any idea how to get it to stop magically building an unobfuscated
project B (that's the SimpleSharedProject from the dependencies)
and get it to use the one that is actually built by the project?

Again, very much in debt to you for all your help,

sean

Reply via email to