Gradle plugin: Duplicated tag: 'dependencyManagement'
See original GitHub issueFor build.gradle, when using
dependencies {
constraints {
compile("com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}") {
because 'previous versions have security issues'
}
}
}
in combination with
apply plugin: 'io.spring.dependency-management'
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
an invalid POM file is generated with two dependencyManagement elements. Deployment (artifactoryPublish) is thus refused by the artifactory server.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:14
- Comments:10
Top Results From Across the Web
Replicating Maven "dependencyManagement" tag from inside ...
Generally maven dependencyManagement tag is used to import bom or control transitive versions. Gradle does that with platform ...
Read more >Dependency Management Plugin - Spring
The dependency management plugin improves Gradle's handling of exclusions that have been declared in a Maven pom by honoring Maven's semantics ...
Read more >io.spring.dependency-management - Gradle Plugin Portal
io.spring.dependency-management. Owner: Spring IO. A Gradle plugin that provides Maven-like dependency management functionality.
Read more >Gradle plugin: Duplicated tag: 'dependencyManagement' -
Gradle plugin : Duplicated tag: 'dependencyManagement'. JFrogDev. 04 January 2019 Posted by skjolber. For build.gradle, when using
Read more >spring-gradle-plugins/dependency-management-plugin - Gitter
In Gradle that would mean that you'd declare a dependency without assigning it to a particular configuration and it would, somehow, be assigned...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had the same problem.
You don´t need to/cannot use the ‘io.spring.dependency-management’ plugin in the project where you use your bom. so no "dependencymanagement in the build gradle too!
All you need is:
dependencies {
//your deps
}
Had the same problem and just implemented a hack that combines the content of the two dependency management blocks.