Skip to content

Commit 96f5a40

Browse files
authored
fix gh pages (#1278)
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent 7016bf7 commit 96f5a40

File tree

1 file changed

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

1 file changed

+31
-9
lines changed

prometheus-metrics-exposition-formats/pom.xml

Lines changed: 31 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,34 @@
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+
<!-- just to make sure that default profile is only activated if no profiles are specified -->
42+
<profile>
43+
<id>javadoc</id>
44+
</profile>
45+
<profile>
46+
<id>release</id>
47+
</profile>
48+
<profile>
49+
<id>default</id>
50+
<activation>
51+
<activeByDefault>true</activeByDefault>
52+
</activation>
53+
<dependencies>
54+
<!-- GH pages and release task try to resolve this and fail -->
55+
<dependency>
56+
<groupId>io.prometheus</groupId>
57+
<artifactId>prometheus-metrics-exposition-textformats</artifactId>
58+
<version>${project.version}</version>
59+
<scope>test</scope>
60+
<type>test-jar</type>
61+
</dependency>
62+
</dependencies>
63+
</profile>
64+
</profiles>
65+
4666
<build>
4767
<plugins>
4868
<plugin>
@@ -69,7 +89,9 @@
6989
<goal>bsh-property</goal>
7090
</goals>
7191
<configuration>
72-
<source>skip.protobuf.generation = !"true".equals(System.getenv("PROTO_GENERATION"));</source>
92+
<source>skip.protobuf.generation =
93+
!"true".equals(System.getenv("PROTO_GENERATION"));
94+
</source>
7395
<properties>
7496
<property>skip.protobuf.generation</property>
7597
</properties>

0 commit comments

Comments
 (0)