From f92b77edafabd85975755661d4d6efe271b4e09f Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Wed, 6 Apr 2022 09:04:27 +0200 Subject: [PATCH] Documentation dist bundle (#1464) Closes #1464 Co-authored-by: keycloak-bot --- aggregation/pom.xml | 2 +- api_documentation/pom.xml | 2 +- authorization_services/pom.xml | 2 +- dist/assembly.xml | 19 +++++++++++++++++ dist/pom.xml | 38 ++++++++++++++++++++++++++++++++++ getting_started/pom.xml | 2 +- header-maven-plugin/pom.xml | 4 ++-- openshift-openj9/pom.xml | 2 +- openshift/pom.xml | 2 +- pom.xml | 21 +++---------------- release_notes/pom.xml | 2 +- securing_apps/pom.xml | 2 +- server_admin/pom.xml | 2 +- server_development/pom.xml | 2 +- server_installation/pom.xml | 2 +- set-version.sh | 2 ++ tests/pom.xml | 2 +- upgrading/pom.xml | 2 +- 18 files changed, 77 insertions(+), 33 deletions(-) create mode 100644 dist/assembly.xml create mode 100644 dist/pom.xml diff --git a/aggregation/pom.xml b/aggregation/pom.xml index 48b6666439..69a25f960c 100644 --- a/aggregation/pom.xml +++ b/aggregation/pom.xml @@ -5,7 +5,7 @@ org.keycloak.documentation documentation-parent - 1.0.0-SNAPSHOT + 999-SNAPSHOT ../ diff --git a/api_documentation/pom.xml b/api_documentation/pom.xml index 49b1fc26e3..7279dcea3b 100644 --- a/api_documentation/pom.xml +++ b/api_documentation/pom.xml @@ -5,7 +5,7 @@ org.keycloak.documentation documentation-parent - 1.0.0-SNAPSHOT + 999-SNAPSHOT ../ diff --git a/authorization_services/pom.xml b/authorization_services/pom.xml index 60a3fbc478..0876035da2 100644 --- a/authorization_services/pom.xml +++ b/authorization_services/pom.xml @@ -5,7 +5,7 @@ org.keycloak.documentation documentation-parent - 1.0.0-SNAPSHOT + 999-SNAPSHOT ../ diff --git a/dist/assembly.xml b/dist/assembly.xml new file mode 100644 index 0000000000..9c27b67289 --- /dev/null +++ b/dist/assembly.xml @@ -0,0 +1,19 @@ + + + docs-dist + + + zip + + + true + + + + ../target + + + + + \ No newline at end of file diff --git a/dist/pom.xml b/dist/pom.xml new file mode 100644 index 0000000000..8ee7ce2659 --- /dev/null +++ b/dist/pom.xml @@ -0,0 +1,38 @@ + + + 4.0.0 + + + org.keycloak.documentation + documentation-parent + 999-SNAPSHOT + ../ + + + Keycloak Documentation dist + keycloak-documentation + pom + + + + + maven-assembly-plugin + + + assemble + package + + single + + + + assembly.xml + + false + + + + + + + diff --git a/getting_started/pom.xml b/getting_started/pom.xml index 50ecd918bf..b973b3301a 100644 --- a/getting_started/pom.xml +++ b/getting_started/pom.xml @@ -5,7 +5,7 @@ org.keycloak.documentation documentation-parent - 1.0.0-SNAPSHOT + 999-SNAPSHOT ../ diff --git a/header-maven-plugin/pom.xml b/header-maven-plugin/pom.xml index 78015d9253..40b63fcb45 100644 --- a/header-maven-plugin/pom.xml +++ b/header-maven-plugin/pom.xml @@ -5,12 +5,12 @@ documentation-parent org.keycloak.documentation - 1.0.0-SNAPSHOT + 999-SNAPSHOT org.keycloak.documentation header-maven-plugin - 1.0.0-SNAPSHOT + 999-SNAPSHOT maven-plugin github-maven-plugin diff --git a/openshift-openj9/pom.xml b/openshift-openj9/pom.xml index 97be9ab3c3..3c6f0a4e0b 100644 --- a/openshift-openj9/pom.xml +++ b/openshift-openj9/pom.xml @@ -5,7 +5,7 @@ org.keycloak.documentation documentation-parent - 1.0.0-SNAPSHOT + 999-SNAPSHOT ../ diff --git a/openshift/pom.xml b/openshift/pom.xml index 93497cc2bf..cc3eba2720 100644 --- a/openshift/pom.xml +++ b/openshift/pom.xml @@ -5,7 +5,7 @@ org.keycloak.documentation documentation-parent - 1.0.0-SNAPSHOT + 999-SNAPSHOT ../ diff --git a/pom.xml b/pom.xml index 5d2aa321d4..92e28a08fa 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ Keycloak Documentation Parent org.keycloak.documentation documentation-parent - 1.0.0-SNAPSHOT + 999-SNAPSHOT pom @@ -40,6 +40,7 @@ release_notes upgrading aggregation + dist @@ -138,7 +139,7 @@ org.keycloak.documentation header-maven-plugin - 1.0.0-SNAPSHOT + 999-SNAPSHOT add-file-headers @@ -218,22 +219,6 @@ org.apache.maven.plugins maven-assembly-plugin ${version.plugin.assembly} - - - asciidoc-html-zip - package - - single - - - false - true - - ../assembly.xml - - - - diff --git a/release_notes/pom.xml b/release_notes/pom.xml index d0aec3c01f..1e18d7161e 100644 --- a/release_notes/pom.xml +++ b/release_notes/pom.xml @@ -5,7 +5,7 @@ org.keycloak.documentation documentation-parent - 1.0.0-SNAPSHOT + 999-SNAPSHOT ../ diff --git a/securing_apps/pom.xml b/securing_apps/pom.xml index 53ea70d3ed..c1a605b7d3 100644 --- a/securing_apps/pom.xml +++ b/securing_apps/pom.xml @@ -5,7 +5,7 @@ org.keycloak.documentation documentation-parent - 1.0.0-SNAPSHOT + 999-SNAPSHOT ../ diff --git a/server_admin/pom.xml b/server_admin/pom.xml index 13a4d52ef3..b4ed0bbeae 100644 --- a/server_admin/pom.xml +++ b/server_admin/pom.xml @@ -5,7 +5,7 @@ org.keycloak.documentation documentation-parent - 1.0.0-SNAPSHOT + 999-SNAPSHOT ../ diff --git a/server_development/pom.xml b/server_development/pom.xml index 30d965d75b..131ba14ff1 100644 --- a/server_development/pom.xml +++ b/server_development/pom.xml @@ -5,7 +5,7 @@ org.keycloak.documentation documentation-parent - 1.0.0-SNAPSHOT + 999-SNAPSHOT ../ diff --git a/server_installation/pom.xml b/server_installation/pom.xml index 01ff186ed8..2fd6eacd50 100644 --- a/server_installation/pom.xml +++ b/server_installation/pom.xml @@ -5,7 +5,7 @@ org.keycloak.documentation documentation-parent - 1.0.0-SNAPSHOT + 999-SNAPSHOT ../ diff --git a/set-version.sh b/set-version.sh index 7d4a54ef79..4b43ddc453 100755 --- a/set-version.sh +++ b/set-version.sh @@ -4,6 +4,8 @@ VERSION=$1 SHORT_VERSION=`echo $VERSION | awk -F '.' '{ print $1"."$2 }'` NPM_VERSION=`echo $VERSION | sed 's/.Final//' | sed 's/.CR/-cr./' | sed 's/.Beta/-beta./' | sed 's/.Alpha/-alpha./'` +mvn versions:set -DnewVersion=$VERSION -DgenerateBackupPoms=false -DgroupId=org.keycloak* -DartifactId=* + sed -i 's/:project_version: .*/:project_version: '$VERSION'/' topics/templates/document-attributes-community.adoc sed -i 's/:project_versionMvn: .*/:project_versionMvn: '$VERSION'/' topics/templates/document-attributes-community.adoc sed -i 's/:project_versionNpm: .*/:project_versionNpm: '$NPM_VERSION'/' topics/templates/document-attributes-community.adoc diff --git a/tests/pom.xml b/tests/pom.xml index 09b5e7dab4..bbc54db622 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -41,7 +41,7 @@ org.keycloak.documentation documentation-parent - 1.0.0-SNAPSHOT + 999-SNAPSHOT ../ diff --git a/upgrading/pom.xml b/upgrading/pom.xml index 45fe6ee01c..616f7d512b 100644 --- a/upgrading/pom.xml +++ b/upgrading/pom.xml @@ -5,7 +5,7 @@ org.keycloak.documentation documentation-parent - 1.0.0-SNAPSHOT + 999-SNAPSHOT ../