-
Notifications
You must be signed in to change notification settings - Fork 275
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
Allow configuration of HTTP timeouts for maven repositories #3951
base: main
Are you sure you want to change the base?
Conversation
1c9d5b4
to
976f48c
Compare
976f48c
to
3aaf687
Compare
/** | ||
* Constructor required by {@link org.openrewrite.gradle.marker.GradleProject}. | ||
* | ||
* @deprecated Use {@link #MavenRepository(String, String, String, String, boolean, String, String, Duration, Duration, Boolean)} | ||
*/ | ||
@Deprecated | ||
@JsonIgnore | ||
public MavenRepository( | ||
@Nullable String id, String uri, @Nullable String releases, @Nullable String snapshots, boolean knownToExist, | ||
@Nullable String username, @Nullable String password, @Nullable Boolean deriveMetadataIfMissing | ||
) { | ||
this(id, uri, releases, snapshots, knownToExist, username, password, null, null, deriveMetadataIfMissing); | ||
} |
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.
This is used by an external project, org.openrwrite.gradle.tooling:model
.
3aaf687
to
fef3f86
Compare
Nice addition @ammachado ! I'm tagging @sambsnyd for an additional review as we're adding fields to tree classes, and he reworked parts of the Maven repository handling recently. Also copying the details on the failed test to save others a click
|
As a suggestion, can you consider publishing the test reports on a failed build? Perhaps using a custom action for it (for example, https://github.com/marketplace/actions/junit-report-action). |
Yes I'd been eyeing https://github.com/gradle/actions/tree/main/setup-gradle#build-reporting earlier today, as part of our upgrade in https://github.com/openrewrite/gh-automation/ . It's been a pain point of mine as well to have to go into the logs. |
What's changed?
Changed maven downloader to allow configuration of connection/read timeouts
What's your motivation?
https://maven.apache.org/guides/mini/guide-http-settings.html#connection-timeouts
Anything in particular you'd like reviewers to focus on?
No
Anyone you would like to review specifically?
No
Have you considered any alternatives or workarounds?
No
Any additional context
N/A
Checklist