Skip to content

Commit

Permalink
Grace: change to new profiles group id
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed Jan 8, 2024
1 parent 102d2db commit 1520049
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract class AbstractJarProfileRepository implements ProfileRepository {

protected final List<Profile> allProfiles = []
protected final Map<String, Profile> profilesByName = [:]
protected static final String DEFAULT_PROFILE_GROUPID = 'org.grails.profiles'
protected static final String DEFAULT_PROFILE_GROUPID = 'org.graceframework.profiles'

private final Set<URL> registeredUrls = []

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import org.grails.cli.profile.Profile
class MavenProfileRepository extends AbstractJarProfileRepository {

public static final GrailsRepositoryConfiguration DEFAULT_REPO = new GrailsRepositoryConfiguration(
'grailsCentral', new URI('https://repo.grails.org/grails/core'), true)
'mavenCentral', new URI('https://repo1.maven.org/maven2/'), false)

List<GrailsRepositoryConfiguration> repositoryConfigurations
AetherGrapeEngine grapeEngine
Expand Down Expand Up @@ -126,7 +126,7 @@ class MavenProfileRepository extends AbstractJarProfileRepository {
if (!resolved) {
List<Map> profiles = []
resolutionContext.managedDependencies.each { Dependency dep ->
if (dep.artifact.groupId == 'org.grails.profiles') {
if (dep.artifact.groupId == 'org.graceframework.profiles') {
profiles.add([group: dep.artifact.groupId, module: dep.artifact.artifactId])
}
}
Expand All @@ -136,7 +136,7 @@ class MavenProfileRepository extends AbstractJarProfileRepository {
grapeEngine.grab(profile)
}

def localData = new File(System.getProperty('user.home'), '/.m2/repository/org/grails/profiles')
def localData = new File(System.getProperty('user.home'), '/.m2/repository/org/graceframework/profiles')
if (localData.exists()) {
localData.eachDir { File dir ->
if (!dir.name.startsWith('.')) {
Expand Down

0 comments on commit 1520049

Please sign in to comment.