grails-core: Unable to resolve dependencies -- https://repo.grails.org/grails/core returns 404
Go to start.grails.org, download an app.
Unzip it and run ./gradlew help
./gradlew help
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'myapp-2'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find org.grails:grails-gradle-plugin:4.0.10.
Searched in the following locations:
- https://repo.grails.org/grails/core/org/grails/grails-gradle-plugin/4.0.10/grails-gradle-plugin-4.0.10.pom
- https://repo.grails.org/grails/core/org/grails/grails-gradle-plugin/4.0.10/grails-gradle-plugin-4.0.10.jar
Required by:
project :
> Could not find gradle.plugin.com.github.erdi.webdriver-binaries:webdriver-binaries-gradle-plugin:2.0.
Searched in the following locations:
- https://repo.grails.org/grails/core/gradle/plugin/com/github/erdi/webdriver-binaries/webdriver-binaries-gradle-plugin/2.0/webdriver-binaries-gradle-plugin-2.0.pom
- https://repo.grails.org/grails/core/gradle/plugin/com/github/erdi/webdriver-binaries/webdriver-binaries-gradle-plugin/2.0/webdriver-binaries-gradle-plugin-2.0.jar
Required by:
project :
> Could not find org.grails.plugins:hibernate5:7.0.4.
Searched in the following locations:
- https://repo.grails.org/grails/core/org/grails/plugins/hibernate5/7.0.4/hibernate5-7.0.4.pom
- https://repo.grails.org/grails/core/org/grails/plugins/hibernate5/7.0.4/hibernate5-7.0.4.jar
Required by:
project :
> Could not find com.bertramlabs.plugins:asset-pipeline-gradle:3.2.4.
Searched in the following locations:
- https://repo.grails.org/grails/core/com/bertramlabs/plugins/asset-pipeline-gradle/3.2.4/asset-pipeline-gradle-3.2.4.pom
- https://repo.grails.org/grails/core/com/bertramlabs/plugins/asset-pipeline-gradle/3.2.4/asset-pipeline-gradle-3.2.4.jar
Required by:
project :
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 19
- Comments: 63 (21 by maintainers)
Commits related to this issue
- TEMPORARY WORKAROUND: repo.grails.org down See https://github.com/grails/grails-core/issues/11825 — committed to CohereHealth/grails-wrapper by amacleay-cohere 3 years ago
- Document our workaround explicitly Just codifying what's in https://github.com/grails/grails-core/issues/11825#issuecomment-856250177 — committed to CohereHealth/grails-wrapper by amacleay-cohere 3 years ago
- Update mavenRepo to fix grails error See https://github.com/grails/grails-core/issues/11825 — committed to GMOD/Apollo by garrettjstevens 3 years ago
It seems like somehow artifactory URL is changed to https://repo.grails.org/artifactory/core
The repository is currently back online. Thank you everyone for your patience as we work through these issues.
@danieljoeblack for me adding following repo worked in Grails 2.3.1
and with following command worked using Java7
grails -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 clean --stacktrace
Update: We still have validation to do but the repository is responding successfully to at least some scenarios that were problematic during the outage. I am not sure the issue if the issue is 100% resolved yet or not, but progress has been made.
grailsCentral (https://repo.grails.org/grails/core) appears to be down. It simply returns:
@ShurikAg Thank you, we are aware of current issues with the JFrog artifactory and we are in touch with the JFrog team to help us get the artifactory back online. We will share the further updates as soon as we get them.
Sorry for the inconvenience.
Grails 2.3 workaround seems to be to do:
Grails 2.5 workaround seems to be to do:
That overrides the defaults supplied by
org.codehaus.groovy.grails.resolve.config.RepositoriesConfigurer
@JasonTypesCodes Thank you for looking into this issue.
Do you have a sense of about how long this URL change will last? before it reverts back to “https://repo.grails.org/grails/core” ? We are trying to determine whether or not we need to re-release our plugins with the new URL, to avoid blocking users.
@cosenmarco We do not intend for this URL change to be permanent.
We have reached out to JFrog for assistance with this issue. We’ll update here when we have more information.
Workaround for existing projects: By setting the following in
build.gradle
the problem can be solved. Under linux a simple
sed -i 's|repo.grails.org/grails/core|repo.grails.org/artifactory/core|g' build.gradle
does the job 😉.Workaround for new projects If for example
grails create ...
command fails you have to add in your user home directory the fileUSER_HOME/.grails/settings.groovy
with the following content:After creating the new project, you still have to fix the
build.gradle
in the newly create project folder.DISCLAIMER: I can not guarantee that this is safe/a good idea as i am not a grails contributer! @puneetbehl could you confirm this or propose a better solution?
@martin-walsh Thank you, that is good information to have.
If the HTTP URLs do resume working without a redirect that will be for a limited period. I would not suggest reverting any updates you have already made to the HTTPS repository URLs. I would also strongly consider taking the time to update your remaining applications.
Will the old
http://
urls be restored (without redirect) or should we make plans to workaround this issue permanently?@luiszimmermann I created an issue for that here: https://github.com/grails/grails-wrapper/issues/7
Facing same issue when created a new Grails App with vue profile and try to run up
` A problem occurred configuring project ‘:server’.
Possible solution:
`
@ShurikAg That wrapper error can be resolved by using an updated grails-wrapper.jar.
Please see: https://grails.org/blog/2021-06-10-grails-wrapper-update.html
The issue for this bug is here: https://github.com/grails/grails-wrapper/issues/7
@jeffbrown now both URL’s are not available. So, basically, nothing works. even the workaround.
@luiszimmermann We were running into this yesterday and this is the workaround we used https://github.com/grails/grails-core/issues/11825#issuecomment-856250177
@JasonTypesCodes I’m running 2.3.9 for the record.
When I explicitly set the repo url to
https://repo.grails.org/grails/plugins/
I’m getting:Error Could not transfer artifact org.grails.plugins:tomcat:zip:7.0.53 from/to repo_grails_org_grails_plugins_ (https://repo.grails.org/grails/plugins/): peer not authenticated
Changing it to
http://repo.grails.org/grails/plugins/
I get:Could not transfer artifact org.grails.plugins:webxml:pom:1.4.1 from/to repo_grails_org_grails_plugins_ (http://repo.grails.org/grails/plugins/): Permanent Redirect (308)
Was the repo URL accessible via http before? It seems to force https now…
The issue seems to be partially resolved. 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 thegrailsw
are runned for the first time I receive this message:Looks like URL issues resolved now.
I can access https://repo.grails.org/grails/core/
Using
https://repo.grails.org/artifactory/core
should work for now.Affects legacy apps also. Grails 2 plugins are missing.
tomcat
,csv
,spring-security-core
etc.Is there a workaround for Grails 2 apps?
I believe all of the artifacts should be available at https://repo.grails.org/artifactory/core for now.
Can’t even run my projects. This is a blocking issue. Any workaround for existing projects??
Thanks in advance.