You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by jd...@apache.org on 2026/04/30 12:59:15 UTC
(grails-core) 02/02: [skip ci] increase the performance of grails-shell-cli
This is an automated email from the ASF dual-hosted git repository.
jdaugherty pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit 7d9b826a61c56ded7cdede8e745abf5423b017bf
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Thu Apr 30 08:58:12 2026 -0400
[skip ci] increase the performance of grails-shell-cli
---
.../groovy/org/grails/cli/boot/GrailsDependencyVersions.groovy | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/grails-shell-cli/src/main/groovy/org/grails/cli/boot/GrailsDependencyVersions.groovy b/grails-shell-cli/src/main/groovy/org/grails/cli/boot/GrailsDependencyVersions.groovy
index 149a57428d..50e71d8745 100644
--- a/grails-shell-cli/src/main/groovy/org/grails/cli/boot/GrailsDependencyVersions.groovy
+++ b/grails-shell-cli/src/main/groovy/org/grails/cli/boot/GrailsDependencyVersions.groovy
@@ -56,8 +56,11 @@ class GrailsDependencyVersions implements DependencyManagement {
this(grape, [group: 'org.apache.grails', module: 'grails-bom', version: Environment.grailsVersion, type: 'pom'])
}
- GrailsDependencyVersions(GrapeEngine grape, Map<String, String> bomCoords) {
+ GrailsDependencyVersions(GrapeEngine grape, Map bomCoords) {
this.grapeEngine = grape
+ if (!bomCoords.containsKey('transitive')) {
+ bomCoords.put('transitive', false)
+ }
def results = grape.resolve(null, bomCoords)
for (URI u in results) {
@@ -106,7 +109,7 @@ class GrailsDependencyVersions implements DependencyManagement {
return
}
try {
- def results = grapeEngine.resolve(null, [group: groupId, module: artifactId, version: version, type: 'pom'])
+ def results = grapeEngine.resolve(null, [group: groupId, module: artifactId, version: version, type: 'pom', transitive: false])
for (URI u in results) {
def importedPom = new XmlSlurper().parseText(u.toURL().text)
addDependencyManagement(importedPom)