prometheus-metrics-exposition-formats-1.3.6.pom 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <?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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <parent>
  4. <artifactId>client_java</artifactId>
  5. <groupId>io.prometheus</groupId>
  6. <version>1.3.6</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <artifactId>prometheus-metrics-exposition-formats</artifactId>
  10. <packaging>bundle</packaging>
  11. <name>Prometheus Metrics Exposition Formats</name>
  12. <description>Prometheus exposition formats.</description>
  13. <build>
  14. <plugins>
  15. <plugin>
  16. <groupId>org.codehaus.mojo</groupId>
  17. <artifactId>build-helper-maven-plugin</artifactId>
  18. <executions>
  19. <execution>
  20. <id>regex-property</id>
  21. <goals>
  22. <goal>regex-property</goal>
  23. </goals>
  24. <configuration>
  25. <name>protobuf-java.string-version</name>
  26. <value>${protobuf-java.version}</value>
  27. <regex>\.</regex>
  28. <replacement>_</replacement>
  29. <failIfNoMatch>true</failIfNoMatch>
  30. </configuration>
  31. </execution>
  32. <execution>
  33. <id>negate-prop</id>
  34. <phase>initialize</phase>
  35. <goals>
  36. <goal>bsh-property</goal>
  37. </goals>
  38. <configuration>
  39. <source>skip.protobuf.generation = !"true".equals(System.getenv("PROTO_GENERATION"));</source>
  40. <properties>
  41. <property>skip.protobuf.generation</property>
  42. </properties>
  43. </configuration>
  44. </execution>
  45. <execution>
  46. <id>add-source</id>
  47. <phase>generate-sources</phase>
  48. <goals>
  49. <goal>add-source</goal>
  50. </goals>
  51. <configuration>
  52. <sources>
  53. <source>src/main/generated/</source>
  54. </sources>
  55. </configuration>
  56. </execution>
  57. </executions>
  58. </plugin>
  59. <plugin>
  60. <groupId>org.codehaus.mojo</groupId>
  61. <artifactId>exec-maven-plugin</artifactId>
  62. <executions>
  63. <execution>
  64. <id>Generate Protobuf</id>
  65. <phase>generate-sources</phase>
  66. <goals>
  67. <goal>exec</goal>
  68. </goals>
  69. <configuration>
  70. <skip>${skip.protobuf.generation}</skip>
  71. <executable>${project.basedir}/generate-protobuf.sh</executable>
  72. <arguments>
  73. <argument>${project.basedir}/src/main/generated</argument>
  74. <argument>${protobuf-java.string-version}</argument>
  75. </arguments>
  76. </configuration>
  77. </execution>
  78. </executions>
  79. </plugin>
  80. <plugin>
  81. <artifactId>maven-javadoc-plugin</artifactId>
  82. <configuration>
  83. <sourcepath>src/main/java;src/main/generated</sourcepath>
  84. </configuration>
  85. </plugin>
  86. <plugin>
  87. <artifactId>maven-shade-plugin</artifactId>
  88. <executions>
  89. <execution>
  90. <phase>package</phase>
  91. <goals>
  92. <goal>shade</goal>
  93. </goals>
  94. <configuration>
  95. <shadeSourcesContent>true</shadeSourcesContent>
  96. <createSourcesJar>true</createSourcesJar>
  97. <artifactSet>
  98. <includes>
  99. <include>com.google.protobuf:protobuf-java</include>
  100. </includes>
  101. </artifactSet>
  102. <relocations>
  103. <relocation>
  104. <pattern>com.google.protobuf</pattern>
  105. <shadedPattern>io.prometheus.metrics.shaded.com_google_protobuf_${protobuf-java.string-version}</shadedPattern>
  106. </relocation>
  107. </relocations>
  108. <filters>
  109. <filter>
  110. <artifact>com.google.protobuf:protobuf-java</artifact>
  111. <excludes>
  112. <exclude>META-INF/maven/com.google.protobuf/**</exclude>
  113. <exclude>**/*.proto</exclude>
  114. <exclude>META-INF/MANIFEST.MF</exclude>
  115. </excludes>
  116. </filter>
  117. </filters>
  118. </configuration>
  119. </execution>
  120. </executions>
  121. </plugin>
  122. </plugins>
  123. </build>
  124. <dependencies>
  125. <dependency>
  126. <groupId>io.prometheus</groupId>
  127. <artifactId>prometheus-metrics-exposition-textformats</artifactId>
  128. <version>1.3.6</version>
  129. <scope>compile</scope>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.google.code.findbugs</groupId>
  133. <artifactId>jsr305</artifactId>
  134. <version>3.0.2</version>
  135. <scope>provided</scope>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.junit.jupiter</groupId>
  139. <artifactId>junit-jupiter-engine</artifactId>
  140. <version>5.11.4</version>
  141. <scope>test</scope>
  142. <exclusions>
  143. <exclusion>
  144. <artifactId>junit-platform-engine</artifactId>
  145. <groupId>org.junit.platform</groupId>
  146. </exclusion>
  147. <exclusion>
  148. <artifactId>junit-jupiter-api</artifactId>
  149. <groupId>org.junit.jupiter</groupId>
  150. </exclusion>
  151. <exclusion>
  152. <artifactId>apiguardian-api</artifactId>
  153. <groupId>org.apiguardian</groupId>
  154. </exclusion>
  155. </exclusions>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.junit.jupiter</groupId>
  159. <artifactId>junit-jupiter-params</artifactId>
  160. <version>5.11.4</version>
  161. <scope>test</scope>
  162. <exclusions>
  163. <exclusion>
  164. <artifactId>junit-jupiter-api</artifactId>
  165. <groupId>org.junit.jupiter</groupId>
  166. </exclusion>
  167. <exclusion>
  168. <artifactId>apiguardian-api</artifactId>
  169. <groupId>org.apiguardian</groupId>
  170. </exclusion>
  171. </exclusions>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.mockito</groupId>
  175. <artifactId>mockito-core</artifactId>
  176. <version>5.15.2</version>
  177. <scope>test</scope>
  178. <exclusions>
  179. <exclusion>
  180. <artifactId>byte-buddy</artifactId>
  181. <groupId>net.bytebuddy</groupId>
  182. </exclusion>
  183. <exclusion>
  184. <artifactId>byte-buddy-agent</artifactId>
  185. <groupId>net.bytebuddy</groupId>
  186. </exclusion>
  187. <exclusion>
  188. <artifactId>objenesis</artifactId>
  189. <groupId>org.objenesis</groupId>
  190. </exclusion>
  191. </exclusions>
  192. </dependency>
  193. <dependency>
  194. <groupId>org.assertj</groupId>
  195. <artifactId>assertj-core</artifactId>
  196. <version>3.27.3</version>
  197. <scope>test</scope>
  198. <exclusions>
  199. <exclusion>
  200. <artifactId>byte-buddy</artifactId>
  201. <groupId>net.bytebuddy</groupId>
  202. </exclusion>
  203. </exclusions>
  204. </dependency>
  205. <dependency>
  206. <groupId>com.google.guava</groupId>
  207. <artifactId>guava</artifactId>
  208. <version>33.4.0-jre</version>
  209. <scope>test</scope>
  210. <exclusions>
  211. <exclusion>
  212. <artifactId>failureaccess</artifactId>
  213. <groupId>com.google.guava</groupId>
  214. </exclusion>
  215. <exclusion>
  216. <artifactId>listenablefuture</artifactId>
  217. <groupId>com.google.guava</groupId>
  218. </exclusion>
  219. <exclusion>
  220. <artifactId>checker-qual</artifactId>
  221. <groupId>org.checkerframework</groupId>
  222. </exclusion>
  223. <exclusion>
  224. <artifactId>error_prone_annotations</artifactId>
  225. <groupId>com.google.errorprone</groupId>
  226. </exclusion>
  227. <exclusion>
  228. <artifactId>j2objc-annotations</artifactId>
  229. <groupId>com.google.j2objc</groupId>
  230. </exclusion>
  231. </exclusions>
  232. </dependency>
  233. <dependency>
  234. <groupId>org.slf4j</groupId>
  235. <artifactId>slf4j-simple</artifactId>
  236. <version>2.0.16</version>
  237. <scope>test</scope>
  238. <exclusions>
  239. <exclusion>
  240. <artifactId>slf4j-api</artifactId>
  241. <groupId>org.slf4j</groupId>
  242. </exclusion>
  243. </exclusions>
  244. </dependency>
  245. <dependency>
  246. <groupId>org.junit-pioneer</groupId>
  247. <artifactId>junit-pioneer</artifactId>
  248. <version>2.3.0</version>
  249. <scope>test</scope>
  250. <exclusions>
  251. <exclusion>
  252. <artifactId>junit-platform-launcher</artifactId>
  253. <groupId>org.junit.platform</groupId>
  254. </exclusion>
  255. <exclusion>
  256. <artifactId>junit-jupiter-api</artifactId>
  257. <groupId>org.junit.jupiter</groupId>
  258. </exclusion>
  259. </exclusions>
  260. </dependency>
  261. </dependencies>
  262. <properties>
  263. <automatic.module.name>io.prometheus.metrics.expositionformats</automatic.module.name>
  264. <protobuf-java.version>4.29.3</protobuf-java.version>
  265. </properties>
  266. </project>