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

Java8 baseline & bump all dependencies #389

Merged
merged 7 commits into from
Aug 22, 2023
Merged

Java8 baseline & bump all dependencies #389

merged 7 commits into from
Aug 22, 2023

Conversation

DRoppelt
Copy link
Contributor

@DRoppelt DRoppelt commented May 2, 2023

implements #369

57 builds in GitHub actions later, finally got this to run.

I reduced it to plexus-utils 1.X vs 3.X: it appears that there were major changes in encoding of parameters before&after.
Especially annoying, my private box is a windows machine & the issues occurred only on Linux/Ubuntu. For a while it seemed to be a CI vs. local issues (is the JDK not installed correctly? maven 3.9.X not installing as expected? Is there an issue with the actions/runners used?), until I reduced it to plexus-utils 1 vs 3.

@DRoppelt
Copy link
Contributor Author

DRoppelt commented May 2, 2023

some tests still failing as the command-line behaviour between plexus-utils 1.X and 3.X changed

one instance is that empty args passed to a cmd are treated differently

@DRoppelt DRoppelt changed the title Java8 baseline Java8 baseline & maven 3.9.X compatibility May 2, 2023
move to java8 & bump dependencies where applicable and/or were not pulled up due to java7 support

latest maven 3.9.0 in wrapper to proof plugin is compatible with it (as shown via the integration-tests)

implements #369
\"\" would become litellarlly \"\" in Ubuntu, but an empty value on windows

my guess: encoding of ', ", \" changed across OSes in newer plexus-utils versions
@DRoppelt DRoppelt marked this pull request as ready for review May 3, 2023 16:55
@@ -546,7 +549,12 @@ protected void initGitFlowConfig() throws MojoFailureException, CommandLineExcep
*/
private void gitSetConfig(final String name, String value) throws MojoFailureException, CommandLineException {
if (value == null || value.isEmpty()) {
value = "\"\"";
Copy link
Contributor Author

@DRoppelt DRoppelt May 3, 2023

Choose a reason for hiding this comment

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

before, there would be actually \"\" (with escape chars!) in the .gitconfig file. Only on Ubuntu, but not Windows.

…Unknown lifecycle phase "". You must specify a valid lifecycle phase or a goal ...", was fine in plexus-utils 1.X

or for git, Failed cmd ['git'] with args [[merge, --no-ff, , release/0.0.3, , ]], bad exit code [1]. Out: [merge:  - not something we can merge

my guess: handling of empty args changes between plexus-utils major versions
@DRoppelt DRoppelt changed the title Java8 baseline & maven 3.9.X compatibility Java8 baseline & bump all dependencies May 3, 2023
@aleksandr-m
Copy link
Owner

@DRoppelt Thank you!

@DRoppelt
Copy link
Contributor Author

:)

Just wondering, do you plan to release it soon as well?

@DRoppelt
Copy link
Contributor Author

a friendly reminder @aleksandr-m

I was wondering when you plan to release this change. Is there something that is blocking (or something that the updates broke?) that I can help with?

@aleksandr-m
Copy link
Owner

Hi Dennis. The plan was to implement couple long standing feature requests in that release, but I don't have much spare time lately. I will try to find some time in a next few weeks, and if I don't then I'll release next version as it is now.

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