Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 4569959

Browse files
committed
Use dev.blanke.webpush as groupId instead of dev.blanke
1 parent 0bcb845 commit 4569959

8 files changed

Lines changed: 33 additions & 25 deletions

File tree

β€Žpom.xmlβ€Ž

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
<modelVersion>4.0.0</modelVersion>
88

9-
<groupId>dev.blanke</groupId>
9+
<groupId>dev.blanke.webpush</groupId>
1010
<artifactId>webpush-project</artifactId>
11-
<version>5.1.2-SNAPSHOT</version>
11+
<version>6.0.0-SNAPSHOT</version>
1212
<packaging>pom</packaging>
1313

1414
<modules>
@@ -40,4 +40,11 @@
4040
</pluginManagement>
4141
</build>
4242

43+
<distributionManagement>
44+
<repository>
45+
<id>github</id>
46+
<url>https://maven.pkg.github.com/andreblanke/webpush-java</url>
47+
</repository>
48+
</distributionManagement>
49+
4350
</project>

β€Žwebpush-cli/pom.xmlβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
<modelVersion>4.0.0</modelVersion>
88

99
<parent>
10-
<groupId>dev.blanke</groupId>
10+
<groupId>dev.blanke.webpush</groupId>
1111
<artifactId>webpush-project</artifactId>
12-
<version>5.1.2-SNAPSHOT</version>
12+
<version>6.0.0-SNAPSHOT</version>
1313
</parent>
1414

1515
<artifactId>webpush-cli</artifactId>
1616

1717
<dependencies>
1818
<dependency>
19-
<groupId>dev.blanke</groupId>
19+
<groupId>dev.blanke.webpush</groupId>
2020
<artifactId>webpush</artifactId>
21-
<version>5.1.2-SNAPSHOT</version>
21+
<version>6.0.0-SNAPSHOT</version>
2222
</dependency>
2323
<dependency>
2424
<groupId>com.beust</groupId>

β€Žwebpush-cli/src/main/java/nl/martijndwars/webpush/cli/commands/SendNotificationCommand.javaβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import com.beust.jcommander.Parameter;
44
import com.beust.jcommander.Parameters;
5+
56
import nl.martijndwars.webpush.Subscription;
67

78
@Parameters(separators = "=", commandDescription = "Send a push notification")

β€Žwebpush-cli/src/main/java/nl/martijndwars/webpush/cli/handlers/GenerateKeyHandler.javaβ€Ž

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
package nl.martijndwars.webpush.cli.handlers;
22

3-
import nl.martijndwars.webpush.Utils;
4-
import nl.martijndwars.webpush.cli.commands.GenerateKeyCommand;
3+
import java.io.File;
4+
import java.io.FileOutputStream;
5+
import java.io.IOException;
6+
import java.io.OutputStreamWriter;
7+
import java.security.*;
8+
import java.util.Base64;
9+
510
import org.bouncycastle.jce.ECNamedCurveTable;
611
import org.bouncycastle.jce.interfaces.ECPrivateKey;
712
import org.bouncycastle.jce.interfaces.ECPublicKey;
@@ -10,14 +15,10 @@
1015
import org.bouncycastle.util.io.pem.PemObject;
1116
import org.bouncycastle.util.io.pem.PemWriter;
1217

13-
import java.io.File;
14-
import java.io.FileOutputStream;
15-
import java.io.IOException;
16-
import java.io.OutputStreamWriter;
17-
import java.security.*;
18-
import java.util.Base64;
18+
import nl.martijndwars.webpush.Utils;
19+
import nl.martijndwars.webpush.cli.commands.GenerateKeyCommand;
1920

20-
public class GenerateKeyHandler implements HandlerInterface {
21+
public class GenerateKeyHandler implements Handler {
2122

2223
private final GenerateKeyCommand generateKeyCommand;
2324

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package nl.martijndwars.webpush.cli.handlers;
2+
3+
public interface Handler {
4+
5+
void run() throws Exception;
6+
}

β€Žwebpush-cli/src/main/java/nl/martijndwars/webpush/cli/handlers/HandlerInterface.javaβ€Ž

Lines changed: 0 additions & 7 deletions
This file was deleted.

β€Žwebpush-cli/src/main/java/nl/martijndwars/webpush/cli/handlers/SendNotificationHandler.javaβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import nl.martijndwars.webpush.Subscription;
88
import nl.martijndwars.webpush.cli.commands.SendNotificationCommand;
99

10-
public class SendNotificationHandler implements HandlerInterface {
10+
public class SendNotificationHandler implements Handler {
1111

1212
private final SendNotificationCommand sendNotificationCommand;
1313

β€Žwebpush/pom.xmlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<modelVersion>4.0.0</modelVersion>
88

99
<parent>
10-
<groupId>dev.blanke</groupId>
10+
<groupId>dev.blanke.webpush</groupId>
1111
<artifactId>webpush-project</artifactId>
12-
<version>5.1.2-SNAPSHOT</version>
12+
<version>6.0.0-SNAPSHOT</version>
1313
</parent>
1414

1515
<artifactId>webpush</artifactId>

0 commit comments

Comments
 (0)