Skip to content

Commit 43bda4f

Browse files
authored
build: hide new version of JetBrains plugin by default (#7489)
Extra: * migrate publish/sign-in config to v2 (based on: https://github.com/JetBrains/intellij-platform-gradle-plugin) * replace deprecated `ide(*, *)` with `create(*, *)`
1 parent 4cec16a commit 43bda4f

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

extensions/intellij/build.gradle.kts

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,24 @@ intellijPlatform {
5959
sinceBuild = "241"
6060
}
6161
}
62+
publishing {
63+
token = environment("PUBLISH_TOKEN")
64+
hidden = true
65+
val channel = if (isEap) "eap" else "default"
66+
channels = listOf(channel)
67+
}
68+
signing {
69+
certificateChain = environment("CERTIFICATE_CHAIN")
70+
privateKey = environment("PRIVATE_KEY")
71+
password = environment("PRIVATE_KEY_PASSWORD")
72+
}
6273
pluginVerification {
6374
ides {
64-
ide("IC", "2025.2")
65-
ide("IC", "2025.1")
66-
ide("IC", "2024.3")
67-
ide("IC", "2024.2")
68-
ide("IC", "2024.1")
75+
create("IC", "2025.2")
76+
create("IC", "2025.1")
77+
create("IC", "2024.3")
78+
create("IC", "2024.2")
79+
create("IC", "2024.1")
6980
}
7081
}
7182
}
@@ -122,19 +133,6 @@ tasks {
122133
check(pluginDescription.get().isNotEmpty()) { "Plugin description section not found in README.md" }
123134
}
124135

125-
signPlugin {
126-
certificateChain = environment("CERTIFICATE_CHAIN")
127-
privateKey = environment("PRIVATE_KEY")
128-
password = environment("PRIVATE_KEY_PASSWORD")
129-
}
130-
131-
publishPlugin {
132-
token = environment("PUBLISH_TOKEN")
133-
134-
val channel = if (isEap) "eap" else "default"
135-
channels = listOf(channel)
136-
}
137-
138136
runIde {
139137
val openProject = "$projectDir/../../manual-testing-sandbox"
140138
argumentProviders += CommandLineArgumentProvider {

0 commit comments

Comments
 (0)