-
Notifications
You must be signed in to change notification settings - Fork 6
Grails Wrapper Fails on Redirect to HTTPS #7
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
Comments
It seems that what is happening, is the base url is hardcoded to use http and the repository returns a permanent redirect:
The lone |
Related to #5. |
* Fixes #7 * Update Grails Artifactory URL to HTTPS * Flexibility to override Grails Artifactory base URL via SystemProperty or Environment variable.
We are putting together patch releases for Grails 4 and Grails 3 for this issue. For existing projects, you can update the grails-wrapper.jar in the base of your project to an updated one. More details and updated jar files are here: https://grails.org/blog/2021-06-10-grails-wrapper-update.html |
I'm leaving this issue open for a bit to collect feedback on these updated jars |
Is there an updated grails-wrapper.jar file for Grails 2 as well? Please let me know, thank you for working on this |
@dacuna39 I have not witnessed this error in a Grails 2 application. If you are seeing this problem, please let us know what version of Grails you are using and the specific behavior you are seeing |
@JasonTypesCodes I'm using grails 2.4.5. I updated the repo urls
It works on local but this error occurs on CI
|
@dacuna39 this appears to be an issue establishing the TLS connection. I don't know the details of your CI machine or which version of Java you are using. If you are on Java 7, the suggestion in this comment may help: apache/grails-core#11825 (comment) If you continue to experience issues, please open a new issue with the complete stacktrace and runtime information so we can look into it further |
@JasonTypesCodes That comment's solution worked. It was indeed the TLS on Java 7, I must have missed that comment. Thanks for the help |
I think we can close this issue. If additional problems are encountered, please open a new issue. Thank you. |
Discovered during apache/grails-core#11825
With the $HOME/.grails/wrapper cache I can run the ./grailsw locally or in our pipelines and everything works, but when there is no cache and the grailsw is run for the first time I receive this message:
The text was updated successfully, but these errors were encountered: