Skip to content

Commit 6bbf958

Browse files
committed
Release cdoc2-java-ref-impl version 1.4.1
1 parent b31eae3 commit 6bbf958

File tree

8 files changed

+50
-28
lines changed

8 files changed

+50
-28
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## [1.4.1] Bug fixes, documentation, tests improvements (2024-09-19)
4+
5+
### Bug Fixes
6+
* Fix `cdoc2-cli decrypt` crash, when using server scenario
7+
* Fix Junit tests on Windows
8+
* Fix pkcs11 (smart-card) test properties loading from filesystem
9+
10+
### Internal
11+
* Added [cdoc2-lib Usage Guide](cdoc2-lib/README.md)
12+
* cdoc2-cli bats tests for server scenario (using docker compose)
13+
* Update cdoc2-example-app to use `cdoc2-lib:2.0.0`
14+
315
## [1.4.0] Key label formatting (2024-09-02)
416

517
### Features

cdoc2-cli/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<parent>
55
<artifactId>cdoc2</artifactId>
66
<groupId>ee.cyber.cdoc2</groupId>
7-
<version>1.4.0</version>
7+
<version>1.4.1</version>
88
</parent>
99

1010
<artifactId>cdoc2-cli</artifactId>
11-
<version>1.5.0</version>
11+
<version>1.5.1</version>
1212
<description>Command line utility to create/process CDOC2 files</description>
1313

1414
<properties>
@@ -42,7 +42,7 @@
4242
<dependency>
4343
<groupId>ee.cyber.cdoc2</groupId>
4444
<artifactId>cdoc2-lib</artifactId>
45-
<version>2.0.1-SNAPSHOT</version>
45+
<version>2.0.1</version>
4646
</dependency>
4747
</dependencies>
4848

cdoc2-client/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<parent>
55
<artifactId>cdoc2</artifactId>
66
<groupId>ee.cyber.cdoc2</groupId>
7-
<version>1.4.0</version>
7+
<version>1.4.1</version>
88
</parent>
99

1010
<artifactId>cdoc2-client</artifactId>
11-
<version>1.5.0</version>
11+
<version>1.5.1</version>
1212
<description>CDOC2 server client generation from openapi specification</description>
1313

1414
<properties>

cdoc2-lib/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<parent>
44
<artifactId>cdoc2</artifactId>
55
<groupId>ee.cyber.cdoc2</groupId>
6-
<version>1.4.0</version>
6+
<version>1.4.1</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99

1010
<artifactId>cdoc2-lib</artifactId>
11-
<version>2.0.1-SNAPSHOT</version>
11+
<version>2.0.1</version>
1212
<description>CDOC2 creation and processing library</description>
1313

1414
<properties>

cdoc2-schema/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<modelVersion>4.0.0</modelVersion>
44

55
<parent>
6-
<version>1.4.0</version>
6+
<version>1.4.1</version>
77
<groupId>ee.cyber.cdoc2</groupId>
88
<artifactId>cdoc2</artifactId>
99
</parent>
1010

1111
<artifactId>cdoc2-schema</artifactId>
12-
<version>1.3.0</version>
12+
<version>1.3.1</version>
1313

1414
<description>CDOC2 flatbuffer schemas and related functionality </description>
1515

inc_versions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ for module in $MODULES; do
8383
echo "Ignoring $module as it already on SNAPSHOT "
8484
else
8585
echo "Creating -SNAPSHOT minor version for $module;"
86-
mvn -f "$module" versions:set -DnextSnapshot -DnextSnapshotIndexToIncrement=2
86+
mvn -f "$module" versions:set -DnextSnapshot -DnextSnapshotIndexToIncrement=3
8787
fi
8888
else
8989
echo "Dry-run. Not increasing version for $module."

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<modelVersion>4.0.0</modelVersion>
55

6-
<version>1.4.0</version>
6+
<version>1.4.1</version>
77
<groupId>ee.cyber.cdoc2</groupId>
88
<artifactId>cdoc2</artifactId>
99
<description>CDOC2 reference implementation </description>

prepare_release.sh

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,16 @@
22

33
GIT_BRANCH=$(git branch --show-current)
44

5-
if [[ "master" != "$GIT_BRANCH" ]]; then
6-
echo "Release will be made from branch $GIT_BRANCH."
7-
sleep 5
8-
fi
9-
5+
CHECK_FOR_CLEAN_BRANCH=true
106

11-
if [[ -n $(git cherry -v) ]]; then
12-
echo "Detected unpushed commits. Exit"
13-
exit 1
14-
fi
15-
16-
if [[ -n $(git status --porcelain --untracked-files=no) ]]; then
17-
echo "Uncommitted changes detected. Exit"
18-
exit 1
19-
fi
20-
21-
while getopts "v:" opt; do
7+
while getopts "v:c" opt; do
228
case $opt in
9+
c)
10+
echo "Not checking for clean branch (-c)"
11+
CHECK_FOR_CLEAN_BRANCH=false
12+
;;
2313
v)
24-
echo "Changing parent pom version to: $OPTARG" >&2
14+
echo "Changing parent pom version to: $OPTARG"
2515
mvn versions:set -DnewVersion="${OPTARG}" -DupdateMatchingVersions=false
2616
;;
2717
?)
@@ -31,6 +21,26 @@ while getopts "v:" opt; do
3121
esac
3222
done
3323

24+
if [[ "$CHECK_FOR_CLEAN_BRANCH" = true ]]; then
25+
echo "Checking for clean git checkout. Disable with '-c'"
26+
if [[ "master" != "$GIT_BRANCH" ]]; then
27+
echo "Not on 'master' branch. You have 5 seconds to abort."
28+
sleep 5
29+
fi
30+
31+
if [[ -n $(git cherry -v) ]]; then
32+
echo "Detected unpushed commits. Exit"
33+
exit 1
34+
fi
35+
36+
if [[ -n $(git status --porcelain --untracked-files=no) ]]; then
37+
echo "Uncommited changes detected. Exit"
38+
exit 1
39+
fi
40+
else
41+
echo "Not checking for clean branch CHECK_FOR_CLEAN_BRANCH=$CHECK_FOR_CLEAN_BRANCH"
42+
fi
43+
3444

3545
# replace module -SNAPSHOT version with release version (non-SNAPSHOT)
3646
mvn versions:set -DremoveSnapshot

0 commit comments

Comments
 (0)