Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita2fbb41

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 parent2fadfb3 commita2fbb41

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

‎build.gradle.kts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
importorg.jetbrains.changelog.Changelog
22
importorg.jetbrains.changelog.markdownToHTML
3+
importorg.jetbrains.intellij.platform.gradle.IntelliJPlatformType
34

45
funproperties(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‎

Lines changed: 2 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp