client_java-1.3.6.pom 21 KB

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