Skip to content

Commit 3f6d2ed

Browse files
committed
[gha] update gateway EAP plugin to use build instead of version
1 parent 810f5e9 commit 3f6d2ed

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

components/ide/gha-update-image/lib/jb-helper/jb-gradle-task-config.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ import { parseArgs } from "util";
55

66
export type TaskInfo = TargetInfo & { id: number; taskName: string };
77

8+
// `usePlatformVersionType`
9+
// https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html#target-versions-installers:~:text=The%20listing%20of%20all%20present%20installers%20can%20be%20resolved%20with%20updates%20XML%20files%20for%20JetBrains%20IDEs%20and%20Android%20Studio%20as%20well%20as%20by%20executing%20the%20printProductsReleases%20task.
10+
//
11+
// curl -s https://www.jetbrains.com/updates/updates.xml | xmllint --xpath "//product/@name" -
12+
813
export const latestBackendPluginGradleTarget: TaskInfo = {
914
id: 1,
1015
taskName: "Latest Backend Plugin",
@@ -24,7 +29,7 @@ pluginUntilBuild={{pluginUntilBuild}}
2429
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
2530
# See https://jb.gg/intellij-platform-builds-list for available build versions.
2631
pluginVerifierIdeVersions={{pluginVerifierIdeVersions}}
27-
# Version from "com.jetbrains.intellij.idea" which can be found at https://www.jetbrains.com/intellij-repository/snapshots
32+
# Version from "com.jetbrains.intellij.idea" which can be found at https://www.jetbrains.com/updates/updates.xml or exec \`./gradlew printProductsReleases\`
2833
platformVersion={{platformVersion}}
2934
`,
3035
};
@@ -35,7 +40,7 @@ export const latestGatewayPluginGradleTarget: TaskInfo = {
3540
productId: "gateway",
3641
productCode: "GW",
3742
productType: "eap,rc,release",
38-
usePlatformVersionType: "version",
43+
usePlatformVersionType: "build",
3944
gradlePropertiesPath: path.resolve(
4045
pathToProjectRoot,
4146
"components/ide/jetbrains/gateway-plugin/gradle-latest.properties",
@@ -48,7 +53,7 @@ pluginUntilBuild={{pluginUntilBuild}}
4853
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
4954
# See https://jb.gg/intellij-platform-builds-list for available build versions.
5055
pluginVerifierIdeVersions={{pluginVerifierIdeVersions}}
51-
# Version from "com.jetbrains.gateway" which can be found at https://www.jetbrains.com/intellij-repository/snapshots
56+
# Version from "com.jetbrains.gateway" which can be found at https://www.jetbrains.com/updates/updates.xml or exec \`./gradlew printProductsReleases\`
5257
platformVersion={{platformVersion}}
5358
`,
5459
};
@@ -72,7 +77,7 @@ pluginUntilBuild={{pluginUntilBuild}}
7277
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
7378
# See https://jb.gg/intellij-platform-builds-list for available build versions.
7479
pluginVerifierIdeVersions={{pluginVerifierIdeVersions}}
75-
# Version from "com.jetbrains.gateway" which can be found at https://www.jetbrains.com/updates/updates.xml
80+
# Version from "com.jetbrains.gateway" which can be found at https://www.jetbrains.com/updates/updates.xml or exec \`./gradlew printProductsReleases\`
7681
platformVersion={{platformVersion}}
7782
`,
7883
};

components/ide/gha-update-image/lib/jb-helper/jb-helper.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ export interface TargetInfo {
3535
* @example eap,rc,release
3636
*/
3737
productType: string;
38+
/**
39+
* Examples value for different type:
40+
* - build 243.18137.22
41+
* - version 2024.3
42+
* - build-snapshot 243.18137-EAP-CANDIDATE-SNAPSHOT
43+
*/
3844
usePlatformVersionType: "build" | "version" | "build-snapshot";
3945
gradlePropertiesPath: string;
4046
gradlePropertiesTemplate: string;

0 commit comments

Comments
 (0)