Skip to content

Commit e47417b

Browse files
committed
Since there is no reliable way to read a list of available profiles, for the moment hard cod them
1 parent 9a5422b commit e47417b

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

grails-shell/src/main/groovy/org/grails/cli/profile/repository/MavenProfileRepository.groovy

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -121,23 +121,8 @@ class MavenProfileRepository extends AbstractJarProfileRepository {
121121

122122
if(!resolved) {
123123
def defaultProfileVersion = BuildSettings.isDevelopmentGrailsVersion() ? 'LATEST' : BuildSettings.grailsVersion
124-
List<String> profileNames = []
124+
List<String> profileNames = ['angular', 'rest-api', 'base','plugin','web-plugin', 'web'].sort()
125125
def grailsConsole = GrailsConsole.instance
126-
for(repo in repositoryConfigurations) {
127-
128-
def baseUri = repo.uri
129-
try {
130-
def text = new URL("${baseUri}/org/grails/profiles").text
131-
text.eachMatch(/<a href="([a-z-]+)\/">.+/) { List<String> it ->
132-
profileNames.add it[1]
133-
}
134-
}
135-
catch(Throwable e) {
136-
grailsConsole.error("Failed to list profiles from repority: $baseUri. Verify your internet connection and proxy settings and try again. Message: ${e.message}", e)
137-
}
138-
139-
}
140-
141126
for(name in profileNames) {
142127
try {
143128
grapeEngine.grab(group: 'org.grails.profiles', module: name, version: defaultProfileVersion)

0 commit comments

Comments
 (0)