Skip to content

Commit

Permalink
Prepare for development of YOJ 2.2.5-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
nvamelichev committed Mar 6, 2024
1 parent 031a7f3 commit 4c8d901
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 13 deletions.
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</version>
<version>2.2.5-SNAPSHOT</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</version>
<version>2.2.5-SNAPSHOT</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</version>
<version>2.2.5-SNAPSHOT</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</version>
<version>2.2.5-SNAPSHOT</version>
<packaging>pom</packaging>

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

set -e
set pipefail

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

[ -z "$YOJ_VERSION" ] && die "Please set YOJ_VERSION before calling prepare-next-snapshot.sh!"
! (echo "$YOJ_VERSION" | grep -- '-SNAPSHOT' >/dev/null) && die "Please set YOJ_VERSION to a snapshot version (x.y.z-SNAPSHOT)!"
[ -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 install

echo
echo "[**] Committing changes to VCS:"
git add -A
git commit -m "Prepare for development of YOJ ${YOJ_VERSION}"

echo
echo "[**] Pushing changes:"
git push origin

echo
echo "[**] Done!"
5 changes: 3 additions & 2 deletions prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ die() {
exit 1
}

[ -z "$YOJ_VERSION" ] && die "Please set YOJ_VERSION before calling prepare-release.sh"
[ -z "$YOJ_VERSION" ] && die "Please set YOJ_VERSION before calling prepare-release.sh!"
(echo "$YOJ_VERSION" | grep -- '-SNAPSHOT' >/dev/null) && die "Please set YOJ_VERSION to a release version (x.y.z)!"
[ -z "$MVN" ] && MVN='mvn'

echo "[**] Updating YOJ artifact version to ${YOJ_VERSION}..."
Expand All @@ -34,7 +35,7 @@ git tag "v${YOJ_VERSION}"

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

echo
echo "[**] Done!"
Expand Down
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</version>
<version>2.2.5-SNAPSHOT</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</version>
<version>2.2.5-SNAPSHOT</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</version>
<version>2.2.5-SNAPSHOT</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</version>
<version>2.2.5-SNAPSHOT</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</version>
<version>2.2.5-SNAPSHOT</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</version>
<version>2.2.5-SNAPSHOT</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</version>
<version>2.2.5-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down

0 comments on commit 4c8d901

Please sign in to comment.