Open drewwills opened 6 years ago
We had the same problem. As a workaround we excluded the license-gradle-plugin dependency to spring-core:
buildscript {
dependencies {
classpath ('gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.14.0'){
exclude group: 'org.springframework', module: 'spring-core'
}
}
}
Now both spring-boot-gradle-plugin and license-gradle-plugin work again in our setup.
We had the same problem. As a workaround we excluded the license-gradle-plugin dependency to spring-core:
buildscript { dependencies { classpath ('gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.14.0'){ exclude group: 'org.springframework', module: 'spring-core' } } }
Now both spring-boot-gradle-plugin and license-gradle-plugin work again in our setup.
@rolfhub I'm fairly green with Gradle and I haven't found a way to exclude a library using the current plugin DSL rather than the legacy buildscript syntax. Are you aware of any?
I have encountered this issue in a couple of Spring Boot projects.
Here is how I'm applying the plugin...
And here is the error I receive...
I'm not a Gradle expert, but (to me) the stack trace reads like the License plugin is bringing one or more incompatible Spring jars into the classpath Gradle uses to run the build.