pom.xml cleanup

This commit is contained in:
Sven Kubiak 2018-10-06 13:44:18 +02:00
parent 2808437ea9
commit 815c390691
3 changed files with 59 additions and 9 deletions

56
pom.xml
View File

@ -30,9 +30,6 @@
<name>JPushover</name> <name>JPushover</name>
<description>Minimalist convenient class for sending messages to Pushover in Java project</description> <description>Minimalist 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>
<prerequisites>
<maven>3.0</maven>
</prerequisites>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
@ -59,6 +56,59 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M2</version>
<configuration>
<rules>
<DependencyConvergence>
<uniqueVersions>false</uniqueVersions>
</DependencyConvergence>
</rules>
</configuration>
<executions>
<execution>
<id>enforce</id>
<goals>
<goal>enforce</goal>
</goals>
<phase>validate</phase>
</execution>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.0.5</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
<execution>
<id>enforce-ban-circular-dependencies</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<banCircularDependencies />
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>extra-enforcer-rules</artifactId>
<version>1.0-beta-9</version>
</dependency>
</dependencies>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>

View File

@ -247,6 +247,9 @@ public class JPushover {
* Optional device parameter to check specific device * Optional device parameter to check specific device
* *
* @return true if token and user are valid and at least on device is on the account, false otherwise * @return true if token and user are valid and at least on device is on the account, false otherwise
*
* @throws IOException if validation fails
* @throws InterruptedException if validation fails
*/ */
public boolean validate() throws IOException, InterruptedException { public boolean validate() throws IOException, InterruptedException {
Objects.requireNonNull(this.pushoverToken, "Token is required for validation"); Objects.requireNonNull(this.pushoverToken, "Token is required for validation");
@ -274,6 +277,9 @@ public class JPushover {
* Sends a message to pushover * Sends a message to pushover
* *
* @return JPushoverResponse instance * @return JPushoverResponse instance
*
* @throws IOException if validation fails
* @throws InterruptedException if validation fails
*/ */
public final JPushoverResponse push() throws IOException, InterruptedException { public final JPushoverResponse push() throws IOException, InterruptedException {
Objects.requireNonNull(this.pushoverToken, "Token is required for a message"); Objects.requireNonNull(this.pushoverToken, "Token is required for a message");

View File

@ -1,6 +0,0 @@
module jpushover {
requires java.net.http;
requires minimal.json;
requires org.apache.commons.lang3;
exports de.svenkubiak.jpushover;
}