TheKaptain: Thanks, that got that part :)
Now I've got this, but I'm not sure how to cause the sub-jar to be
automatically compiled:
project(':api:core') {
version = 1.0
configurations {
core
caa
}
dependencies {
compile project(':api:schema')
compile project(':api:util')
}
jar {
baseName = 'core'
dependsOn classes
from sourceSets.main.classes
exclude('net/intellidata/core/**/*Impl*')
}
task caaJar(type: Jar) {
baseName = 'caa'
dependsOn classes
from sourceSets.main.classes
include('net/intellidata/core/**/CAA*Impl*')
}
artifacts {
caa caaJar
}
}
Again, we're looking at ~40 of these individual configurations, and our
other applications depend on anywhere from just core-version.jar or even all
of them depending on the client and the application.
--
View this message in context:
http://gradle.1045684.n5.nabble.com/How-to-exclude-some-classes-from-jar-tp3315811p3316676.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email