Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Maven Enforcer Plugin #29 #39

Merged

Conversation

manusa
Copy link
Member

@manusa manusa commented Dec 24, 2019

Added dependencyConvergence rule to maven-enforcer-plugin: All dependency versions must converge in order to prevent duplicate dependencies and non-deterministic behaviors caused by random class load order.

All version references are located (alphabetically ordered) in the parent's pom properties (root for inter-project dependencies)

Treeshaked all poms to remove redundant dependencies and attributes.

Added 4 specific dependencies to avoid collisions. CQs must be opened for get legal approval:

  • commons-codec:commons-codec:1.13
  • com.fasterxml.jackson.core:jackson-core:2.10.0
  • com.fasterxml.jackson.core:jackson-databind:2.10.0
  • org.apache.maven.shared:maven-common-artifact-filters:3.1.0

Renamed several artifacts to have a consistent naming pattern across the project.

Closes #29

@codecov
Copy link

codecov bot commented Dec 24, 2019

Codecov Report

Merging #39 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #39   +/-   ##
=========================================
  Coverage     24.46%   24.46%           
  Complexity     1334     1334           
=========================================
  Files           326      326           
  Lines         17603    17603           
  Branches       2691     2691           
=========================================
  Hits           4307     4307           
  Misses        12805    12805           
  Partials        491      491
Impacted Files Coverage Δ Complexity Δ
...in/java/org/eclipse/jkube/kit/profile/Profile.java 74.35% <ø> (ø) 13 <0> (ø) ⬇️
...kube/springboot/generator/SpringBootGenerator.java 17.73% <ø> (ø) 8 <0> (ø) ⬇️
...va/org/eclipse/jkube/kit/common/util/YamlUtil.java 86.88% <ø> (ø) 18 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4e76b6e...52fdb78. Read the comment docs.

@manusa manusa force-pushed the fix/dependency-convergence-v2 branch 2 times, most recently from 6f1ff11 to ec59236 Compare December 24, 2019 14:20
@manusa manusa marked this pull request as ready for review December 24, 2019 14:33
@manusa manusa mentioned this pull request Jan 7, 2020
7 tasks
README.md Outdated
@@ -21,11 +21,11 @@ Actually it contains the following abstractions which has been extracted from bo
* **Jkube-kit**, which consists of the following:

* **Generator** framework for automatically generating Docker images by examining project information.<br />
[![Maven Central](https://img.shields.io/maven-central/v/org.eclipse.jkube/jkube-maven-generator-api.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22org.eclipse.jkube%22%20AND%20a:%22jkube-maven-generator-api%22) [![Javadocs](http://www.javadoc.io/badge/org.eclipse.jkube/jkube-maven-generator-api.svg?color=blue)](http://www.javadoc.io/doc/org.eclipse.jkube/jkube-maven-generator-api)
[![Maven Central](https://img.shields.io/maven-central/v/org.eclipse.jkube/jkube-kit-generator-api.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22org.eclipse.jkube%22%20AND%20a:%22jkube-kit-generator-api%22) [![Javadocs](http://www.javadoc.io/badge/org.eclipse.jkube/jkube-kit-generator-api.svg?color=blue)](http://www.javadoc.io/doc/org.eclipse.jkube/jkube-kit-generator-api)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we update badges after we cut release? WDYT?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I'll add an additional commit on top of this one that can be easily reverted after next release.

Copy link
Member

@rohanKanojia rohanKanojia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, Thanks 👍

I've added a CHANGELOG file https://github.com/eclipse/jkube/blob/master/CHANGELOG.md . Could you please add a line regarding this change to that file?

Signed-off-by: Marc Nuri <marc@marcnuri.com>
Signed-off-by: Marc Nuri <marc@marcnuri.com>
@manusa manusa force-pushed the fix/dependency-convergence-v2 branch from b3b05b4 to 52fdb78 Compare January 7, 2020 16:54
@rohanKanojia rohanKanojia merged commit 2532882 into eclipse-jkube:master Jan 8, 2020
@manusa manusa deleted the fix/dependency-convergence-v2 branch January 8, 2020 11:09
@manusa manusa mentioned this pull request May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Maven Enforcer Plugin
2 participants