-
Notifications
You must be signed in to change notification settings - Fork 36
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
Improve gradle support #75
Comments
Another similar usage can be found in the Apache Aurora repository (https://github.com/StephanErb/aurora/blob/50f47ccc957381f101ecbffa91db0f6776fe19ad/build.gradle#L340-L384). Only those dependencies are found whose version number does not come from a variable: https://dependencyci.com/github/StephanErb/aurora |
In general, I'm wondering why to bother re-implementing parsing of |
@sschuberth Because build.gradle is just groovy code and running |
Ok, so it basically is a requirement to not run any third-party executables. However, "is just groovy code" is exactly the problem: You could pretty much implement anything in Gradle build files, and name your variables / properties like you want. There's no standard for using a map named |
The plan is to eventually use gradle property from within a VM to ensure it can't do anything worse than crash but getting that infrastructure setup will take time |
I other words, it does not make sense (yet) to improve handling of Gradle by filing a PR that executes Gradle and parses the output, right? Just for reference, that basically is how LicenseFinder works, except that it also depends on the Gradle project to have the license-gradle-plugin applied. |
Simply parsing |
Exactly. I've improved the wording in my previous comment as I meant "parsing of Gradle's output". But that's prone to changes in Gradle's output and thus likely to break. Which is why in our Open Source Review Toolikit we use the Gradle Tooling API to query dependencies programmatically (including and substitutions or version conflict resolutions). |
There's already a breaking change in the output of the As of 1.1.1, ShellExec was still using
Now it uses
|
Just looked at your |
Taking a step back, one way to get a quick win with improving Gradle support would be to parse the generated It's possible to use Gradle for building projects on other platforms (I'm using it for iOS & Android), but the vast majority of Gradle projects I imagine are deploying to a maven repo and thus generating one of these I do think that the initscript approach that oss-review-toolkit is the best way to catch all the cases as Gradle is very flexible. Any thoughts @andrew or @BenJam? I'd love to help work on adding Gradle support. |
Support
ext.libraries
array if possible: https://github.com/wiyarmir/TravisForAndroid/blob/f839343d11d76f002ca057e591f0737aff1bf38d/build.gradle#L73-L131The text was updated successfully, but these errors were encountered: