Skip to content

Commit c00296f

Browse files
authored
Merge pull request #488 from siom79/release-v0.25.3
Release v0.25.3
2 parents ef42cb1 + 1549b8e commit c00296f

File tree

7 files changed

+55
-26
lines changed

7 files changed

+55
-26
lines changed

.github/workflows/increment-version.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Increment Version
33
on:
44
workflow_dispatch:
55
inputs:
6-
release-version:
7-
description: "release-version"
8-
required: true
9-
default: "0.25.1"
106
old-version:
117
description: "old-version"
128
required: true
139
default: "0.25.0"
10+
release-version:
11+
description: "release-version"
12+
required: true
13+
default: "0.25.1"
1414

1515
jobs:
1616
run-script:
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Increment Version
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
new-version:
7+
description: "new-version"
8+
required: true
9+
default: "0.25.0-SNAPSHOT"
10+
11+
jobs:
12+
run-script:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout Repository
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Java
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: zulu
23+
java-version: 21
24+
cache: maven
25+
26+
- name: Build with Maven
27+
shell: bash
28+
run: |
29+
git config user.name '${{ github.actor }}'
30+
git config user.email '${{ github.actor }}@users.noreply.github.com'
31+
mvn versions:set -DnewVersion="${{ inputs.new-version }}"
32+
mvn versions:commit
33+
git commit -a -m "mvn set version to ${{ inputs.new-version }}"
34+
git push origin

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ japicmp is available in the Maven Central Repository:
1818
<dependency>
1919
<groupId>com.github.siom79.japicmp</groupId>
2020
<artifactId>japicmp</artifactId>
21-
<version>0.25.2</version>
21+
<version>0.25.3</version>
2222
</dependency>
2323
```
2424
A maven plugin allows you to integrate the checks into your build:
@@ -27,7 +27,7 @@ A maven plugin allows you to integrate the checks into your build:
2727
<plugin>
2828
<groupId>com.github.siom79.japicmp</groupId>
2929
<artifactId>japicmp-maven-plugin</artifactId>
30-
<version>0.25.2</version>
30+
<version>0.25.3</version>
3131
<configuration>
3232
<oldVersion>
3333
<dependency>
@@ -152,11 +152,7 @@ This is the release procedure:
152152
mvn versions:set -DnewVersion=<version>-SNAPSHOT
153153
mvn versions:commit
154154
```
155-
* Increment version in README.md / Site-Report
156-
``` bash
157-
python3 release.py --release-version <release-version> --old-version <old-version>
158-
```
159-
* Push changes to remote repository.
155+
* Increment version in README.md / Site-Report by running [this Action](https://github.com/siom79/japicmp/actions/workflows/increment-version.yml) on the release branch
160156
* Run release [Action](https://github.com/siom79/japicmp/actions/workflows/release.yml)
161157
* Login to [Central repository](https://central.sonatype.com/publishing)
162158
* Download released artifact from staging repository.

pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<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">
43
<modelVersion>4.0.0</modelVersion>
54

65
<groupId>com.github.siom79.japicmp</groupId>
@@ -448,7 +447,7 @@
448447
<connection>scm:git:https://github.com/${github.account}/${github.project}.git</connection>
449448
<developerConnection>scm:git:https://github.com/${github.account}/${github.project}.git</developerConnection>
450449
<url>https://github.com/${github.account}/${github.project}.git</url>
451-
<tag>japicmp-base-0.24.2</tag>
450+
<tag>japicmp-base-0.25.2</tag>
452451
</scm>
453452

454453
<distributionManagement>

src/site/markdown/CliTool.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,18 +147,18 @@ When your library implements interfaces or extends classes from other libraries
147147
compatibility you must specify the classpath for the two different versions:
148148
149149
```bash
150-
java -jar japicmp-0.25.2-jar-with-dependencies.jar -n new-version.jar -o old-version.jar --new-classpath other-library-v2.jar
150+
java -jar japicmp-0.25.3-jar-with-dependencies.jar -n new-version.jar -o old-version.jar --new-classpath other-library-v2.jar
151151
--old-classpath other-library-v1.jar
152152
```
153153
154154
In case the classpath for both versions did not change, you can add the library using the standard way:
155155
156156
```bash
157-
java -cp japicmp-0.25.2-jar-with-dependencies.jar;otherLibrary.jar japicmp.JApiCmp -n new-version.jar -o old-version.jar
157+
java -cp japicmp-0.25.3-jar-with-dependencies.jar;otherLibrary.jar japicmp.JApiCmp -n new-version.jar -o old-version.jar
158158
```
159159
160160
For reporting purposes you can also provide more than one jar as old or new version(s):
161161
162162
```bash
163-
java -jar japicmp-0.25.2-jar-with-dependencies.jar -o lib1-old.jar;lib2-old.jar -n lib1-new.jar;lib2-new.jar
163+
java -jar japicmp-0.25.3-jar-with-dependencies.jar -o lib1-old.jar;lib2-old.jar -n lib1-new.jar;lib2-new.jar
164164
```

src/site/markdown/MavenPlugin.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The maven plugin can be included in the pom.xml file of your artifact in the fol
1010
<plugin>
1111
<groupId>com.github.siom79.japicmp</groupId>
1212
<artifactId>japicmp-maven-plugin</artifactId>
13-
<version>0.25.2</version>
13+
<version>0.25.3</version>
1414
<configuration>
1515
<oldVersion>
1616
<dependency>
@@ -46,7 +46,7 @@ You can also leave out the &lt;oldVersion&gt; and &lt;newVersion&gt; elements:
4646
<plugin>
4747
<groupId>com.github.siom79.japicmp</groupId>
4848
<artifactId>japicmp-maven-plugin</artifactId>
49-
<version>0.25.2</version>
49+
<version>0.25.3</version>
5050
<configuration>
5151
<parameter>
5252
<!-- see documentation -->
@@ -70,7 +70,7 @@ to configure the latest version more precisely (e.g. only GA versions), then you
7070
<plugin>
7171
<groupId>com.github.siom79.japicmp</groupId>
7272
<artifactId>japicmp-maven-plugin</artifactId>
73-
<version>0.25.2</version>
73+
<version>0.25.3</version>
7474
<configuration>
7575
<parameter>
7676
<oldVersionPattern>\d+\.\d+\.\d+\.GA</oldVersionPattern>
@@ -116,13 +116,13 @@ An advanced configuration can utilize the following parameters:
116116
<plugin>
117117
<groupId>com.github.siom79.japicmp</groupId>
118118
<artifactId>japicmp-maven-plugin</artifactId>
119-
<version>0.25.2</version>
119+
<version>0.25.3</version>
120120
<configuration>
121121
<oldVersion>
122122
<dependency>
123123
<groupId>japicmp</groupId>
124124
<artifactId>japicmp-test-v1</artifactId>
125-
<version>0.25.2</version>
125+
<version>0.25.3</version>
126126
<type>jar</type>
127127
</dependency>
128128
</oldVersion>
@@ -382,7 +382,7 @@ Alternatively it can be used inside the `<reporting/>` tag in order to be invoke
382382
<plugin>
383383
<groupId>com.github.siom79.japicmp</groupId>
384384
<artifactId>japicmp-maven-plugin</artifactId>
385-
<version>0.25.2</version>
385+
<version>0.25.3</version>
386386
<reportSets>
387387
<reportSet>
388388
<reports>

src/site/markdown/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ japicmp
44
japicmp is a tool to compare two versions of a jar archive:
55

66
```bash
7-
java -jar japicmp-0.25.2-jar-with-dependencies.jar -n new-version.jar -o old-version.jar
7+
java -jar japicmp-0.25.3-jar-with-dependencies.jar -n new-version.jar -o old-version.jar
88
```
99

1010
It can also be used as a library:
@@ -21,7 +21,7 @@ japicmp is available in the Maven Central Repository:
2121
<dependency>
2222
<groupId>com.github.siom79.japicmp</groupId>
2323
<artifactId>japicmp</artifactId>
24-
<version>0.25.2</version>
24+
<version>0.25.3</version>
2525
</dependency>
2626
```
2727

@@ -31,7 +31,7 @@ A maven plugin allows you to integrate the checks into your build:
3131
<plugin>
3232
<groupId>com.github.siom79.japicmp</groupId>
3333
<artifactId>japicmp-maven-plugin</artifactId>
34-
<version>0.25.2</version>
34+
<version>0.25.3</version>
3535
<configuration>
3636
<oldVersion>
3737
<dependency>

0 commit comments

Comments
 (0)