Code reviewers at my company want to know -- what ...
# questions
l
Code reviewers at my company want to know -- what is the meaning of 'restricted' in the core co-ordinates for the grails repo in the generated build script?
Copy code
repositories {
    maven { url "<https://repo.grails.org/grails/restricted>" }
}
u
A message from kapa.ai
u
The 'restricted' repository at https://repo.grails.org/grails/restricted is a Maven repository maintained by the Grails project. It is used to host Grails core artifacts and dependencies that may not be available on Maven Central, including milestone, release candidate, and some third-party libraries required by Grails. This repository is referenced in generated build scripts to ensure all necessary Grails dependencies can be resolved, especially those not yet published to Maven Central or that require special access or licensing considerations. According to the official Grails documentation, the 'restricted' repo is included alongside Maven Central in the repositories block to provide access to Grails-specific artifacts. Would you like more detail on what types of artifacts are hosted there or how it differs from other Grails repositories? Sources: - the official Grails documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
u
The term "restricted" in the Grails repository URL (i.e., `https://repo.grails.org/grails/restricted`) refers to a new virtual repository introduced to replace the older
core
repository. According to the official Grails 7.0.0-M4 release announcement, the
restricted
repository was created to: - Replace
<https://repo.grails.org/grails/core>
in the longer term. - Significantly reduce the scope of the repository to help prevent the use of outdated libraries. This means that the
restricted
repository contains only a curated set of artifacts that are officially supported and maintained for recent Grails versions, rather than the broader and potentially outdated set that was available in the
core
repository. This change is part of an effort to improve dependency management and ensure that builds use up-to-date and secure libraries. You can find more details in the [Grails 7.0.0-M4 release announcement](https://grails.apache.org/blog/2025-06-10-grails-7-m4.html).
l
And.... both bots come through with a helpful answer
and just in time, too 🙂 (see parent thread)
p
That's why it depends on the context. For my question, none of them were helpful.