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 bom module #247

Merged
merged 5 commits into from
Sep 28, 2023
Merged

Add bom module #247

merged 5 commits into from
Sep 28, 2023

Conversation

honnix
Copy link
Member

@honnix honnix commented Sep 27, 2023

TL;DR

Add bom module for easier module management at user side.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

flytekit-java has lots of modules, and it is getting complicated for users to manage those. Adding a bom will simplify that.

Tracking Issue

NA

Follow-up issue

NA

<modelVersion>4.0.0</modelVersion>

<groupId>org.flyte</groupId>
<artifactId>flytekit-bom</artifactId>
Copy link
Member Author

Choose a reason for hiding this comment

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

Note that we should not use parent for a bom module because that will result in leaking dependencies that are declared in the parent dependencyManagement section.

@@ -33,7 +33,6 @@
<scala.baseVersion>2.13</scala.baseVersion>
<scala.version>2.13.10</scala.version>

<maven.deploy.skip>true</maven.deploy.skip>
Copy link
Member Author

Choose a reason for hiding this comment

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

This property doesn't make much sense because we do not use mvn deploy to publish artifacts.

Copy link
Member Author

Choose a reason for hiding this comment

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

Also this property is not set consistently across the entire code code. For example integration-tests module should have had it.

@@ -0,0 +1,155 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2021 Flyte Authors.
Copy link
Member Author

Choose a reason for hiding this comment

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

@honnix
Copy link
Member Author

honnix commented Sep 28, 2023

Hmm, this seems to break spotless because the plugin is not defined in bom.

</dependencyManagement>

<build>
<pluginManagement>
Copy link
Member Author

Choose a reason for hiding this comment

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

Sadly we need to configure this again because bom has no parent so it cannot inherit.

@honnix honnix marked this pull request as draft September 28, 2023 08:32
@honnix
Copy link
Member Author

honnix commented Sep 28, 2023

Converted to draft because there is still something missing.

Signed-off-by: Hongxin Liang <[email protected]>
Signed-off-by: Hongxin Liang <[email protected]>
Signed-off-by: Hongxin Liang <[email protected]>
Signed-off-by: Hongxin Liang <[email protected]>
@honnix honnix marked this pull request as ready for review September 28, 2023 11:30
@honnix honnix merged commit 2c0e456 into master Sep 28, 2023
3 checks passed
@honnix honnix deleted the bom branch September 28, 2023 11:39
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