Use Maven for versioning and drop NPM version (#1336)
This commit is contained in:
parent
01e6bfeef5
commit
60347f0234
4 changed files with 1 additions and 5 deletions
2
get-version.sh
Normal file → Executable file
2
get-version.sh
Normal file → Executable 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
2
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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
1
set-version.sh
Normal file → Executable 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=*
|
Loading…
Reference in a new issue