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

Added a test to ensure our bits are Java8 compatible #735

Merged
merged 1 commit into from
Jan 19, 2024
Merged

Conversation

kohsuke
Copy link
Contributor

@kohsuke kohsuke commented Jan 18, 2024

Renovate wants to bump up dependencies all the time, so it's important now that we can flag dependencies that are too new.

I originally had animal-sniffer as another test only artifact, but Bazel still complained that plexus depends on junit yet plexus is not marked test only. My guess is that the test only bit doesn't flow through transitive dependencies.

I suppose I could have explicitly marked every intermediate dependencies, but that didn't seem to be worth the effort, so I chickened out to an easier path, which is just to remove the test only flag from junit. It makes this file shorter, which is a plus, too.

The default visibility in the src package was needed in order to make deploy_jar visible to the test package. I would have expected the existing public visibility in the java_library would have been sufficient, but evidently it wasn't. This is a small project, so the downside of the loose visibility is limited.

Renovate wants to bump up dependencies all the time, so it's important
now that we can flag dependencies that are too new.

I originally had animal-sniffer as another test only artifact, but Bazel
still complained that plexus depends on junit yet plexus is not marked
test only. My guess is that the test only bit doesn't flow through
transitive dependencies.

I suppose I could have explicitly marked every intermediate
dependencies, but that didn't seem to be worth the effort, so I
chickened out to an easier path, which is just to remove the test only
flag from junit. It makes this file shorter, which is a plus, too.

The default visibility in the src package was needed in order to make
deploy_jar visible to the test package. I would have expected the
existing public visibility in the java_library would have been
sufficient, but evidently it wasn't. This is a small project, so the
downside of the loose visibility is limited.
@kohsuke kohsuke requested a review from Konboi January 18, 2024 17:29
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@kohsuke kohsuke mentioned this pull request Jan 18, 2024
@kohsuke kohsuke merged commit 967fe4f into main Jan 19, 2024
2 checks passed
@kohsuke kohsuke deleted the java-compat-test branch January 19, 2024 02:10
@github-actions github-actions bot mentioned this pull request Jan 19, 2024
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