You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "nmarasoiu (via GitHub)" <gi...@apache.org> on 2025/12/07 11:28:37 UTC
[PR] KAFKA-17798: Add forbidden-apis linting to gradle build [kafka]
nmarasoiu opened a new pull request, #21097:
URL: https://github.com/apache/kafka/pull/21097
Integrates the [forbidden-apis](https://github.com/policeman-tools/forbidden-apis) Gradle plugin to scan bytecode for invocations of unsafe or deprecated API methods.
## Changes
- Add forbidden-apis plugin (v3.10) to gradle build
- Configure with `jdk-unsafe` and `jdk-deprecated` bundled signatures
- Set `ignoreFailures = true` initially (warnings only, no build failure)
- Hook into test task via `test.dependsOn('forbiddenApisMain')`
- Document usage in README.md
## Why ignoreFailures = true?
Running the check reveals dozens/hundreds of existing violations (mostly locale-dependent `String.format()` calls). Fixing these should be separate PRs. This PR establishes the infrastructure; follow-up issues
[KAFKA-17799](https://issues.apache.org/jira/browse/KAFKA-17799) and [KAFKA-17800](https://issues.apache.org/jira/browse/KAFKA-17800) will add specific rules and address violations.
## Testing
./gradlew :clients:forbiddenApisMain # runs check, reports warnings, build succeeds
./gradlew tasks --all | grep forbidden # shows tasks registered for all subprojects
## Related
- Blocks: KAFKA-17799, KAFKA-17800
- Previous PR #17565 was auto-closed due to inactivity
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-17798: Add forbidden-apis linting to gradle build [kafka]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #21097:
URL: https://github.com/apache/kafka/pull/21097#issuecomment-5691683621
This PR is being marked as stale since it has not had any activity in 90 days. If you
would like to keep this PR alive, please leave a comment asking for a review. If the PR has
merge conflicts, update it with the latest from the base branch.
<p>
If you are having difficulty finding a reviewer, please reach out on the
[mailing list](https://kafka.apache.org/contact).
<p>
If this PR is no longer valid or desired, please feel free to close it. If no activity
occurs in the next 30 days, it will be automatically closed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-17798: Add forbidden-apis linting to gradle build [kafka]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #21097:
URL: https://github.com/apache/kafka/pull/21097#issuecomment-4072156852
A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the `triage` label
should be removed to prevent this automation from happening again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-17798: Add forbidden-apis linting to gradle build [kafka]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #21097:
URL: https://github.com/apache/kafka/pull/21097#issuecomment-4726003059
A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the `triage` label
should be removed to prevent this automation from happening again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-17798: Add forbidden-apis linting to gradle build [kafka]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #21097:
URL: https://github.com/apache/kafka/pull/21097#issuecomment-4062176371
This PR is being marked as stale since it has not had any activity in 90 days. If you
would like to keep this PR alive, please leave a comment asking for a review. If the PR has
merge conflicts, update it with the latest from the base branch.
<p>
If you are having difficulty finding a reviewer, please reach out on the
[mailing list](https://kafka.apache.org/contact).
<p>
If this PR is no longer valid or desired, please feel free to close it. If no activity
occurs in the next 30 days, it will be automatically closed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-17798: Add forbidden-apis linting to gradle build [kafka]
Posted by "nmarasoiu (via GitHub)" <gi...@apache.org>.
nmarasoiu closed pull request #21097: KAFKA-17798: Add forbidden-apis linting to gradle build
URL: https://github.com/apache/kafka/pull/21097
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-17798: Add forbidden-apis linting to gradle build [kafka]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #21097:
URL: https://github.com/apache/kafka/pull/21097#issuecomment-5724642570
A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the `triage` label
should be removed to prevent this automation from happening again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-17798: Add forbidden-apis linting to gradle build [kafka]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #21097:
URL: https://github.com/apache/kafka/pull/21097#issuecomment-3652749477
A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the `triage` label
should be removed to prevent this automation from happening again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-17798: Add forbidden-apis linting to gradle build [kafka]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #21097:
URL: https://github.com/apache/kafka/pull/21097#issuecomment-4704785434
This PR is being marked as stale since it has not had any activity in 90 days. If you
would like to keep this PR alive, please leave a comment asking for a review. If the PR has
merge conflicts, update it with the latest from the base branch.
<p>
If you are having difficulty finding a reviewer, please reach out on the
[mailing list](https://kafka.apache.org/contact).
<p>
If this PR is no longer valid or desired, please feel free to close it. If no activity
occurs in the next 30 days, it will be automatically closed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org