hi gradle users,
to share common resolver-setup across multiple gradle-builds
i implemented a class 'ResolverSetup' and use it like this:
*** schnipp ***
subprojects {
usePlugin('groovy')
sourceCompatibility = 1.4
targetCompatibility = 1.4
group = 'com.mycompany'
version = '1.0'
type = 'jar'
test.stopAtFailuresOrErrors=false
// ResolverSetup ist custom-BuildLogik -> buildSrc und
// dient als temporäre Lösung zur einheitlichen Definition
// der Resolver (classpath, upload).
ResolverSetup resolverSetup = new ResolverSetup(project)
dependencies {
resolverSetup.setupClasspathResolvers(classpathResolvers);
}
uploadLibs {
resolverSetup.setupUploadResolvers(uploadResolvers);
}
}
*** schnapp ***
i put the class ResolverSetup into buildSrc/main/java
of each project. but this is not dry.
may be a custom-plugin is what i need here ... ?
have a nice day !
--
View this message in context:
http://www.nabble.com/common-resolver-setup-across-multiple-gradle-builds-tp19570795p19570795.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