Compare commits

...

10 Commits

Author SHA1 Message Date
60137a437e replace fork master distributionManagement 2023-07-20 08:24:13 +02:00
1b8d1e5d1a Merge branch 'main' of https://github.com/svenkubiak/JPushover 2023-07-20 08:23:46 +02:00
Sven Kubiak
42dd11678a
Added release script 2023-07-19 10:41:39 +02:00
Sven Kubiak
7e6cc8e1bb
New SNAPSHOT version 2023-07-17 14:18:31 +02:00
Sven Kubiak
f0effe5240
Moved release plugins to profile 2023-07-17 14:15:33 +02:00
Sven Kubiak
49616e1d9d
Signing is only activated on release 2023-07-17 14:13:27 +02:00
Sven Kubiak
f9809e444e
New snapshot version 2023-07-17 14:10:15 +02:00
Sven Kubiak
8f71cf8164
Switched from maven release to sonatype staging plugin 2023-07-17 14:09:42 +02:00
Sven Kubiak
772f9a590a
Updates to pom.xml 2023-07-17 13:41:05 +02:00
Sven Kubiak
f4aeb42e61
Version bumps 2023-07-16 19:19:36 +02:00
2 changed files with 72 additions and 64 deletions

118
pom.xml
View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>de.svenkubiak</groupId> <groupId>de.svenkubiak</groupId>
<artifactId>jpushover11</artifactId> <artifactId>jpushover11</artifactId>
<version>7.0.5-SNAPSHOT</version> <version>7.0.10-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<licenses> <licenses>
<license> <license>
@ -28,7 +28,8 @@
<tag>HEAD</tag> <tag>HEAD</tag>
</scm> </scm>
<name>JPushover</name> <name>JPushover</name>
<description>Zero-dependency convenient class for sending messages to Pushover in Java project</description> <description>Zero-dependency convenient class for sending messages to
Pushover in Java project</description>
<url>https://github.com/svenkubiak/JPushover</url> <url>https://github.com/svenkubiak/JPushover</url>
<build> <build>
<plugins> <plugins>
@ -40,26 +41,12 @@
<source>${java.version}</source> <source>${java.version}</source>
<target>${java.version}</target> <target>${java.version}</target>
<debug>false</debug> <debug>false</debug>
<optimize>true</optimize>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId> <artifactId>maven-enforcer-plugin</artifactId>
<version>3.1.0</version> <version>3.3.0</version>
<configuration> <configuration>
<rules> <rules>
<DependencyConvergence> <DependencyConvergence>
@ -97,37 +84,24 @@
</dependencies> </dependencies>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.owasp</groupId> <groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId> <artifactId>dependency-check-maven</artifactId>
<version>7.4.1</version> <version>8.3.1</version>
<configuration> <configuration>
<cveValidForHours>12</cveValidForHours> <cveValidForHours>12</cveValidForHours>
<failBuildOnCVSS>1</failBuildOnCVSS> <failBuildOnCVSS>1</failBuildOnCVSS>
<!-- <!--
<suppressionFiles> <suppressionFiles>
<suppressionFile>${maven.multiModuleProjectDirectory}/owasp-suppression.xml</suppressionFile> <suppressionFile>${maven.multiModuleProjectDirectory}/owasp-suppression.xml</suppressionFile>
</suppressionFiles> </suppressionFiles>
--> -->
<assemblyAnalyzerEnabled>false</assemblyAnalyzerEnabled> <assemblyAnalyzerEnabled>false</assemblyAnalyzerEnabled>
<composerAnalyzerEnabled>false</composerAnalyzerEnabled> <composerAnalyzerEnabled>false</composerAnalyzerEnabled>
<nodeAuditAnalyzerEnabled>false</nodeAuditAnalyzerEnabled> <nodeAuditAnalyzerEnabled>false</nodeAuditAnalyzerEnabled>
<nuspecAnalyzerEnabled>false</nuspecAnalyzerEnabled> <nuspecAnalyzerEnabled>false</nuspecAnalyzerEnabled>
<cocoapodsAnalyzerEnabled>false</cocoapodsAnalyzerEnabled> <cocoapodsAnalyzerEnabled>false</cocoapodsAnalyzerEnabled>
<golangDepEnabled>false</golangDepEnabled> <golangDepEnabled>false</golangDepEnabled>
</configuration> </configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.sonarsource.scanner.maven</groupId> <groupId>org.sonarsource.scanner.maven</groupId>
@ -137,31 +111,27 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId> <artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version> <version>3.0.1</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<goals>deploy</goals>
</configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId> <artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0</version> <version>3.1.1</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId> <artifactId>versions-maven-plugin</artifactId>
<version>2.15.0</version> <version>2.16.0</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId> <artifactId>maven-clean-plugin</artifactId>
<version>3.2.0</version> <version>3.3.1</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version> <version>3.1.2</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
@ -171,12 +141,12 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId> <artifactId>maven-site-plugin</artifactId>
<version>4.0.0-M4</version> <version>4.0.0-M9</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId> <artifactId>maven-install-plugin</artifactId>
<version>3.1.0</version> <version>3.1.1</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
@ -211,19 +181,13 @@
</repositories> </repositories>
<profiles> <profiles>
<profile> <profile>
<id>release-sign-artifacts</id> <id>release</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId> <artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version> <version>3.1.0</version>
<executions> <executions>
<execution> <execution>
<id>sign-artifacts</id> <id>sign-artifacts</id>
@ -234,6 +198,32 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
</profile> </profile>

18
release.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
mvn versions:set
STATUS=$?
if [ $STATUS -ne 0 ]; then
echo "Failed to set new version!"
else
mvn clean deploy -Prelease
STATUS=$?
if [ $STATUS -ne 0 ]; then
echo "Failed to release!"
else
mvn release:update-versions
fi
fi
rm pom.xml.versionsBackup