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

Start splitting :utils:core #4647

Merged
merged 5 commits into from
Nov 2, 2021
Merged

Start splitting :utils:core #4647

merged 5 commits into from
Nov 2, 2021

Conversation

mnonnenmacher
Copy link
Member

Start to split :utils:core into two separate modules by creating the :utils:common module and moving the first code there. This will be finished in another PR. Please see the commit messages for details.

@mnonnenmacher mnonnenmacher requested a review from a team as a code owner November 2, 2021 09:12
@mnonnenmacher mnonnenmacher force-pushed the split-utils-core branch 2 times, most recently from 9600ce5 to 4fd2696 Compare November 2, 2021 09:29
The module will be used for helper functions that are not specific to
ORT, so that other utility modules like the clients or the SPDX utils
can depend on it. These will be moved to the new module in later
commits.

To automatically include the new module in all ORT modules, add it as an
API dependency to `:utils:core`, similary to how `:model` includes
`:utils:core` as an API dependency.

Also add the new package to the default imports of all `ScriptRunner`s
to ensure that user scripts keep working.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.io>
`ArchiveUtils` is  a better place for the function as it contains
related helper functions.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.io>
Extension functions should be placed in `Extensions.kt`.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.io>
The code is not specific to ORT and can be useful for other modules.

Drop the single log statement because the log helper is not available in
the common module and the (potentially fixed) user home property is
implicitly dumped as part of `ORT_DATA_DIR`.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.io>
The code is not specific to ORT and can be useful for other modules.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.io>
@mnonnenmacher mnonnenmacher merged commit 67b5ec2 into master Nov 2, 2021
@mnonnenmacher mnonnenmacher deleted the split-utils-core branch November 2, 2021 15:29
@mnonnenmacher mnonnenmacher added the breaking change Pull requests that break compatibility with previous behavior label Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Pull requests that break compatibility with previous behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants