Use Maven for versioning and drop NPM version (#1336)

This commit is contained in:
Jon Koops 2021-10-14 11:00:49 +02:00 committed by GitHub
parent 01e6bfeef5
commit 60347f0234
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 5 deletions

2
get-version.sh Normal file → Executable file
View file

@ -1,3 +1,3 @@
#!/bin/bash -e
awk '/"version":/ { print $2 }' package.json | sed 's/"//g' | sed 's/,//'
mvn --file=./keycloak-theme/pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout

2
package-lock.json generated
View file

@ -1,12 +1,10 @@
{
"name": "keycloak-admin-ui",
"version": "0.0.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "keycloak-admin-ui",
"version": "0.0.1",
"license": "Apache",
"dependencies": {
"@keycloak/keycloak-admin-client": "^16.0.0-dev.32",

View file

@ -1,6 +1,5 @@
{
"name": "keycloak-admin-ui",
"version": "0.0.1",
"main": "index.js",
"homepage": "https://github.com/keycloak/keycloak-admin-ui",
"bugs": "https://github.com/keycloak/keycloak-admin-ui/issues",

1
set-version.sh Normal file → Executable file
View file

@ -1,5 +1,4 @@
#!/bin/bash -e
NEW_VERSION=$1
sed -i 's/"version": .*/"version": "'$NEW_VERSION'",/' package.json
mvn --file=./keycloak-theme/pom.xml versions:set -DnewVersion=$NEW_VERSION -DgenerateBackupPoms=false -DgroupId=org.keycloak* -DartifactId=*