Skip to content

Commit

Permalink
Add source and javadoc to release
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Stäber <[email protected]>
  • Loading branch information
fstab committed May 23, 2022
1 parent 4ad715e commit 5ab0d44
Show file tree
Hide file tree
Showing 12 changed files with 921 additions and 862 deletions.
11 changes: 11 additions & 0 deletions MAINTAINER_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,14 @@ Use the [Versions Maven Plugin](https://www.mojohaus.org/versions-maven-plugin/i
```
./mvnw versions:use-next-releases
```

## Release

```
./mvnw release:prepare -DreleaseVersion=0.17.0 -DdevelopmentVersion=0.17.1-SNAPSHOT
./mvnw release:perform -DreleaseVersion=0.17.0 -DdevelopmentVersion=0.17.1-SNAPSHOT
```

`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).

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`.
109 changes: 60 additions & 49 deletions collector/pom.xml
Original file line number Diff line number Diff line change
@@ -1,55 +1,66 @@
<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">
<modelVersion>4.0.0</modelVersion>
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.prometheus.jmx</groupId>
<artifactId>parent</artifactId>
<version>0.16.2-SNAPSHOT</version>
</parent>
<parent>
<groupId>io.prometheus.jmx</groupId>
<artifactId>parent</artifactId>
<version>0.16.2-SNAPSHOT</version>
</parent>

<artifactId>collector</artifactId>
<name>Prometheus JMX Exporter - Collector</name>
<description>
See https://github.com/prometheus/jmx_exporter/blob/master/README.md
</description>
<url>http://github.com/prometheus/jmx_exporter</url>
<artifactId>collector</artifactId>
<name>Prometheus JMX Exporter - Collector</name>
<description>
See https://github.com/prometheus/jmx_exporter/blob/master/README.md
</description>
<url>http://github.com/prometheus/jmx_exporter</url>

<dependencies>
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.30</version> <!-- The Java 6 build overrides this with 1.23. -->
</dependency>
</dependencies>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<property>
<name>java.util.logging.config.file</name>
<value>src/test/resources/logging.properties</value>
</property>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>

<dependencies>
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.30</version> <!-- The Java 6 build overrides this with 1.23. -->
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<property>
<name>java.util.logging.config.file</name>
<value>src/test/resources/logging.properties</value>
</property>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
</project>
90 changes: 50 additions & 40 deletions integration_tests/jmx_example_application/pom.xml
Original file line number Diff line number Diff line change
@@ -1,46 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<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">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.prometheus.jmx</groupId>
<artifactId>integration_tests</artifactId>
<version>0.16.2-SNAPSHOT</version>
</parent>
<parent>
<groupId>io.prometheus.jmx</groupId>
<artifactId>integration_tests</artifactId>
<version>0.16.2-SNAPSHOT</version>
</parent>

<artifactId>jmx_example_application</artifactId>
<name>Prometheus JMX Exporter - Example Application</name>
<artifactId>jmx_example_application</artifactId>
<name>Prometheus JMX Exporter - Example Application</name>
<description>
See https://github.com/prometheus/jmx_exporter/blob/master/README.md
</description>
<url>http://github.com/prometheus/jmx_exporter</url>

<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>io.prometheus.jmx.JmxExampleApplication</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>

<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>io.prometheus.jmx.JmxExampleApplication</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
27 changes: 16 additions & 11 deletions integration_tests/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<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">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand All @@ -9,9 +9,14 @@
</parent>

<artifactId>integration_tests</artifactId>
<name>Prometheus JMX Exporter - Integration Tests</name>
<description>
See https://github.com/prometheus/jmx_exporter/blob/master/README.md
</description>
<url>http://github.com/prometheus/jmx_exporter</url>

<packaging>pom</packaging>

<name>Prometheus JMX Exporter - Integration Tests</name>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
Expand All @@ -26,14 +31,14 @@
</modules>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<version>1.17.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<dependencies>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<version>1.17.2</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>

<build>
Expand Down
Loading

0 comments on commit 5ab0d44

Please sign in to comment.