[email protected] wrote:
We must be doing something wrong Adam.
project structure:
|____build.gradle
|____core
| |____src
| | |____main
| | | |____java
|____jdbc3
| |____build.gradle
| |____src
| | |____main
| | | |____java
| | |____test
| | | |____java
| | | |____resources
|____jdbc4
| |____build.gradle
| |____src
| | |____main
| | | |____java
| | |____test
| | | |____java
| | | |____resources
|____settings.gradle
Here are the build files
[main]
usePlugin 'java'
jar {
from this.project(':core').sourceSets.main.classes
from this.project(':jdbc3').sourceSets.main.classes
from this.project(':jdbc4').sourceSets.main.classes
}
I'm not sure why this doesn't work - I'll have to dig into this.
In the meantime, a workaround is to add .asFileTree to the end of each
classes set:
jar {
from project(':core').sourceSets.main.classes.asFileTree
....
}
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email