Skip to content

Commit bc0d233

Browse files
committed
Use "web" snapshot profile
1 parent e98b4fe commit bc0d233

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

grails-bom/build.gradle

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,23 @@ publishing {
165165
mkp.dependency {
166166
mkp.groupId 'org.grails.plugins'
167167
mkp.artifactId plugin.key
168-
mkp.version( plugin.value )
168+
def version = plugin.value
169+
if(!isBuildSnapshot && version.toString().endsWith("-SNAPSHOT")) {
170+
throw new RuntimeException("Cannot have a snapshot dependency on a plugin [$plugin.key] for a release!")
171+
}
172+
mkp.version(version)
169173
}
170174
}
171175

172176
for(profile in profiles) {
173177
mkp.dependency {
174178
mkp.groupId 'org.grails.profiles'
175179
mkp.artifactId profile.key
176-
mkp.version( profile.value )
180+
def version = profile.value
181+
if(!isBuildSnapshot && version.toString().endsWith("-SNAPSHOT")) {
182+
throw new RuntimeException("Cannot have a snapshot dependency on a profile [$profile.key] for a release!")
183+
}
184+
mkp.version(version)
177185
}
178186
}
179187
}

grails-bom/profiles.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ rest-api-plugin=3.2.0
44
base=3.2.0
55
plugin=3.2.0
66
web-plugin=3.2.0
7-
web=3.2.0
7+
web=3.2.1.BUILD-SNAPSHOT
88
profile=3.2.0

0 commit comments

Comments
 (0)