Skip to content

Commit bd2d03a

Browse files
committed
ci: skip enforce-banned-duplicate-classes in gax-bom and first-party-dependencies
In #14142 and #14272, the enforcer was split into a fast PR check (enforce) and a release check (enforce-banned-duplicate-classes). Modules without this execution ID or rules fail with "No rules are configured". gax-bom and first-party-dependencies are POM-only packaging modules that inherit a released version of google-cloud-shared-config (1.17.0) from Maven Central to avoid monorepo publication ordering cycles. Because 1.17.0 does not define the enforce-banned-duplicate-classes execution, the ban-duplicate-classes release CI job failed on these two modules. Add an explicit skip execution for enforce-banned-duplicate-classes to both POMs, matching the existing pattern in native-image-shared-config and google-cloud-shared-config-parent.
1 parent b12deb1 commit bd2d03a

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

  • sdk-platform-java
    • gax-java/gax-bom
    • java-shared-dependencies/first-party-dependencies

‎sdk-platform-java/gax-java/gax-bom/pom.xml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,21 @@
120120
</execution>
121121
</executions>
122122
</plugin>
123+
<!-- This POM-only module inherits a released version of google-cloud-shared-config from Central
124+
which does not define the enforce-banned-duplicate-classes execution. Skip it here to prevent
125+
"No rules are configured" errors when invoking enforcer:enforce@enforce-banned-duplicate-classes. -->
126+
<plugin>
127+
<groupId>org.apache.maven.plugins</groupId>
128+
<artifactId>maven-enforcer-plugin</artifactId>
129+
<executions>
130+
<execution>
131+
<id>enforce-banned-duplicate-classes</id>
132+
<configuration>
133+
<skip>true</skip>
134+
</configuration>
135+
</execution>
136+
</executions>
137+
</plugin>
123138
</plugins>
124139
</build>
125140
</project>

‎sdk-platform-java/java-shared-dependencies/first-party-dependencies/pom.xml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,24 @@
7979
</dependency>
8080
</dependencies>
8181
</dependencyManagement>
82+
83+
<build>
84+
<plugins>
85+
<!-- This POM-only module inherits a released version of google-cloud-shared-config from Central
86+
which does not define the enforce-banned-duplicate-classes execution. Skip it here to prevent
87+
"No rules are configured" errors when invoking enforcer:enforce@enforce-banned-duplicate-classes. -->
88+
<plugin>
89+
<groupId>org.apache.maven.plugins</groupId>
90+
<artifactId>maven-enforcer-plugin</artifactId>
91+
<executions>
92+
<execution>
93+
<id>enforce-banned-duplicate-classes</id>
94+
<configuration>
95+
<skip>true</skip>
96+
</configuration>
97+
</execution>
98+
</executions>
99+
</plugin>
100+
</plugins>
101+
</build>
82102
</project>

0 commit comments

Comments
 (0)