client_java-1.3.3.pom 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  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"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <packaging>pom</packaging>
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>io.prometheus</groupId>
  7. <artifactId>client_java</artifactId>
  8. <version>1.3.3</version>
  9. <name>Prometheus Metrics Library</name>
  10. <url>http://github.com/prometheus/client_java</url>
  11. <description>
  12. The Prometheus Java Metrics Library
  13. </description>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <automatic.module.name>--module-name-need-to-be-overriden--</automatic.module.name>
  17. <junit-jupiter.version>5.11.3</junit-jupiter.version>
  18. <otel.instrumentation.version>2.9.0-alpha</otel.instrumentation.version>
  19. <java.version>8</java.version>
  20. <jacoco.line-coverage>0.70</jacoco.line-coverage>
  21. <coverage.skip>false</coverage.skip>
  22. <warnings>-Werror</warnings>
  23. </properties>
  24. <licenses>
  25. <license>
  26. <name>The Apache Software License, Version 2.0</name>
  27. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  28. <distribution>repo</distribution>
  29. </license>
  30. </licenses>
  31. <scm>
  32. <connection>scm:git:git@github.com:prometheus/client_java.git</connection>
  33. <developerConnection>scm:git:git@github.com:prometheus/client_java.git</developerConnection>
  34. <url>git@github.com:prometheus/client_java.git</url>
  35. <tag>HEAD</tag>
  36. </scm>
  37. <developers>
  38. <developer>
  39. <id>fstab</id>
  40. <name>Fabian Stäber</name>
  41. <email>fabian@fstab.de</email>
  42. </developer>
  43. <developer>
  44. <id>zeitlinger</id>
  45. <name>Gregor Zeitlinger</name>
  46. <email>gregor.zeitlinger@grafana.com</email>
  47. </developer>
  48. <developer>
  49. <id>dhoard</id>
  50. <name>Doug Hoard</name>
  51. <email>doug.hoard@gmail.com</email>
  52. </developer>
  53. </developers>
  54. <modules>
  55. <module>prometheus-metrics-bom</module>
  56. <module>prometheus-metrics-core</module>
  57. <module>prometheus-metrics-config</module>
  58. <module>prometheus-metrics-model</module>
  59. <module>prometheus-metrics-tracer</module>
  60. <module>prometheus-metrics-exposition-formats</module>
  61. <module>prometheus-metrics-exporter-common</module>
  62. <module>prometheus-metrics-exporter-servlet-jakarta</module>
  63. <module>prometheus-metrics-exporter-servlet-javax</module>
  64. <module>prometheus-metrics-exporter-httpserver</module>
  65. <module>prometheus-metrics-exporter-opentelemetry</module>
  66. <module>prometheus-metrics-exporter-pushgateway</module>
  67. <module>prometheus-metrics-instrumentation-caffeine</module>
  68. <module>prometheus-metrics-instrumentation-jvm</module>
  69. <module>prometheus-metrics-instrumentation-dropwizard5</module>
  70. <module>prometheus-metrics-instrumentation-guava</module>
  71. <module>prometheus-metrics-simpleclient-bridge</module>
  72. <module>otel-agent-resources</module>
  73. </modules>
  74. <dependencyManagement>
  75. <dependencies>
  76. <dependency>
  77. <groupId>com.google.guava</groupId>
  78. <artifactId>guava</artifactId>
  79. <version>33.3.1-jre</version>
  80. </dependency>
  81. </dependencies>
  82. </dependencyManagement>
  83. <dependencies>
  84. <dependency>
  85. <groupId>org.junit.jupiter</groupId>
  86. <artifactId>junit-jupiter-engine</artifactId>
  87. <version>${junit-jupiter.version}</version>
  88. <scope>test</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.junit.jupiter</groupId>
  92. <artifactId>junit-jupiter-params</artifactId>
  93. <version>${junit-jupiter.version}</version>
  94. <scope>test</scope>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.mockito</groupId>
  98. <artifactId>mockito-core</artifactId>
  99. <version>5.14.2</version>
  100. <scope>test</scope>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.assertj</groupId>
  104. <artifactId>assertj-core</artifactId>
  105. <version>3.26.3</version>
  106. <scope>test</scope>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.google.guava</groupId>
  110. <artifactId>guava</artifactId>
  111. <scope>test</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.slf4j</groupId>
  115. <artifactId>slf4j-simple</artifactId>
  116. <version>2.0.16</version>
  117. <scope>test</scope>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.junit-pioneer</groupId>
  121. <artifactId>junit-pioneer</artifactId>
  122. <version>2.3.0</version>
  123. <scope>test</scope>
  124. </dependency>
  125. </dependencies>
  126. <build>
  127. <pluginManagement>
  128. <plugins>
  129. <!-- Add plugin versions for reproducible builds. Versions for default bindings are taken from -->
  130. <!-- https://github.com/apache/maven/tree/maven-3.8.1/maven-core/src/main/resources/META-INF/plexus -->
  131. <plugin>
  132. <artifactId>maven-install-plugin</artifactId>
  133. <version>3.1.3</version>
  134. </plugin>
  135. <plugin>
  136. <artifactId>maven-resources-plugin</artifactId>
  137. <version>3.3.1</version>
  138. </plugin>
  139. <plugin>
  140. <artifactId>maven-compiler-plugin</artifactId>
  141. <version>3.13.0</version>
  142. </plugin>
  143. <plugin>
  144. <artifactId>maven-surefire-plugin</artifactId>
  145. <version>3.5.2</version>
  146. </plugin>
  147. <plugin>
  148. <artifactId>maven-jar-plugin</artifactId>
  149. <version>3.4.2</version>
  150. </plugin>
  151. <plugin>
  152. <artifactId>maven-deploy-plugin</artifactId>
  153. <version>3.1.3</version>
  154. </plugin>
  155. <plugin>
  156. <artifactId>maven-clean-plugin</artifactId>
  157. <version>3.4.0</version>
  158. </plugin>
  159. <plugin>
  160. <artifactId>maven-site-plugin</artifactId>
  161. <version>3.21.0</version>
  162. </plugin>
  163. <!-- Plugins with groupId org.apache.maven.plugins that are not part of default bindings. -->
  164. <plugin>
  165. <artifactId>maven-shade-plugin</artifactId>
  166. <version>3.6.0</version>
  167. </plugin>
  168. <plugin>
  169. <artifactId>maven-failsafe-plugin</artifactId>
  170. <version>3.5.2</version>
  171. </plugin>
  172. <plugin>
  173. <artifactId>maven-dependency-plugin</artifactId>
  174. <version>3.8.1</version>
  175. </plugin>
  176. <plugin>
  177. <artifactId>maven-javadoc-plugin</artifactId>
  178. <version>3.11.1</version>
  179. </plugin>
  180. <plugin>
  181. <artifactId>maven-gpg-plugin</artifactId>
  182. <version>3.2.7</version>
  183. </plugin>
  184. <plugin>
  185. <artifactId>maven-source-plugin</artifactId>
  186. <version>3.3.1</version>
  187. </plugin>
  188. <plugin>
  189. <artifactId>maven-enforcer-plugin</artifactId>
  190. <version>3.5.0</version>
  191. </plugin>
  192. <plugin>
  193. <groupId>com.diffplug.spotless</groupId>
  194. <artifactId>spotless-maven-plugin</artifactId>
  195. <version>2.43.0</version>
  196. </plugin>
  197. </plugins>
  198. </pluginManagement>
  199. <plugins>
  200. <plugin>
  201. <groupId>com.diffplug.spotless</groupId>
  202. <artifactId>spotless-maven-plugin</artifactId>
  203. <configuration>
  204. <java>
  205. <googleJavaFormat/>
  206. </java>
  207. </configuration>
  208. <executions>
  209. <execution>
  210. <phase>verify</phase>
  211. <goals>
  212. <goal>check</goal>
  213. </goals>
  214. </execution>
  215. </executions>
  216. </plugin>
  217. <plugin>
  218. <groupId>org.jacoco</groupId>
  219. <artifactId>jacoco-maven-plugin</artifactId>
  220. <version>0.8.12</version>
  221. <configuration>
  222. <skip>${coverage.skip}</skip>
  223. <excludes>
  224. <exclude>**/generated/**</exclude>
  225. <exclude>**/*BlockingRejectedExecutionHandler*</exclude>
  226. </excludes>
  227. </configuration>
  228. <executions>
  229. <execution>
  230. <goals>
  231. <goal>prepare-agent</goal>
  232. </goals>
  233. </execution>
  234. <execution>
  235. <id>report</id>
  236. <phase>test</phase>
  237. <goals>
  238. <goal>report</goal>
  239. </goals>
  240. </execution>
  241. <execution>
  242. <id>check</id>
  243. <goals>
  244. <goal>check</goal>
  245. </goals>
  246. <configuration>
  247. <rules>
  248. <rule>
  249. <element>CLASS</element>
  250. <limits>
  251. <limit>
  252. <counter>LINE</counter>
  253. <value>COVEREDRATIO</value>
  254. <minimum>${jacoco.line-coverage}</minimum>
  255. </limit>
  256. </limits>
  257. </rule>
  258. </rules>
  259. </configuration>
  260. </execution>
  261. </executions>
  262. </plugin>
  263. <plugin>
  264. <groupId>org.apache.maven.plugins</groupId>
  265. <artifactId>maven-enforcer-plugin</artifactId>
  266. <executions>
  267. <execution>
  268. <id>enforce-plugin-versions</id>
  269. <goals>
  270. <goal>enforce</goal>
  271. </goals>
  272. <configuration>
  273. <rules>
  274. <requirePluginVersions>
  275. <unCheckedPluginList>org.springframework.boot:spring-boot-maven-plugin
  276. </unCheckedPluginList>
  277. </requirePluginVersions>
  278. </rules>
  279. </configuration>
  280. </execution>
  281. </executions>
  282. </plugin>
  283. <plugin>
  284. <groupId>org.apache.felix</groupId>
  285. <artifactId>maven-bundle-plugin</artifactId>
  286. <version>5.1.9</version>
  287. <extensions>true</extensions>
  288. <configuration>
  289. <instructions>
  290. <Automatic-Module-Name>${automatic.module.name}</Automatic-Module-Name>
  291. </instructions>
  292. </configuration>
  293. </plugin>
  294. <plugin>
  295. <groupId>org.apache.maven.plugins</groupId>
  296. <artifactId>maven-surefire-plugin</artifactId>
  297. </plugin>
  298. <plugin>
  299. <artifactId>maven-compiler-plugin</artifactId>
  300. <configuration>
  301. <release>${java.version}</release>
  302. <source>${java.version}</source>
  303. <target>${java.version}</target>
  304. <testRelease>17</testRelease>
  305. <testSource>17</testSource>
  306. <testTarget>17</testTarget>
  307. <showWarnings>true</showWarnings>
  308. <compilerArgs>
  309. <arg>-Xlint:all,-serial,-processing,-options</arg>
  310. <arg>${warnings}</arg>
  311. <arg>-XDcompilePolicy=simple</arg>
  312. <arg>
  313. -Xplugin:ErrorProne
  314. -Xep:AlmostJavadoc:OFF
  315. -Xep:MissingSummary:OFF
  316. -Xep:LongDoubleConversion:OFF
  317. -Xep:StringSplitter:OFF
  318. -XepExcludedPaths:.*/generated/.*
  319. </arg>
  320. </compilerArgs>
  321. <annotationProcessorPaths>
  322. <path>
  323. <groupId>com.google.errorprone</groupId>
  324. <artifactId>error_prone_core</artifactId>
  325. <version>2.35.1</version>
  326. </path>
  327. <!-- Other annotation processors go here.
  328. If 'annotationProcessorPaths' is set, processors will no longer be
  329. discovered on the regular -classpath; see also 'Using Error Prone
  330. together with other annotation processors' below. -->
  331. </annotationProcessorPaths>
  332. </configuration>
  333. </plugin>
  334. <plugin>
  335. <groupId>org.codehaus.mojo</groupId>
  336. <artifactId>versions-maven-plugin</artifactId>
  337. <version>2.17.1</version>
  338. <configuration>
  339. <rulesUri>file://${project.basedir}/version-rules.xml</rulesUri>
  340. </configuration>
  341. </plugin>
  342. </plugins>
  343. </build>
  344. <reporting>
  345. <plugins>
  346. <plugin>
  347. <!-- maven-site-plugin 3.3 requires maven-project-info-reports-plugin < 3.0 -->
  348. <artifactId>maven-project-info-reports-plugin</artifactId>
  349. <version>3.8.0</version>
  350. </plugin>
  351. <plugin>
  352. <artifactId>maven-javadoc-plugin</artifactId>
  353. <reportSets>
  354. <reportSet>
  355. <id>aggregate</id>
  356. <inherited>false</inherited>
  357. <reports>
  358. <report>aggregate</report>
  359. </reports>
  360. </reportSet>
  361. <reportSet>
  362. <id>default</id>
  363. <reports>
  364. <report>javadoc</report>
  365. </reports>
  366. </reportSet>
  367. </reportSets>
  368. </plugin>
  369. </plugins>
  370. </reporting>
  371. <profiles>
  372. <profile>
  373. <id>default</id>
  374. <activation>
  375. <activeByDefault>true</activeByDefault>
  376. </activation>
  377. <modules>
  378. <module>examples</module>
  379. <module>benchmarks</module>
  380. <module>integration-tests</module>
  381. </modules>
  382. </profile>
  383. <profile>
  384. <id>javadoc</id>
  385. <build>
  386. <plugins>
  387. <plugin>
  388. <artifactId>maven-javadoc-plugin</artifactId>
  389. <configuration>
  390. <encoding>UTF-8</encoding>
  391. <docencoding>UTF-8</docencoding>
  392. <linksource>true</linksource>
  393. <noqualifier>all</noqualifier>
  394. <show>public</show>
  395. <excludePackageNames>io.prometheus.metrics.expositionformats.generated.*
  396. </excludePackageNames>
  397. <source>8</source>
  398. </configuration>
  399. </plugin>
  400. </plugins>
  401. </build>
  402. </profile>
  403. <profile>
  404. <id>release</id>
  405. <build>
  406. <plugins>
  407. <plugin>
  408. <groupId>org.apache.maven.plugins</groupId>
  409. <artifactId>maven-javadoc-plugin</artifactId>
  410. <executions>
  411. <execution>
  412. <id>attach-javadocs</id>
  413. <goals>
  414. <goal>jar</goal>
  415. </goals>
  416. </execution>
  417. </executions>
  418. </plugin>
  419. <plugin>
  420. <groupId>org.apache.maven.plugins</groupId>
  421. <artifactId>maven-gpg-plugin</artifactId>
  422. <executions>
  423. <execution>
  424. <id>sign-artifacts</id>
  425. <phase>verify</phase>
  426. <goals>
  427. <goal>sign</goal>
  428. </goals>
  429. <configuration>
  430. <gpgArguments>
  431. <arg>--pinentry-mode</arg>
  432. <arg>loopback</arg>
  433. </gpgArguments>
  434. </configuration>
  435. </execution>
  436. </executions>
  437. </plugin>
  438. <plugin>
  439. <groupId>org.apache.maven.plugins</groupId>
  440. <artifactId>maven-source-plugin</artifactId>
  441. <executions>
  442. <execution>
  443. <id>attach-sources</id>
  444. <goals>
  445. <goal>jar-no-fork</goal>
  446. </goals>
  447. </execution>
  448. </executions>
  449. </plugin>
  450. <plugin>
  451. <groupId>org.sonatype.central</groupId>
  452. <artifactId>central-publishing-maven-plugin</artifactId>
  453. <version>0.6.0</version>
  454. <extensions>true</extensions>
  455. <configuration>
  456. <publishingServerId>ossrh</publishingServerId>
  457. <autoPublish>true</autoPublish>
  458. <waitUntil>published</waitUntil>
  459. </configuration>
  460. </plugin>
  461. </plugins>
  462. </build>
  463. <distributionManagement>
  464. <snapshotRepository>
  465. <id>ossrh</id>
  466. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  467. </snapshotRepository>
  468. <repository>
  469. <id>ossrh</id>
  470. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  471. </repository>
  472. </distributionManagement>
  473. </profile>
  474. </profiles>
  475. </project>