| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>client_java</artifactId>
- <groupId>io.prometheus</groupId>
- <version>1.3.6</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>prometheus-metrics-exposition-formats</artifactId>
- <packaging>bundle</packaging>
- <name>Prometheus Metrics Exposition Formats</name>
- <description>Prometheus exposition formats.</description>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>regex-property</id>
- <goals>
- <goal>regex-property</goal>
- </goals>
- <configuration>
- <name>protobuf-java.string-version</name>
- <value>${protobuf-java.version}</value>
- <regex>\.</regex>
- <replacement>_</replacement>
- <failIfNoMatch>true</failIfNoMatch>
- </configuration>
- </execution>
- <execution>
- <id>negate-prop</id>
- <phase>initialize</phase>
- <goals>
- <goal>bsh-property</goal>
- </goals>
- <configuration>
- <source>skip.protobuf.generation = !"true".equals(System.getenv("PROTO_GENERATION"));</source>
- <properties>
- <property>skip.protobuf.generation</property>
- </properties>
- </configuration>
- </execution>
- <execution>
- <id>add-source</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>add-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>src/main/generated/</source>
- </sources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>Generate Protobuf</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- <configuration>
- <skip>${skip.protobuf.generation}</skip>
- <executable>${project.basedir}/generate-protobuf.sh</executable>
- <arguments>
- <argument>${project.basedir}/src/main/generated</argument>
- <argument>${protobuf-java.string-version}</argument>
- </arguments>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <sourcepath>src/main/java;src/main/generated</sourcepath>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-shade-plugin</artifactId>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>shade</goal>
- </goals>
- <configuration>
- <shadeSourcesContent>true</shadeSourcesContent>
- <createSourcesJar>true</createSourcesJar>
- <artifactSet>
- <includes>
- <include>com.google.protobuf:protobuf-java</include>
- </includes>
- </artifactSet>
- <relocations>
- <relocation>
- <pattern>com.google.protobuf</pattern>
- <shadedPattern>io.prometheus.metrics.shaded.com_google_protobuf_${protobuf-java.string-version}</shadedPattern>
- </relocation>
- </relocations>
- <filters>
- <filter>
- <artifact>com.google.protobuf:protobuf-java</artifact>
- <excludes>
- <exclude>META-INF/maven/com.google.protobuf/**</exclude>
- <exclude>**/*.proto</exclude>
- <exclude>META-INF/MANIFEST.MF</exclude>
- </excludes>
- </filter>
- </filters>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>io.prometheus</groupId>
- <artifactId>prometheus-metrics-exposition-textformats</artifactId>
- <version>1.3.6</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>com.google.code.findbugs</groupId>
- <artifactId>jsr305</artifactId>
- <version>3.0.2</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter-engine</artifactId>
- <version>5.11.4</version>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <artifactId>junit-platform-engine</artifactId>
- <groupId>org.junit.platform</groupId>
- </exclusion>
- <exclusion>
- <artifactId>junit-jupiter-api</artifactId>
- <groupId>org.junit.jupiter</groupId>
- </exclusion>
- <exclusion>
- <artifactId>apiguardian-api</artifactId>
- <groupId>org.apiguardian</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter-params</artifactId>
- <version>5.11.4</version>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <artifactId>junit-jupiter-api</artifactId>
- <groupId>org.junit.jupiter</groupId>
- </exclusion>
- <exclusion>
- <artifactId>apiguardian-api</artifactId>
- <groupId>org.apiguardian</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- <version>5.15.2</version>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <artifactId>byte-buddy</artifactId>
- <groupId>net.bytebuddy</groupId>
- </exclusion>
- <exclusion>
- <artifactId>byte-buddy-agent</artifactId>
- <groupId>net.bytebuddy</groupId>
- </exclusion>
- <exclusion>
- <artifactId>objenesis</artifactId>
- <groupId>org.objenesis</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.assertj</groupId>
- <artifactId>assertj-core</artifactId>
- <version>3.27.3</version>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <artifactId>byte-buddy</artifactId>
- <groupId>net.bytebuddy</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- <version>33.4.0-jre</version>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <artifactId>failureaccess</artifactId>
- <groupId>com.google.guava</groupId>
- </exclusion>
- <exclusion>
- <artifactId>listenablefuture</artifactId>
- <groupId>com.google.guava</groupId>
- </exclusion>
- <exclusion>
- <artifactId>checker-qual</artifactId>
- <groupId>org.checkerframework</groupId>
- </exclusion>
- <exclusion>
- <artifactId>error_prone_annotations</artifactId>
- <groupId>com.google.errorprone</groupId>
- </exclusion>
- <exclusion>
- <artifactId>j2objc-annotations</artifactId>
- <groupId>com.google.j2objc</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-simple</artifactId>
- <version>2.0.16</version>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <artifactId>slf4j-api</artifactId>
- <groupId>org.slf4j</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.junit-pioneer</groupId>
- <artifactId>junit-pioneer</artifactId>
- <version>2.3.0</version>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <artifactId>junit-platform-launcher</artifactId>
- <groupId>org.junit.platform</groupId>
- </exclusion>
- <exclusion>
- <artifactId>junit-jupiter-api</artifactId>
- <groupId>org.junit.jupiter</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
- <properties>
- <automatic.module.name>io.prometheus.metrics.expositionformats</automatic.module.name>
- <protobuf-java.version>4.29.3</protobuf-java.version>
- </properties>
- </project>
|