Skip to content

Commit 67c9640

Browse files
committed
fix gh pages
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent 7016bf7 commit 67c9640

File tree

1 file changed

+24
-9
lines changed
  • prometheus-metrics-exposition-formats

1 file changed

+24
-9
lines changed

prometheus-metrics-exposition-formats/pom.xml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
34
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
45
<modelVersion>4.0.0</modelVersion>
56

@@ -34,15 +35,27 @@
3435
<version>${protobuf-java.version}</version>
3536
</dependency>
3637

37-
<dependency>
38-
<groupId>io.prometheus</groupId>
39-
<artifactId>prometheus-metrics-exposition-textformats</artifactId>
40-
<version>${project.version}</version>
41-
<scope>test</scope>
42-
<type>test-jar</type>
43-
</dependency>
4438
</dependencies>
4539

40+
<profiles>
41+
<profile>
42+
<id>default</id>
43+
<activation>
44+
<activeByDefault>true</activeByDefault>
45+
</activation>
46+
<dependencies>
47+
<!-- GH pages and release task try to resolve this and fail -->
48+
<dependency>
49+
<groupId>io.prometheus</groupId>
50+
<artifactId>prometheus-metrics-exposition-textformats</artifactId>
51+
<version>${project.version}</version>
52+
<scope>test</scope>
53+
<type>test-jar</type>
54+
</dependency>
55+
</dependencies>
56+
</profile>
57+
</profiles>
58+
4659
<build>
4760
<plugins>
4861
<plugin>
@@ -69,7 +82,9 @@
6982
<goal>bsh-property</goal>
7083
</goals>
7184
<configuration>
72-
<source>skip.protobuf.generation = !"true".equals(System.getenv("PROTO_GENERATION"));</source>
85+
<source>skip.protobuf.generation =
86+
!"true".equals(System.getenv("PROTO_GENERATION"));
87+
</source>
7388
<properties>
7489
<property>skip.protobuf.generation</property>
7590
</properties>

0 commit comments

Comments
 (0)