While trying to get a small repo running I tracked down the problem to the classpath files(…).
Using an absolute path seems to work:
buildscript {
dependencies {
classpath fileTree(dir: rootDir.absolutePath + '/Extern/gradle/ant.lib', includes:['ivyp4.jar','p4java.jar'])
// worked for 1.7, but not with 1.12: classpath files('Extern/gradle/ant.lib/ivyp4.jar')
}
}
The buildSrc plugin is also applied it the rootProject. Applying it in the SubProject fails with files(…) .
Is there a way to define a repository only once and have all projects inherit this ? Currently it looks like every sub-project will instantiate its own resolver.