From 831f7729ab352fc0cc05674c3d7ef93569621c4f Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Thu, 28 Nov 2024 23:25:53 +0100 Subject: [PATCH] Rename to latest-versions.js --- docusaurus.config.ts | 4 +-- src/plugins/global-variables.js | 13 -------- src/plugins/latest-versions.js | 58 +++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+), 15 deletions(-) delete mode 100644 src/plugins/global-variables.js create mode 100644 src/plugins/latest-versions.js diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 6242d8f461..bd26930457 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -2,7 +2,7 @@ import type * as Preset from "@docusaurus/preset-classic"; import type { Config } from "@docusaurus/types"; import { themes as prismThemes } from "prism-react-renderer"; import remarkTokenReplacer from "./src/plugins/replace-tokens"; -import globalVariables from "./src/plugins/global-variables"; +import latestVersions from "./src/plugins/latest-versions"; const config: Config = { title: "OpenRewrite Docs", @@ -38,7 +38,7 @@ const config: Config = { [ remarkTokenReplacer, { - replacements: globalVariables, + replacements: latestVersions, }, ], ], diff --git a/src/plugins/global-variables.js b/src/plugins/global-variables.js deleted file mode 100644 index 24647f2d5f..0000000000 --- a/src/plugins/global-variables.js +++ /dev/null @@ -1,13 +0,0 @@ -const globalVariables = { - "{{VERSION_REWRITE_RECIPE_BOM}}": "2.23.1", - "{{VERSION_REWRITE_GRADLE_PLUGIN}}": "6.28.1", - "{{VERSION_REWRITE_JAVA_DEPENDENCIES}}": "1.24.1", - "{{VERSION_REWRITE_LOGGING_FRAMEWORKS}}": "2.17.1", - "{{VERSION_REWRITE_MAVEN_PLUGIN}}": "5.46.1", - "{{VERSION_REWRITE_MIGRATE_JAVA}}": "2.30.1", - "{{VERSION_REWRITE_TEMPLATING}}": "1.19.1", - "{{VERSION_REWRITE_TESTING_FRAMEWORKS}}": "2.23.1", - "{{VERSION_REWRITE_SPRING}}": "5.24.1", - "{{VERSION_REWRITE_STATIC_ANALYSIS}}": "1.21.1", -}; -export default globalVariables; diff --git a/src/plugins/latest-versions.js b/src/plugins/latest-versions.js new file mode 100644 index 0000000000..95b9ee0b50 --- /dev/null +++ b/src/plugins/latest-versions.js @@ -0,0 +1,58 @@ +const latestVersions = { + "{{VERSION_REWRITE_RECIPE_BOM}}": "2.23.1", + "{{VERSION_REWRITE_GRADLE_PLUGIN}}": "6.28.1", + "{{VERSION_REWRITE_MAVEN_PLUGIN}}": "5.46.1", + "{{VERSION_REWRITE_CORE}}": "8.41.1", + "{{VERSION_REWRITE_GRADLE}}": "8.41.1", + "{{VERSION_REWRITE_GROOVY}}": "8.41.1", + "{{VERSION_REWRITE_HCL}}": "8.41.1", + "{{VERSION_REWRITE_JAVA}}": "8.41.1", + "{{VERSION_REWRITE_JSON}}": "8.41.1", + "{{VERSION_REWRITE_MAVEN}}": "8.41.1", + "{{VERSION_REWRITE_PROPERTIES}}": "8.41.1", + "{{VERSION_REWRITE_PROTOBUF}}": "8.41.1", + "{{VERSION_REWRITE_XML}}": "8.41.1", + "{{VERSION_REWRITE_YAML}}": "8.41.1", + "{{VERSION_REWRITE_KOTLIN}}": "1.23.1", + "{{VERSION_REWRITE_TEMPLATING}}": "1.19.1", + "{{VERSION_REWRITE_ANALYSIS}}": "2.13.1", + "{{VERSION_REWRITE_AI_SEARCH}}": "0.20.1", + "{{VERSION_REWRITE_ANDROID}}": "0.4.1", + "{{VERSION_REWRITE_ALL}}": "1.8.1", + "{{VERSION_REWRITE_APACHE}}": "1.9.1", + "{{VERSION_REWRITE_CIRCLECI}}": "2.9.1", + "{{VERSION_REWRITE_CODEMODS}}": "0.4.4", + "{{VERSION_REWRITE_CODEMODS_NG}}": "0.5.3", + "{{VERSION_REWRITE_CONCOURSE}}": "2.9.1", + "{{VERSION_REWRITE_CUCUMBER_JVM}}": "1.7.1", + "{{VERSION_REWRITE_DOCKER}}": "1.3.1", + "{{VERSION_REWRITE_DOTNET}}": "0.5.1", + "{{VERSION_REWRITE_FEATURE_FLAGS}}": "0.11.1", + "{{VERSION_REWRITE_GITHUB_ACTIONS}}": "2.10.1", + "{{VERSION_REWRITE_GITLAB}}": "0.3.1", + "{{VERSION_REWRITE_HIBERNATE}}": "1.13.1", + "{{VERSION_REWRITE_JACKSON}}": "0.10.1", + "{{VERSION_REWRITE_JAVA_DEPENDENCIES}}": "1.24.1", + "{{VERSION_REWRITE_JAVA_SECURITY}}": "2.16.1", + "{{VERSION_REWRITE_JENKINS}}": "0.18.1", + "{{VERSION_REWRITE_KUBERNETES}}": "2.11.1", + "{{VERSION_REWRITE_LIBERTY}}": "1.10.1", + "{{VERSION_REWRITE_LOGGING_FRAMEWORKS}}": "2.17.1", + "{{VERSION_REWRITE_MICROMETER}}": "0.11.1", + "{{VERSION_REWRITE_MICRONAUT}}": "2.13.1", + "{{VERSION_REWRITE_MIGRATE_JAVA}}": "2.30.1", + "{{VERSION_REWRITE_NODEJS}}": "0.13.2", + "{{VERSION_REWRITE_OKHTTP}}": "0.6.1", + "{{VERSION_REWRITE_OPENAPI}}": "0.10.1", + "{{VERSION_REWRITE_QUARKUS}}": "2.11.1", + "{{VERSION_REWRITE_REACTIVE_STREAMS}}": "0.6.1", + "{{VERSION_REWRITE_RECOMMENDATIONS}}": "1.14.1", + "{{VERSION_REWRITE_SPRING}}": "5.24.1", + "{{VERSION_REWRITE_SQL}}": "1.12.1", + "{{VERSION_REWRITE_STATIC_ANALYSIS}}": "1.21.1", + "{{VERSION_REWRITE_STRUTS}}": "0.8.1", + "{{VERSION_REWRITE_TERRAFORM}}": "2.6.1", + "{{VERSION_REWRITE_TESTING_FRAMEWORKS}}": "2.23.1", + "{{VERSION_REWRITE_THIRD_PARTY}}": "0.12.1", +}; +export default latestVersions;