Skip to content

Commit a2fbb41

Browse files
committed
chore: simplify build script
Use gateway DSL to provide the platform type and version. The plugin verification as well as the platform type depends on the versions in the format "2025.x"
1 parent 2fadfb3 commit a2fbb41

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

build.gradle.kts

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import org.jetbrains.changelog.Changelog
22
import org.jetbrains.changelog.markdownToHTML
3+
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
34

45
fun properties(key: String) = project.findProperty(key).toString()
56

@@ -56,7 +57,7 @@ dependencies {
5657

5758
// IntelliJ Platform Gradle Plugin Dependencies Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html
5859
intellijPlatform {
59-
create(providers.gradleProperty("platformType"), providers.gradleProperty("platformVersion"))
60+
gateway(providers.gradleProperty("platformVersion"))
6061

6162
// Plugin Dependencies. Uses `platformBundledPlugins` property from the gradle.properties file for bundled IntelliJ Platform plugins.
6263
bundledPlugins(providers.gradleProperty("platformBundledPlugins").map { it.split(',') })
@@ -111,7 +112,9 @@ intellijPlatform {
111112

112113
pluginVerification {
113114
ides {
114-
recommended()
115+
providers.gradleProperty("verifyVersions").get().split(',').map(String::trim).forEach { version ->
116+
ide(IntelliJPlatformType.Gateway, version)
117+
}
115118
}
116119
}
117120

gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ pluginSinceBuild=233.6745
2323
# (for example if 233.14808-EAP-CANDIDATE-SNAPSHOT is missing then find a 233.*
2424
# that exists, ideally the most recent one, for example
2525
# 233.15325-EAP-CANDIDATE-SNAPSHOT).
26-
platformType=GW
2726
platformVersion=2023.3
2827
# Gateway does not have open sources.
2928
platformDownloadSources=true
30-
verifyVersions=2023.3,2024.1,2024.2,2024.3,2025.1
29+
# available releases listed at: https://data.services.jetbrains.com/products?code=GW
30+
verifyVersions=2023.3.4,2024.1.2,2024.2.3,2024.3.3,2025.1
3131
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
3232
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
3333
platformPlugins=

0 commit comments

Comments
 (0)