This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git


The following commit(s) were added to refs/heads/7.0.x by this push:
     new 6c9ce36a1e Ignore MavenRepositorySpec tests for SNAPSHOT Grails 
versions
6c9ce36a1e is described below

commit 6c9ce36a1ecfcf613c073c04264685c87104aa40
Author: James Fredley <[email protected]>
AuthorDate: Sun Oct 19 21:02:59 2025 -0400

    Ignore MavenRepositorySpec tests for SNAPSHOT Grails versions
    
    Added @IgnoreIf annotation to MavenRepositorySpec to skip tests when 
running against a SNAPSHOT Grails version, as the required grails-bom may not 
be published yet.
---
 .../org/grails/cli/profile/repository/MavenRepositorySpec.groovy    | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/grails-shell-cli/src/test/groovy/org/grails/cli/profile/repository/MavenRepositorySpec.groovy
 
b/grails-shell-cli/src/test/groovy/org/grails/cli/profile/repository/MavenRepositorySpec.groovy
index 9060670f07..9e4228a96d 100644
--- 
a/grails-shell-cli/src/test/groovy/org/grails/cli/profile/repository/MavenRepositorySpec.groovy
+++ 
b/grails-shell-cli/src/test/groovy/org/grails/cli/profile/repository/MavenRepositorySpec.groovy
@@ -18,11 +18,17 @@
  */
 package org.grails.cli.profile.repository
 
+import grails.util.Environment
+import spock.lang.IgnoreIf
 import spock.lang.Specification
 
 /**
  * @author graemerocher
  */
+
+// Note: These tests will fail on a new SNAPSHOT version until the 
corresponding
+// grails-bom has been published for the first time.
+@IgnoreIf({ Environment.grailsVersion?.endsWith('SNAPSHOT') })
 class MavenRepositorySpec extends Specification {
 
     void "Test resolve profile"() {

Reply via email to