Skip to content

Commit 5177890

Browse files
committed
Moves github action system property to a profile
1 parent fb2a32b commit 5177890

File tree

1 file changed

+25
-14
lines changed
  • spring-cloud-gateway-server-mvc

1 file changed

+25
-14
lines changed

spring-cloud-gateway-server-mvc/pom.xml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -147,18 +147,29 @@
147147
</dependency>
148148
</dependencies>
149149

150-
<build>
151-
<plugins>
152-
<plugin>
153-
<groupId>org.apache.maven.plugins</groupId>
154-
<artifactId>maven-surefire-plugin</artifactId>
155-
<configuration>
156-
<systemPropertyVariables>
157-
<!-- TODO: github actions fails with restricted header host -->
158-
<jdk.httpclient.allowRestrictedHeaders>host</jdk.httpclient.allowRestrictedHeaders>
159-
</systemPropertyVariables>
160-
</configuration>
161-
</plugin>
162-
</plugins>
163-
</build>
150+
<profiles>
151+
<profile>
152+
<id>github_actions</id>
153+
<!-- TODO: github actions fails with restricted header host -->
154+
<activation>
155+
<property>
156+
<name>env.GITHUB_ACTIONS</name>
157+
<value>true</value>
158+
</property>
159+
</activation>
160+
<build>
161+
<plugins>
162+
<plugin>
163+
<groupId>org.apache.maven.plugins</groupId>
164+
<artifactId>maven-surefire-plugin</artifactId>
165+
<configuration>
166+
<systemPropertyVariables>
167+
<jdk.httpclient.allowRestrictedHeaders>host</jdk.httpclient.allowRestrictedHeaders>
168+
</systemPropertyVariables>
169+
</configuration>
170+
</plugin>
171+
</plugins>
172+
</build>
173+
</profile>
174+
</profiles>
164175
</project>

0 commit comments

Comments
 (0)