Skip to content

Commit fe2b6dc

Browse files
committed
Add repos so publish can be found for forge
1 parent b4d6141 commit fe2b6dc

File tree

2 files changed

+61
-30
lines changed

2 files changed

+61
-30
lines changed

grails-forge/buildSrc/build.gradle

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,6 @@ plugins {
2323
id 'org.apache.grails.buildsrc.properties'
2424
}
2525

26-
repositories {
27-
mavenCentral()
28-
maven { url = 'https://repo.grails.org/grails/restricted' }
29-
maven {
30-
url = 'https://repository.apache.org/content/groups/snapshots'
31-
content {
32-
includeVersionByRegex('org[.]apache[.]grails.*', '.*', '.*-SNAPSHOT')
33-
includeVersionByRegex('org[.]apache[.]groovy.*', '.*', '.*-SNAPSHOT')
34-
}
35-
}
36-
maven {
37-
url = 'https://repository.apache.org/content/groups/staging'
38-
content {
39-
includeGroupByRegex('org[.]apache[.]grails.*')
40-
}
41-
mavenContent {
42-
releasesOnly()
43-
}
44-
}
45-
maven {
46-
url = 'https://central.sonatype.com/repository/maven-snapshots'
47-
content {
48-
includeVersionByRegex('cloud[.]wondrify.*', '.*', '.*-SNAPSHOT')
49-
}
50-
mavenContent {
51-
snapshotsOnly()
52-
}
53-
}
54-
}
55-
5626
configurations.configureEach {
5727
exclude group: 'io.github.groovylang.groovydoc', module: 'io.github.groovylang.groovydoc.gradle.plugin'
5828
}

grails-forge/buildSrc/settings.gradle

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,69 @@ pluginManagement {
2020
includeBuild('../../build-logic') {
2121
name = 'build-logic-root'
2222
}
23+
repositories {
24+
mavenCentral()
25+
maven { url = 'https://repo.grails.org/grails/restricted' }
26+
maven {
27+
url = 'https://repository.apache.org/content/groups/snapshots'
28+
content {
29+
includeVersionByRegex('org[.]apache[.]grails.*', '.*', '.*-SNAPSHOT')
30+
includeVersionByRegex('org[.]apache[.]groovy.*', '.*', '.*-SNAPSHOT')
31+
}
32+
}
33+
maven {
34+
url = 'https://repository.apache.org/content/groups/staging'
35+
content {
36+
includeGroupByRegex('org[.]apache[.]grails.*')
37+
}
38+
mavenContent {
39+
releasesOnly()
40+
}
41+
}
42+
maven {
43+
url = 'https://central.sonatype.com/repository/maven-snapshots'
44+
content {
45+
includeVersionByRegex('cloud[.]wondrify.*', '.*', '.*-SNAPSHOT')
46+
}
47+
mavenContent {
48+
snapshotsOnly()
49+
}
50+
}
51+
}
2352
}
2453

2554
includeBuild('../../build-logic') {
2655
name = 'build-logic-root'
2756
}
57+
58+
dependencyResolutionManagement {
59+
repositories {
60+
mavenCentral()
61+
maven { url = 'https://repo.grails.org/grails/restricted' }
62+
maven {
63+
url = 'https://repository.apache.org/content/groups/snapshots'
64+
content {
65+
includeVersionByRegex('org[.]apache[.]grails.*', '.*', '.*-SNAPSHOT')
66+
includeVersionByRegex('org[.]apache[.]groovy.*', '.*', '.*-SNAPSHOT')
67+
}
68+
}
69+
maven {
70+
url = 'https://repository.apache.org/content/groups/staging'
71+
content {
72+
includeGroupByRegex('org[.]apache[.]grails.*')
73+
}
74+
mavenContent {
75+
releasesOnly()
76+
}
77+
}
78+
maven {
79+
url = 'https://central.sonatype.com/repository/maven-snapshots'
80+
content {
81+
includeVersionByRegex('cloud[.]wondrify.*', '.*', '.*-SNAPSHOT')
82+
}
83+
mavenContent {
84+
snapshotsOnly()
85+
}
86+
}
87+
}
88+
}

0 commit comments

Comments
 (0)