client_java-1.3.5.pom 22 KB

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