I have a buildscript dependency ‘lesscss4j’ that requires a specific version of the rhino javascript library, the problem is that another buildscript dependency ‘yuicompressor’ has a bundled version of rhino which conflicts. Changing the order only changes which task fails.
Any suggestion about how to resolve this? I considered separating out the ‘yuicompressor’ task to a plugin but as far as I can tell from the docs it’s not possible to declare a separate classpath for a plugin… maybe I’m wrong here?
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'rhino', name: 'js', version: '1.7R2'
classpath group: 'com.googlecode.lesscss4j', name: 'lesscss4j', version: '1.2.0'
classpath group: 'com.yahoo.platform.yui', name: 'yuicompressor', version: '2.4.6'
} }