I am using gradle-jpi-plugin to produce hpi file for my plugin. I need to override some dependencies versions in the plugin hpi file. I added the following changes to build.gradle to override the lib versions, but none of them is working
configurations.all {
resolutionStrategy {
force 'org.codehaus.groovy:groovy-all:2.5.15'
}
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'org.codehaus.groovy'
&& !details.requested.name.contains('groovy-all') ) {
details.useVersion "2.5.15"
}
}
}
gradlew dependencies --info is showing the updated version
+--- org.codehaus.groovy:groovy-all:2.4.12 -> 2.5.15 (*)