File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ rest-api-plugin=3.2.0
44base =3.2.0
55plugin =3.2.0
66web-plugin =3.2.0
7- web =3.2.0
7+ web =3.2.1.BUILD-SNAPSHOT
88profile =3.2.0
You can’t perform that action at this time.
0 commit comments