Skip to content

Ignore uncommented lines in gradle build scripts #1731

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

Closed
wants to merge 1 commit into from

Conversation

nightm4re94
Copy link

The changes in #1658 were prone to errors if users had commented-out blocks of build logic in their Gradle scripts, e.g. for toggling composite builds.
The impact and implications have been outlined here.
This PR attempts to skip any lines that start with // or are surrounded by /* ... */ and adds tests for the skipping behaviour.

@prabhu
Copy link
Collaborator

prabhu commented Apr 15, 2025

Thank you so much! Could you kindly sign the commit by following instructions below?

https://github.com/CycloneDX/cdxgen/pull/1731/checks?check_run_id=40593187724

@prabhu prabhu added the gradle label Apr 15, 2025
@malice00
Copy link
Collaborator

Sorry I'm late to the party... I had a better idea to solve this: no manual parsing, instead have gradle handle it. I'm actually almost finished with the implementation. I'll open a new PR. 😄

@nightm4re94
Copy link
Author

Superseded by #1732.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants