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

Upgrade to Java 11 #51

Merged
merged 11 commits into from
Apr 30, 2023
Merged

Upgrade to Java 11 #51

merged 11 commits into from
Apr 30, 2023

Conversation

manoelcampos
Copy link
Contributor

@manoelcampos manoelcampos commented Apr 29, 2023

Java 8 is end-of-life. It was released almost 10 years ago.
Maybe Java 11 is the most established Java LTS version. I think it's the minimum requirement for any updated Java project.
If there is someone still using Java 8, they can stick with dotenv 2.3.2.

Contributions of this PR

  • Upgrade to JDK 11, using Java 11 everywhere (instead of 1.8 for sources and 11 for tests)
  • Update dependency versions
  • Remove maven.coveralls.plugin. Since the project is already using https://codacy.com, they already provide coverage service which doesn't require a maven plugin. I can send a separete PR to enable uploading coverage reports to codacy (that requires an API key).
  • Update to JUnit 5
  • Performs code refactoring
  • Removes .travis.yml file and adds GitHub Action workflow build.yml

copy-rename-maven-plugin, using
the project artifactId and version tags.

Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
- Using Java 11 everywhere (instead of 1.8 for sources and 11 for tests)
- Update dependency versions

Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
Since the project is already using https://codacy.com,
they already provide coverage service which doesn't require
a maven plugin.
Uploading coverage reports can be done inside a GitHub Action workflow.
This way, a single service can be used for code quality and coverage.

The coveralls plugin is abandoned, has old dependencies
and doesn't support new JDK versions.

Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
- Refactor tests
- Organize test code

Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
- Define final variable and parameters.
- Code organization.

Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
(without changing behaviour)

Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
extracting a new method to improve clarity.

Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
…rse()

and creates an ArrayList with that exact size for memory improvement.

Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
- Update build badge
- Remove coveralls badge since the plugin was removed (since it's abandoned)
  and codacy can be configured to show code coverage.

Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
@gitguardian
Copy link

gitguardian bot commented Apr 29, 2023

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id Secret Commit Filename
- Generic High Entropy Secret 13e267a pom.xml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

Copy link
Owner

@cdimascio cdimascio left a comment

Choose a reason for hiding this comment

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

this is great. thank you

@cdimascio cdimascio merged commit d586bd3 into cdimascio:master Apr 30, 2023
@cdimascio
Copy link
Owner

@all-contributors add @manoelcampos for code test infrastructure

@allcontributors
Copy link
Contributor

@cdimascio

I've put up a pull request to add @manoelcampos! 🎉

@manoelcampos manoelcampos changed the title Adds support to Java 11 Upgrade to Java 11 May 2, 2023
manoelcampos added a commit to manoelcampos/env-file-maven-plugin that referenced this pull request May 2, 2023
Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
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