Skip to content

Commit 5ab0d44

Browse files
committed
Add source and javadoc to release
Signed-off-by: Fabian Stäber <fabian@fstab.de>
1 parent 4ad715e commit 5ab0d44

File tree

12 files changed

+921
-862
lines changed

12 files changed

+921
-862
lines changed

MAINTAINER_NOTES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,14 @@ Use the [Versions Maven Plugin](https://www.mojohaus.org/versions-maven-plugin/i
77
```
88
./mvnw versions:use-next-releases
99
```
10+
11+
## Release
12+
13+
```
14+
./mvnw release:prepare -DreleaseVersion=0.17.0 -DdevelopmentVersion=0.17.1-SNAPSHOT
15+
./mvnw release:perform -DreleaseVersion=0.17.0 -DdevelopmentVersion=0.17.1-SNAPSHOT
16+
```
17+
18+
`release:prepare` does Github tags and commits, while `release:perform` signs the artifacts and uploads them to the staging repositoring on [https://oss.sonatype.org](https://oss.sonatype.org).
19+
20+
After that, manually verify the uploaded artifacts on [https://oss.sonatype.org/#stagingRepositories](https://oss.sonatype.org/#stagingRepositories), click `Close` to trigger Sonatype's verification, and then `Release`.

collector/pom.xml

Lines changed: 60 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,66 @@
1-
<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">
2-
<modelVersion>4.0.0</modelVersion>
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/maven-v4_0_0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
35

4-
<parent>
5-
<groupId>io.prometheus.jmx</groupId>
6-
<artifactId>parent</artifactId>
7-
<version>0.16.2-SNAPSHOT</version>
8-
</parent>
6+
<parent>
7+
<groupId>io.prometheus.jmx</groupId>
8+
<artifactId>parent</artifactId>
9+
<version>0.16.2-SNAPSHOT</version>
10+
</parent>
911

10-
<artifactId>collector</artifactId>
11-
<name>Prometheus JMX Exporter - Collector</name>
12-
<description>
13-
See https://github.com/prometheus/jmx_exporter/blob/master/README.md
14-
</description>
15-
<url>http://github.com/prometheus/jmx_exporter</url>
12+
<artifactId>collector</artifactId>
13+
<name>Prometheus JMX Exporter - Collector</name>
14+
<description>
15+
See https://github.com/prometheus/jmx_exporter/blob/master/README.md
16+
</description>
17+
<url>http://github.com/prometheus/jmx_exporter</url>
1618

17-
<dependencies>
18-
<dependency>
19-
<groupId>io.prometheus</groupId>
20-
<artifactId>simpleclient</artifactId>
21-
</dependency>
22-
<dependency>
23-
<groupId>junit</groupId>
24-
<artifactId>junit</artifactId>
25-
<version>4.13.2</version>
26-
<scope>test</scope>
27-
</dependency>
28-
<dependency>
29-
<groupId>org.yaml</groupId>
30-
<artifactId>snakeyaml</artifactId>
31-
<version>1.30</version> <!-- The Java 6 build overrides this with 1.23. -->
32-
</dependency>
33-
</dependencies>
19+
<licenses>
20+
<license>
21+
<name>The Apache Software License, Version 2.0</name>
22+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
23+
<distribution>repo</distribution>
24+
</license>
25+
</licenses>
3426

35-
<build>
36-
<plugins>
37-
<plugin>
38-
<artifactId>maven-surefire-plugin</artifactId>
39-
<configuration>
40-
<systemProperties>
41-
<property>
42-
<name>java.util.logging.config.file</name>
43-
<value>src/test/resources/logging.properties</value>
44-
</property>
45-
</systemProperties>
46-
</configuration>
47-
</plugin>
48-
</plugins>
49-
</build>
27+
<properties>
28+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
29+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
30+
</properties>
31+
32+
<dependencies>
33+
<dependency>
34+
<groupId>io.prometheus</groupId>
35+
<artifactId>simpleclient</artifactId>
36+
</dependency>
37+
<dependency>
38+
<groupId>junit</groupId>
39+
<artifactId>junit</artifactId>
40+
<version>4.13.2</version>
41+
<scope>test</scope>
42+
</dependency>
43+
<dependency>
44+
<groupId>org.yaml</groupId>
45+
<artifactId>snakeyaml</artifactId>
46+
<version>1.30</version> <!-- The Java 6 build overrides this with 1.23. -->
47+
</dependency>
48+
</dependencies>
49+
50+
<build>
51+
<plugins>
52+
<plugin>
53+
<artifactId>maven-surefire-plugin</artifactId>
54+
<configuration>
55+
<systemProperties>
56+
<property>
57+
<name>java.util.logging.config.file</name>
58+
<value>src/test/resources/logging.properties</value>
59+
</property>
60+
</systemProperties>
61+
</configuration>
62+
</plugin>
63+
</plugins>
64+
</build>
5065

51-
<properties>
52-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
53-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
54-
</properties>
5566
</project>
Lines changed: 50 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,56 @@
11
<?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/xsd/maven-4.0.0.xsd">
3-
<modelVersion>4.0.0</modelVersion>
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/maven-v4_0_0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
45

5-
<parent>
6-
<groupId>io.prometheus.jmx</groupId>
7-
<artifactId>integration_tests</artifactId>
8-
<version>0.16.2-SNAPSHOT</version>
9-
</parent>
6+
<parent>
7+
<groupId>io.prometheus.jmx</groupId>
8+
<artifactId>integration_tests</artifactId>
9+
<version>0.16.2-SNAPSHOT</version>
10+
</parent>
1011

11-
<artifactId>jmx_example_application</artifactId>
12-
<name>Prometheus JMX Exporter - Example Application</name>
12+
<artifactId>jmx_example_application</artifactId>
13+
<name>Prometheus JMX Exporter - Example Application</name>
14+
<description>
15+
See https://github.com/prometheus/jmx_exporter/blob/master/README.md
16+
</description>
17+
<url>http://github.com/prometheus/jmx_exporter</url>
1318

14-
<licenses>
15-
<license>
16-
<name>The Apache Software License, Version 2.0</name>
17-
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
18-
<distribution>repo</distribution>
19-
</license>
20-
</licenses>
19+
<licenses>
20+
<license>
21+
<name>The Apache Software License, Version 2.0</name>
22+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
23+
<distribution>repo</distribution>
24+
</license>
25+
</licenses>
2126

22-
<build>
23-
<finalName>${project.artifactId}</finalName>
24-
<plugins>
25-
<plugin>
26-
<groupId>org.apache.maven.plugins</groupId>
27-
<artifactId>maven-shade-plugin</artifactId>
28-
<executions>
29-
<execution>
30-
<phase>package</phase>
31-
<goals>
32-
<goal>shade</goal>
33-
</goals>
34-
<configuration>
35-
<transformers>
36-
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
37-
<mainClass>io.prometheus.jmx.JmxExampleApplication</mainClass>
38-
</transformer>
39-
</transformers>
40-
</configuration>
41-
</execution>
42-
</executions>
43-
</plugin>
44-
</plugins>
45-
</build>
27+
<properties>
28+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
29+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
30+
</properties>
31+
32+
<build>
33+
<finalName>${project.artifactId}</finalName>
34+
<plugins>
35+
<plugin>
36+
<groupId>org.apache.maven.plugins</groupId>
37+
<artifactId>maven-shade-plugin</artifactId>
38+
<executions>
39+
<execution>
40+
<phase>package</phase>
41+
<goals>
42+
<goal>shade</goal>
43+
</goals>
44+
<configuration>
45+
<transformers>
46+
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
47+
<mainClass>io.prometheus.jmx.JmxExampleApplication</mainClass>
48+
</transformer>
49+
</transformers>
50+
</configuration>
51+
</execution>
52+
</executions>
53+
</plugin>
54+
</plugins>
55+
</build>
4656
</project>

integration_tests/pom.xml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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/xsd/maven-4.0.0.xsd">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

55
<parent>
@@ -9,9 +9,14 @@
99
</parent>
1010

1111
<artifactId>integration_tests</artifactId>
12+
<name>Prometheus JMX Exporter - Integration Tests</name>
13+
<description>
14+
See https://github.com/prometheus/jmx_exporter/blob/master/README.md
15+
</description>
16+
<url>http://github.com/prometheus/jmx_exporter</url>
17+
1218
<packaging>pom</packaging>
1319

14-
<name>Prometheus JMX Exporter - Integration Tests</name>
1520
<licenses>
1621
<license>
1722
<name>The Apache Software License, Version 2.0</name>
@@ -26,14 +31,14 @@
2631
</modules>
2732

2833
<dependencyManagement>
29-
<dependencies>
30-
<dependency>
31-
<groupId>org.testcontainers</groupId>
32-
<artifactId>testcontainers</artifactId>
33-
<version>1.17.2</version>
34-
<scope>test</scope>
35-
</dependency>
36-
</dependencies>
34+
<dependencies>
35+
<dependency>
36+
<groupId>org.testcontainers</groupId>
37+
<artifactId>testcontainers</artifactId>
38+
<version>1.17.2</version>
39+
<scope>test</scope>
40+
</dependency>
41+
</dependencies>
3742
</dependencyManagement>
3843

3944
<build>

0 commit comments

Comments
 (0)