Closed jmini closed 2 years ago
Our current workaround is to exclude the bndlib
from the goomph
dependency:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath ('com.diffplug.gradle:goomph:3.33.2') {
exclude group: 'biz.aQute.bnd', module: 'biz.aQute.bndlib'
}
}
}
this is solved in 3.33.3
with PR #172.
I am aware the issue might be complicated to solve here. It should probably be solved somewhere else
In a project where we are using
com.diffplug.gradle:goomph:3.33.2
for thebuildproperties
andmavencentral
plugins we have an other plugin that starts a new instance of the equinox framework.Something like this:
We have the issue:
After analyzing the classpath
./gradlew buildEnvironment
:It seems that 2 jars holds the
org.osgi.service.log
package:org.eclipse.platform:org.eclipse.osgi:3.15.0
biz.aQute.bnd:biz.aQute.bndlib:5.3.0
So I can understand the
SecurityException
, and I am wondering why everybody seems to include the same OSGi code inside its jar.A similar error was reported here https://github.com/diffplug/spotless/issues/873#issue-912375764. Not sure if this is related.
What is your opinion on this?