Skip to content

Commit ef3a088

Browse files
committed
Adjust repos so publish plugin's snapshot version can be found
1 parent 2a5c060 commit ef3a088

File tree

2 files changed

+66
-31
lines changed

2 files changed

+66
-31
lines changed

buildSrc/build.gradle

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -24,37 +24,6 @@ plugins {
2424

2525
compileJava.options.release = javaVersion.toString().toInteger()
2626

27-
repositories {
28-
// mavenLocal()
29-
maven {
30-
url = 'https://repository.apache.org/content/groups/snapshots'
31-
content {
32-
includeVersionByRegex('org[.]apache[.](grails|groovy).*', '.*', '.*SNAPSHOT')
33-
}
34-
}
35-
maven { url = 'https://repo.grails.org/grails/restricted' }
36-
maven {
37-
url = 'https://central.sonatype.com/repository/maven-snapshots'
38-
content {
39-
includeVersionByRegex('cloud[.]wondrify.*', '.*', '.*-SNAPSHOT')
40-
}
41-
mavenContent {
42-
snapshotsOnly()
43-
}
44-
}
45-
mavenCentral()
46-
gradlePluginPortal()
47-
maven {
48-
url = 'https://repository.apache.org/content/groups/staging'
49-
content {
50-
includeModuleByRegex('org[.]apache[.]grails[.]gradle', 'grails-publish')
51-
}
52-
mavenContent {
53-
releasesOnly()
54-
}
55-
}
56-
}
57-
5827
dependencies {
5928
implementation platform("org.apache.grails:grails-gradle-bom:$projectVersion")
6029
implementation 'org.apache.grails.gradle:grails-publish'

buildSrc/settings.gradle

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,74 @@ pluginManagement {
2020
includeBuild('../build-logic') {
2121
name = 'build-logic-root'
2222
}
23+
repositories {
24+
// because our publish plugin uses other plugins, those dependencies have to be resolvable
25+
// mavenLocal()
26+
mavenCentral()
27+
gradlePluginPortal()
28+
maven {
29+
url = 'https://repository.apache.org/content/groups/snapshots'
30+
content {
31+
includeVersionByRegex('org[.]apache[.]grails[.]gradle.*', '.*', '.*-SNAPSHOT')
32+
}
33+
mavenContent {
34+
snapshotsOnly()
35+
}
36+
}
37+
maven {
38+
url = 'https://central.sonatype.com/repository/maven-snapshots'
39+
content {
40+
includeVersionByRegex('cloud[.]wondrify.*', '.*', '.*-SNAPSHOT')
41+
}
42+
mavenContent {
43+
snapshotsOnly()
44+
}
45+
}
46+
maven {
47+
url = 'https://repository.apache.org/content/groups/staging'
48+
content {
49+
includeModuleByRegex('org[.]apache[.]grails[.]gradle', 'grails-publish')
50+
}
51+
mavenContent {
52+
releasesOnly()
53+
}
54+
}
55+
}
2356
}
2457

2558
includeBuild('../build-logic') {
2659
name = 'build-logic-root'
2760
}
61+
62+
dependencyResolutionManagement {
63+
repositories {
64+
// mavenLocal()
65+
maven {
66+
url = 'https://repository.apache.org/content/groups/snapshots'
67+
content {
68+
includeVersionByRegex('org[.]apache[.](grails|groovy).*', '.*', '.*SNAPSHOT')
69+
}
70+
}
71+
maven { url = 'https://repo.grails.org/grails/restricted' }
72+
maven {
73+
url = 'https://central.sonatype.com/repository/maven-snapshots'
74+
content {
75+
includeVersionByRegex('cloud[.]wondrify.*', '.*', '.*-SNAPSHOT')
76+
}
77+
mavenContent {
78+
snapshotsOnly()
79+
}
80+
}
81+
mavenCentral()
82+
gradlePluginPortal()
83+
maven {
84+
url = 'https://repository.apache.org/content/groups/staging'
85+
content {
86+
includeModuleByRegex('org[.]apache[.]grails[.]gradle', 'grails-publish')
87+
}
88+
mavenContent {
89+
releasesOnly()
90+
}
91+
}
92+
}
93+
}

0 commit comments

Comments
 (0)