I have some transitive dependency excludes in my custom-plugin build script. Like so:
configurations {
compile.exclude group: 'commons-math3', module: 'commons-math3'
}
dependencies {
'org.apache.jmeter:ApacheJMeter:2.13',
}
When publishing to plugins.gradle.org
using com.gradle.plugin-publish
version 0.9.1
, the excludes are not propagated to the generated POM:
<dependency>
<groupId>org.apache.jmeter</groupId>
<artifactId>ApacheJMeter</artifactId>
<version>2.13</version>
<scope>compile</scope>
</dependency>
Is there a workaround? Can I somehow use plugin-publish’s withDependencies
extension?
Maven-publish
plugin has (or at least, used to have) a similar issue. See here