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
|
|
|
|
|
|
|
|
# NPM
|
|
|
|
cd js
|
2023-04-20 05:31:52 +00:00
|
|
|
npm --workspace=admin-ui --workspace=account-ui --workspace=keycloak-masthead pkg set "dependencies.keycloak-js=$NEW_VERSION"
|
|
|
|
npm --workspace=admin-ui pkg set "dependencies.@keycloak/keycloak-admin-client=$NEW_VERSION"
|
|
|
|
npm --workspace=keycloak-js --workspace=@keycloak/keycloak-admin-client version $NEW_VERSION --allow-same-version --no-git-tag-version
|
2023-04-19 07:32:46 +00:00
|
|
|
cd -
|
|
|
|
|
|
|
|
# Documentation
|
|
|
|
cd docs/documentation
|
|
|
|
SHORT_VERSION=`echo $VERSION | awk -F '.' '{ print $1"."$2 }'`
|
|
|
|
sed -i 's/:project_version: .*/:project_version: '$VERSION'/' topics/templates/document-attributes.adoc
|
|
|
|
sed -i 's/:project_versionMvn: .*/:project_versionMvn: '$VERSION'/' topics/templates/document-attributes.adoc
|
|
|
|
sed -i 's/:project_versionNpm: .*/:project_versionNpm: '$VERSION'/' topics/templates/document-attributes.adoc
|
|
|
|
sed -i 's/:project_versionDoc: .*/:project_versionDoc: '$SHORT_VERSION'/' topics/templates/document-attributes.adoc
|
|
|
|
cd -
|
|
|
|
|