-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
GRADLE_ARGS partially ignored in recursive mode #423
Comments
I've no idea, just recognized that I cannot add options like
🤯 |
Put it the other way, is there an issue with the current behaviour like sbom having less components or dependency etc? |
there's a multi-module gradle project, for which I have to start cdxgen in the project root folder, but have to address single modules using |
ok, did some comparison. the dependency components are equal: taken from the submodul I gave with Not quite sure, if there are cases with project properites like |
@heubeck any chance you can contribute a test project to replicate this? |
will do. |
Sorry for the late reply. I had issues with the GRADLE_ARGS being added to both Gradle-calls in the code (properties and depdencies) where only the latter understood the added arguments. Even worse, the call to 'properties' failed because of unknown arguments! I can understand you wanting to have GRADLE_ARGS back, but maybe we should have 2 versions of it, eg:
That way, it you can even set different arguments for either call! Or mavbe even go the extra mile and make 3 EnvVars, where the documentation than clearly explains that 'GRADLE_ARGS' is used for both calls, but the above are for the specific calls? |
@malice00 I am happy with the proposed 3 env variable approach. Would it be possible to send a PR? |
Signed-off-by: Florian Heubeck <heubeck@mediamarktsaturn.com>
It seems somebody already did! :-) Thanks @heubeck! |
Issue #423: Introduce separate ENVs for different gradle tasks
Having a multi-module gradle project with
GRALDE_ARGS
set, these are not applied to every gradle call executed:The text was updated successfully, but these errors were encountered: