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 mockito to dependencyManagement #568

Merged

Conversation

raboof
Copy link
Member

@raboof raboof commented Jan 2, 2025

So we only need to maintain the version to be the latest that supports Java 8 here.

See also apache/commons-bcel#400

Thanks for your contribution to Apache Commons! Your help is appreciated!

Before you push a pull request, review this list:

  • Read the contribution guidelines for this project.
  • Run a successful build using the default Maven goal with mvn; that's mvn on the command line by itself.
  • Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied. This may not always be possible but is a best-practice.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Each commit in the pull request should have a meaningful subject line and body. Note that commits might be squashed by a maintainer on merge.

So we only need to maintain the version to be the latest that supports
Java 8 here.

See also apache/commons-bcel#400
@garydgregory garydgregory merged commit b3d5815 into apache:master Jan 2, 2025
9 checks passed
garydgregory added a commit that referenced this pull request Jan 2, 2025
@garydgregory
Copy link
Member

garydgregory commented Jan 3, 2025 via email

@raboof
Copy link
Member Author

raboof commented Jan 3, 2025

Note that I had to revert the Dependabot change because GitHub failed running the file.

Thanks! (for reference: 565af2f, in my defense 😄 the docs were wrong, filed github/docs#35818)

Also keep in mind that not all Commons components are stuck on Java 8 so doing this check would be counterproductive for Commons DbUtils for example.

That's a good point. With that in mind, we should probably not have the mockito version in the parent pom after all, since which version to pick depends on whether the project still supports Java 8 #570

@Russusheikh
Copy link

@garydgregory
Copy link
Member

-1 as previously discussed, some components depend on Java versions greater than 8.

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.

3 participants