-
Notifications
You must be signed in to change notification settings - Fork 310
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
Make GradleInspector the new default analyzer for Gradle projects #9070
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9070 +/- ##
=========================================
Coverage 67.21% 67.21%
Complexity 1188 1188
=========================================
Files 239 239
Lines 7916 7916
Branches 910 910
=========================================
Hits 5321 5321
Misses 2226 2226
Partials 369 369
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
a5d8d82
to
bffba4d
Compare
|
||
Also, the `isModified` check which compares with artifacts of the same name in Maven Central is not implemented yet. | ||
* The retrieval of the checksum values for remote artifacts is currently done via plain OkHttp calls, which means it will not work out of the box for private repositories. | ||
To work around this, credentials need to be configured in `.netrc` additionally to in Gradle. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this say "in addition to"?
Furthermore, I'm not sure but it felt to me within "to in" there is something missing.
Maybe: The credentials which are configured in Gradle need to be redundantly configured in '.netrc'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to keep changes compared to the existing text to a minimum, but I guess I could do some rewordings along the way...
Also, the `isModified` check which compares with artifacts of the same name in Maven Central is not implemented yet. | ||
* The retrieval of the checksum values for remote artifacts is currently done via plain OkHttp calls, which means it will not work out of the box for private repositories. | ||
To work around this, credentials need to be configured in `.netrc` additionally to in Gradle. | ||
This is similar to how the "legacy" [Gradle] analyzer required to additionally configure credentials in Maven. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to drop line 38 as irrelevant in this context?
* The retrieval of the checksum values for remote artifacts is currently done via plain OkHttp calls, which means it will not work out of the box for private repositories. | ||
To work around this, credentials need to be configured in `.netrc` additionally to in Gradle. | ||
This is similar to how the "legacy" [Gradle] analyzer required to additionally configure credentials in Maven. | ||
* The `isModified` check which compares with artifacts of the same name in Maven Central is not implemented yet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there something missing in "which compares with artifacts" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've clarified it.
The [GradleInspector] is an alternative analyzer for projects that use the Gradle package manager. | ||
It is supposed to address [several] [shortcomings] of the "legacy" [Gradle] analyzer, but to not interfere with it, the [GradleInspector] is disabled by default. | ||
The [GradleInspector] is the new analyzer for projects that use the Gradle package manager. | ||
It is supposed to address [several] [shortcomings] of the "legacy" [Gradle] analyzer, which is disabled by default now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to avoid "the new" and "now" as these terms become outdated?
Maybe instead "the default" and "which is disabled by default"?
bffba4d
to
ed73800
Compare
ed73800
to
f292f6b
Compare
c4f6ca5
to
0a49445
Compare
@oss-review-toolkit/kotlin-devs what's currently blocking the merge of this is some unexpected diff in the dependency graph that I see when running |
I've found the cause and am preparing a fix. |
0a49445
to
a1dea2a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
This is a fixup for 7373195. Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
a1dea2a
to
0c0d6b3
Compare
As of 04b0356, the analyzer refuses to have multiple package managers for the same project type enabled. So make Pub always use that one, if any, Gradle package manager to avoid problems if a user enables `GradleInspector` but Pub tries to use legacy `Gradle`. Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
Format limitations as a list, add [1], and improve wording along the way. [1]: #7995 Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
0c0d6b3
to
b9657ff
Compare
Despite its documented limitations, the benefits outweight the drawbacks of making this the default analyzer for Gradle projects. Adjust the Pub package manager as well to use `GradleInspector` for its tests, which highlights the additional metadata collected. Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
b9657ff
to
c9db5a7
Compare
Sorry @fviernau, I had do adjust a few commit messages, but I'm done now! |
Please have a look at the individual commit messages for the details.