I'm trying to do something very similar but with a multi-project
configuration.
TopLevelProj
/SubProjA
/SubProbB
/lib
build.gradle
settings.gradle
I want the sub projects to have a compile dependancy on the jar files in the
lib directory. My build.gradle script is below. This doesn't work, I
suspect the way I have specified the dependancy it's trying to resolve a lib
directory in each Sub Project? I've tried using ../lib but that doesn't
work either.
Can anyone help?
apply plugin: 'java'
dependsOnChildren()
allprojects {
sourceCompatibility = 1.5
targetCompatibility = 1.5
}
subprojects {
apply plugin: 'java'
sourceSets.main.java.srcDir 'src'
dependencies{
compile fileTree(dir: 'lib', include: '*.jar')
}
}
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Compile-using-jars-from-a-lib-directory-tp1436046p2227843.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