Skip to content

Commit a3ab53e

Browse files
authored
[gha] update gateway EAP plugin to use build instead of version (#20313)
1 parent 04faad1 commit a3ab53e

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

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

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

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

8+
// Official doc 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.
9+
// But use https://data.services.jetbrains.com/products/releases?code=GW&type=eap,rc,release&platform=linux seems better
10+
811
export const latestBackendPluginGradleTarget: TaskInfo = {
912
id: 1,
1013
taskName: "Latest Backend Plugin",
@@ -24,7 +27,7 @@ pluginUntilBuild={{pluginUntilBuild}}
2427
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
2528
# See https://jb.gg/intellij-platform-builds-list for available build versions.
2629
pluginVerifierIdeVersions={{pluginVerifierIdeVersions}}
27-
# Version from "com.jetbrains.intellij.idea" which can be found at https://www.jetbrains.com/intellij-repository/snapshots
30+
# Version from "com.jetbrains.intellij.idea" which can be found at https://www.jetbrains.com/updates/updates.xml or exec \`./gradlew printProductsReleases\`
2831
platformVersion={{platformVersion}}
2932
`,
3033
};
@@ -35,7 +38,7 @@ export const latestGatewayPluginGradleTarget: TaskInfo = {
3538
productId: "gateway",
3639
productCode: "GW",
3740
productType: "eap,rc,release",
38-
usePlatformVersionType: "version",
41+
usePlatformVersionType: "build",
3942
gradlePropertiesPath: path.resolve(
4043
pathToProjectRoot,
4144
"components/ide/jetbrains/gateway-plugin/gradle-latest.properties",
@@ -48,7 +51,7 @@ pluginUntilBuild={{pluginUntilBuild}}
4851
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
4952
# See https://jb.gg/intellij-platform-builds-list for available build versions.
5053
pluginVerifierIdeVersions={{pluginVerifierIdeVersions}}
51-
# Version from "com.jetbrains.gateway" which can be found at https://www.jetbrains.com/intellij-repository/snapshots
54+
# Version from "com.jetbrains.gateway" which can be found at https://www.jetbrains.com/updates/updates.xml or exec \`./gradlew printProductsReleases\`
5255
platformVersion={{platformVersion}}
5356
`,
5457
};
@@ -72,7 +75,7 @@ pluginUntilBuild={{pluginUntilBuild}}
7275
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
7376
# See https://jb.gg/intellij-platform-builds-list for available build versions.
7477
pluginVerifierIdeVersions={{pluginVerifierIdeVersions}}
75-
# Version from "com.jetbrains.gateway" which can be found at https://www.jetbrains.com/updates/updates.xml
78+
# Version from "com.jetbrains.gateway" which can be found at https://www.jetbrains.com/updates/updates.xml or exec \`./gradlew printProductsReleases\`
7679
platformVersion={{platformVersion}}
7780
`,
7881
};

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)