Hi there
I’m trying to create and use a flat file repository for varoius dependencies. But for some reason, I cannot make it work when using …bin.zip files, (such as apache-ant-1.7.0.bin.zip in my example below)
It appears that Gradle finds the file, but the java compilation fails because it cannot find the relevant jar and class files.
apply plugin: 'java'
def File artifactRepositoryRoot = new File('some local file path')
repositories {
flatDir dirs: [
"${artifactRepositoryRoot}" // containing the file apache-ant-1.7.0-bin.zip and commons-email-1.2.jar
]
}
dependencies {
compile name: 'apache-ant', version: '1.7.0', classifier: 'bin', ext: 'zip'
compile name: 'commons-email', version: '1.2'
}
task listJars << { // Does list both apache-ant-1.7.0-bin.zip and commons-email-1.2.jar with correct path
println()
println '-------
Jars for compile time: -------------'
configurations.compile.each { file -> println file.absolutePath }
println '---------------------------------------------'
}
Help urgently needed - thank you in advance!
// Povl