Skip to content

Commit

Permalink
Release YOJ 2.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nvamelichev committed Mar 6, 2024
1 parent 936a354 commit 031a7f3
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If you wish to contribute to YOJ, see the [Notice to external contributors](CONT
<dependency>
<groupId>tech.ydb.yoj</groupId>
<artifactId>yoj-bom</artifactId>
<version>2.2.3</version>
<version>2.2.4</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
2 changes: 1 addition & 1 deletion bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>tech.ydb.yoj</groupId>
<artifactId>yoj-bom</artifactId>
<version>2.2.4-SNAPSHOT</version>
<version>2.2.4</version>
<packaging>pom</packaging>

<name>YOJ - Bill of Materials</name>
Expand Down
2 changes: 1 addition & 1 deletion databind/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>tech.ydb.yoj</groupId>
<artifactId>yoj-parent</artifactId>
<version>2.2.4-SNAPSHOT</version>
<version>2.2.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion json-jackson-v2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>tech.ydb.yoj</groupId>
<artifactId>yoj-parent</artifactId>
<version>2.2.4-SNAPSHOT</version>
<version>2.2.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>tech.ydb.yoj</groupId>
<artifactId>yoj-parent</artifactId>
<version>2.2.4-SNAPSHOT</version>
<version>2.2.4</version>
<packaging>pom</packaging>

<name>YDB ORM for Java (YOJ)</name>
Expand Down
41 changes: 41 additions & 0 deletions prepare-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/sh

set -e
set pipefail

die() {
echo "$@" >&2
exit 1
}

[ -z "$YOJ_VERSION" ] && die "Please set YOJ_VERSION before calling prepare-release.sh"
[ -z "$MVN" ] && MVN='mvn'

echo "[**] Updating YOJ artifact version to ${YOJ_VERSION}..."
"$MVN" versions:set -DnewVersion="${YOJ_VERSION}" -DprocessAllModules -DgenerateBackupPoms=false

echo
echo "[**] Checking that YOJ ${YOJ_VERSION} builds successfully:"
"$MVN" clean verify

echo
echo "[**] Updating README.md:"
sed "/<artifactId>yoj-bom<\/artifactId>\$/ {
N
s|<version>.*</version>|<version>${YOJ_VERSION}</version>|
}" README.md > README.md.new
mv -- README.md.new README.md

echo
echo "[**] Committing changes to VCS:"
git add -A
git commit -m "Release YOJ ${YOJ_VERSION}"
git tag "v${YOJ_VERSION}"

echo
echo "[**] Pushing changes:"
#git push origin && git push origin --tags

echo
echo "[**] Done!"
echo " See https://github.com/ydb-platform/yoj-project/actions"
2 changes: 1 addition & 1 deletion repository-inmemory/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>tech.ydb.yoj</groupId>
<artifactId>yoj-parent</artifactId>
<version>2.2.4-SNAPSHOT</version>
<version>2.2.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion repository-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>tech.ydb.yoj</groupId>
<artifactId>yoj-parent</artifactId>
<version>2.2.4-SNAPSHOT</version>
<version>2.2.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion repository-ydb-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>tech.ydb.yoj</groupId>
<artifactId>yoj-parent</artifactId>
<version>2.2.4-SNAPSHOT</version>
<version>2.2.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion repository-ydb-v1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>tech.ydb.yoj</groupId>
<artifactId>yoj-parent</artifactId>
<version>2.2.4-SNAPSHOT</version>
<version>2.2.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion repository-ydb-v2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>tech.ydb.yoj</groupId>
<artifactId>yoj-parent</artifactId>
<version>2.2.4-SNAPSHOT</version>
<version>2.2.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion repository/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>tech.ydb.yoj</groupId>
<artifactId>yoj-parent</artifactId>
<version>2.2.4-SNAPSHOT</version>
<version>2.2.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>tech.ydb.yoj</groupId>
<artifactId>yoj-parent</artifactId>
<version>2.2.4-SNAPSHOT</version>
<version>2.2.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down

0 comments on commit 031a7f3

Please sign in to comment.