Skip to content

Commit

Permalink
[gha] update gateway EAP plugin to use build instead of version (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mustard-mh authored Oct 23, 2024
1 parent 04faad1 commit a3ab53e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import { parseArgs } from "util";

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

// 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.
// But use https://data.services.jetbrains.com/products/releases?code=GW&type=eap,rc,release&platform=linux seems better

export const latestBackendPluginGradleTarget: TaskInfo = {
id: 1,
taskName: "Latest Backend Plugin",
Expand All @@ -24,7 +27,7 @@ pluginUntilBuild={{pluginUntilBuild}}
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
# See https://jb.gg/intellij-platform-builds-list for available build versions.
pluginVerifierIdeVersions={{pluginVerifierIdeVersions}}
# Version from "com.jetbrains.intellij.idea" which can be found at https://www.jetbrains.com/intellij-repository/snapshots
# Version from "com.jetbrains.intellij.idea" which can be found at https://www.jetbrains.com/updates/updates.xml or exec \`./gradlew printProductsReleases\`
platformVersion={{platformVersion}}
`,
};
Expand All @@ -35,7 +38,7 @@ export const latestGatewayPluginGradleTarget: TaskInfo = {
productId: "gateway",
productCode: "GW",
productType: "eap,rc,release",
usePlatformVersionType: "version",
usePlatformVersionType: "build",
gradlePropertiesPath: path.resolve(
pathToProjectRoot,
"components/ide/jetbrains/gateway-plugin/gradle-latest.properties",
Expand All @@ -48,7 +51,7 @@ pluginUntilBuild={{pluginUntilBuild}}
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
# See https://jb.gg/intellij-platform-builds-list for available build versions.
pluginVerifierIdeVersions={{pluginVerifierIdeVersions}}
# Version from "com.jetbrains.gateway" which can be found at https://www.jetbrains.com/intellij-repository/snapshots
# Version from "com.jetbrains.gateway" which can be found at https://www.jetbrains.com/updates/updates.xml or exec \`./gradlew printProductsReleases\`
platformVersion={{platformVersion}}
`,
};
Expand All @@ -72,7 +75,7 @@ pluginUntilBuild={{pluginUntilBuild}}
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
# See https://jb.gg/intellij-platform-builds-list for available build versions.
pluginVerifierIdeVersions={{pluginVerifierIdeVersions}}
# Version from "com.jetbrains.gateway" which can be found at https://www.jetbrains.com/updates/updates.xml
# Version from "com.jetbrains.gateway" which can be found at https://www.jetbrains.com/updates/updates.xml or exec \`./gradlew printProductsReleases\`
platformVersion={{platformVersion}}
`,
};
Expand Down
6 changes: 6 additions & 0 deletions components/ide/gha-update-image/lib/jb-helper/jb-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ export interface TargetInfo {
* @example eap,rc,release
*/
productType: string;
/**
* Examples value for different type:
* - build 243.18137.22
* - version 2024.3
* - build-snapshot 243.18137-EAP-CANDIDATE-SNAPSHOT
*/
usePlatformVersionType: "build" | "version" | "build-snapshot";
gradlePropertiesPath: string;
gradlePropertiesTemplate: string;
Expand Down

0 comments on commit a3ab53e

Please sign in to comment.