Skip to content

Commit 7f3be32

Browse files
authored
Use jgitver to manage versions
1 parent ad0b717 commit 7f3be32

8 files changed

Lines changed: 43 additions & 6 deletions

File tree

.mvn/extensions.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
3+
<extension>
4+
<groupId>fr.brouillard.oss</groupId>
5+
<artifactId>jgitver-maven-plugin</artifactId>
6+
<version>1.9.0</version>
7+
</extension>
8+
</extensions>

.mvn/jgitver.config.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<configuration xmlns="http://jgitver.github.io/maven/configuration/1.1.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://jgitver.github.io/maven/configuration/1.1.0 https://jgitver.github.io/maven/configuration/jgitver-configuration-v1_1_0.xsd">
4+
5+
<useDirty>true</useDirty>
6+
<nonQualifierBranches>main</nonQualifierBranches>
7+
<regexVersionTag>pushy-(.+)</regexVersionTag>
8+
</configuration>

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,28 @@ To build a mock server, callers should use a [`MockApnsServerBuilder`](https://p
235235

236236
Callers may also provide a [`MockApnsServerListener`](https://pushy-apns.org/apidocs/0.15/com/eatthepath/pushy/apns/server/MockApnsServerListener.html) when building a mock server; listeners are notified whenever the mock server accepts or rejects a notification from a client.
237237

238+
## Building Pushy
239+
240+
Pushy uses [Maven](https://maven.apache.org/) as its build system. To build Pushy from source:
241+
242+
```shell
243+
./mvnw clean package
244+
```
245+
246+
…or to run tests:
247+
248+
```shell
249+
./mvnw clean test
250+
```
251+
252+
### For IntelliJ IDEA users
253+
254+
Note that IntelliJ IDEA struggles with multi-module projects that set their versions on the fly (like Pushy). Please see [IDEA-187928](https://youtrack.jetbrains.com/issue/IDEA-187928/Jgitver-not-working-at-all-for-a-multimodule-project) for background and discussion, but in short, IntelliJ users are likely to encounter an error something like:
255+
256+
> Could not find artifact com.eatthepath:pushy:jar:tests:0.15.5-SNAPSHOT
257+
258+
To work around the issue, IntelliJ users can navigate to Settings → Build, Execution, Deployment → Build Tools → Maven → Importing and add `-Djgitver.skip=true` to "VM options for importer."
259+
238260
## License and status
239261

240262
Pushy is available under the [MIT License](https://github.com/jchambers/pushy/blob/master/LICENSE.md).

benchmark/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<parent>
2828
<artifactId>pushy-parent</artifactId>
2929
<groupId>com.eatthepath</groupId>
30-
<version>0.15.5-SNAPSHOT</version>
30+
<version>JGITVER</version>
3131
</parent>
3232

3333
<artifactId>pushy-benchmark</artifactId>

dropwizard-metrics-listener/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<parent>
3232
<groupId>com.eatthepath</groupId>
3333
<artifactId>pushy-parent</artifactId>
34-
<version>0.15.5-SNAPSHOT</version>
34+
<version>JGITVER</version>
3535
</parent>
3636

3737
<dependencies>

micrometer-metrics-listener/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<parent>
3232
<artifactId>pushy-parent</artifactId>
3333
<groupId>com.eatthepath</groupId>
34-
<version>0.15.5-SNAPSHOT</version>
34+
<version>JGITVER</version>
3535
</parent>
3636

3737
<dependencies>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<groupId>com.eatthepath</groupId>
2828
<artifactId>pushy-parent</artifactId>
2929
<packaging>pom</packaging>
30-
<version>0.15.5-SNAPSHOT</version>
30+
<version>JGITVER</version>
3131

3232
<name>Pushy parent</name>
3333
<description>A Java library for sending APNs (iOS/macOS/Safari) push notifications</description>

pushy/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,13 @@
2525
<modelVersion>4.0.0</modelVersion>
2626

2727
<artifactId>pushy</artifactId>
28-
<version>0.15.5-SNAPSHOT</version>
2928
<packaging>bundle</packaging>
3029
<name>Pushy</name>
3130

3231
<parent>
3332
<groupId>com.eatthepath</groupId>
3433
<artifactId>pushy-parent</artifactId>
35-
<version>0.15.5-SNAPSHOT</version>
34+
<version>JGITVER</version>
3635
</parent>
3736

3837
<dependencies>

0 commit comments

Comments
 (0)