2017-11-09 13:28:30 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
NEW_VERSION=$1
|
|
|
|
|
2023-02-15 15:31:48 +00:00
|
|
|
# Maven
|
2017-11-09 13:28:30 +00:00
|
|
|
mvn versions:set -DnewVersion=$NEW_VERSION -DgenerateBackupPoms=false -DgroupId=org.keycloak* -DartifactId=*
|
2022-02-01 08:42:09 +00:00
|
|
|
|
2023-02-15 15:31:48 +00:00
|
|
|
# Docker
|
|
|
|
sed -i "s/ENV KEYCLOAK_VERSION .*/ENV KEYCLOAK_VERSION $NEW_VERSION/" quarkus/container/Dockerfile
|
|
|
|
|
2023-04-19 07:32:46 +00:00
|
|
|
# Documentation
|
|
|
|
cd docs/documentation
|
2023-04-20 07:07:05 +00:00
|
|
|
SHORT_VERSION=`echo $NEW_VERSION | awk -F '.' '{ print $1"."$2 }'`
|
|
|
|
sed -i 's/:project_version: .*/:project_version: '$NEW_VERSION'/' topics/templates/document-attributes.adoc
|
|
|
|
sed -i 's/:project_versionMvn: .*/:project_versionMvn: '$NEW_VERSION'/' topics/templates/document-attributes.adoc
|
|
|
|
sed -i 's/:project_versionNpm: .*/:project_versionNpm: '$NEW_VERSION'/' topics/templates/document-attributes.adoc
|
2023-04-19 07:32:46 +00:00
|
|
|
sed -i 's/:project_versionDoc: .*/:project_versionDoc: '$SHORT_VERSION'/' topics/templates/document-attributes.adoc
|
|
|
|
cd -
|
|
|
|
|
2023-05-05 16:03:24 +00:00
|
|
|
# Keycloak JS
|
|
|
|
echo "$(jq '. += {"version": "'$NEW_VERSION'"}' js/libs/keycloak-js/package.json)" > js/libs/keycloak-js/package.json
|
|
|
|
|
|
|
|
# Keycloak Admin Client
|
|
|
|
echo "$(jq '. += {"version": "'$NEW_VERSION'"}' js/libs/keycloak-admin-client/package.json)" > js/libs/keycloak-admin-client/package.json
|