-
Notifications
You must be signed in to change notification settings - Fork 199
-
Notifications
You must be signed in to change notification settings - Fork 199
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
Disable gradle version check for non-public wrapper URL #241
Comments
Does a private distribution url provide the same lookup api that the public one does? Note that for Gradle itself is not in a maven repository but uses a custom REST endpoint. |
@ben-manes , unfortunately no. It just supports 404 response for missing resource . |
In that case then I don't think we'd want to create a new ad hoc lookup scheme. For dependencies we let Gradle do the work and for the distribution lookup we use a custom resolver based on the public API. The more we customize and diverge, the more painful it is to catch-up as the build tool evolves. I think your idea of a flag to disable the check is best. It would be nice to use the |
@ben-manes , I agree with disabling gradle updates check. However I don't understand your suggestion. Do you suggest to use Or possible do you suggest to put flag into gradle/gradle.properties/gradle-wrapper.properties files? |
Sorry, I meant that ideally we might infer from the @aaronols contributed this feature so fyi in case you have any thoughts. |
The task property `checkForGradleUpdate` is defaulted to `true`. When set to `false` no check is performed, the plain text report, does not include the statement, and the json/xml report includes an enable flag, no version, and the reason. Due to URLConnection defaulting to infinite timeout that can cause a hung build, the maximum connection and read timeouts are set to 15 seconds as a failsafe.
The release will be live after the TravisCI build completes (as it does our releases for us based on new tags). Should take just a few minutes. |
Short idea: fix gradle version check for non-official gradle distributions.
In our company we don't have access to the internet from gradle scripts.
So, we use custom distribution URL, e.g. our gradle-wrapper.properties file is like this:
The main issue: plugin gets timeout error during the gradle version verification (and it works for a long time).
Possible solutions:
dependencyUpdates
The text was updated successfully, but these errors were encountered: