Skip to content

Do not override odlparent managed versions#2622

Open
Tobianas wants to merge 3 commits intoPANTHEONtech:mainfrom
Tobianas:odlparent-managed
Open

Do not override odlparent managed versions#2622
Tobianas wants to merge 3 commits intoPANTHEONtech:mainfrom
Tobianas:odlparent-managed

Conversation

@Tobianas
Copy link
Copy Markdown
Contributor

We have some dependencies we usually bump according to odlparent. Assuming they are managed by ODL we do not need to manage them in lighty.io as well.

Make odlparent as a parent of lighty-minimal-parent to set dependency
versions across the project.
This also requires us to disable strict ODL checkstyle as lighty.io
uses its own.

JIRA: LIGHTY-427
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request integrates odlparent as a parent for lighty-minimal-parent and removes explicit versions for various dependencies and plugins across the project to rely on centralized management. However, several issues were identified where removing versions will lead to build failures, specifically for the central-publishing-maven-plugin and the maven-gpg-plugin in modules that do not inherit the necessary management. Furthermore, globally skipping static analysis plugins in the minimal parent inadvertently disables the project's own quality checks. Feedback also suggests re-incorporating the SLF4J bug pattern for SpotBugs and cleaning up now-unused version properties.

Comment thread lighty-core/lighty-minimal-parent/pom.xml
Comment thread lighty-core/lighty-minimal-parent/pom.xml
Comment thread lighty-core/lighty-parent/pom.xml
Comment thread lighty-core/dependency-versions/pom.xml
Comment thread lighty-core/lighty-parent/pom.xml
@Tobianas Tobianas force-pushed the odlparent-managed branch from 7593cd0 to 0d5500e Compare April 15, 2026 12:54

<build>
<plugins>
<!-- Disable all ODL checkstyle checks since lighty.io uses its own -->
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lighty does not have its own. where?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.opendaylight.odlparent</groupId>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why? for which versions, shared where?

Copy link
Copy Markdown
Contributor Author

@Tobianas Tobianas Apr 20, 2026

Choose a reason for hiding this comment

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

By adding odlparent as a parent in here, we can override the versions for plugins across the project.
Dependency management sadly does not work for plugins as seen here:
apache/maven#4149

lighty-minimal-parent is the parent for lighty-parent, which means we can set all of the dependency versions in here.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is that still considered "minimal" parent?

Now when lighty-minimal-parent has odlparent as its parent, there is no
need to specify these versions.

JIRA: LIGHTY-427
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
This version is no longer required, as it is recieved from odlparent.

JIRA: LIGHTY:427
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
@Tobianas Tobianas force-pushed the odlparent-managed branch from 1285cbd to 8f62017 Compare April 20, 2026 16:47
@Tobianas
Copy link
Copy Markdown
Contributor Author

image No warnings present anymore

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.opendaylight.odlparent</groupId>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is that still considered "minimal" parent?

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.

2 participants