Skip to content

Commit

Permalink
Use Maven for versioning and drop NPM version (#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkoops authored Oct 14, 2021
1 parent 01e6bfe commit 60347f0
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion get-version.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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 changes: 0 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 0 additions & 1 deletion set-version.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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=*

0 comments on commit 60347f0

Please sign in to comment.