@@ -32,7 +32,7 @@ kotlin {
3232// Configure project's dependencies
3333repositories {
3434 mavenCentral()
35-
35+
3636 // IntelliJ Platform Gradle Plugin Repositories Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-repositories-extension.html
3737 intellijPlatform {
3838 defaultRepositories()
@@ -42,22 +42,22 @@ repositories {
4242// Dependencies are managed with Gradle version catalog - read more: https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog
4343dependencies {
4444 compileOnly(libs.kotlinxSerialization)
45-
45+
4646 testImplementation(kotlin(" test" ))
4747 testImplementation(libs.junit)
48-
48+
4949 // IntelliJ Platform Gradle Plugin Dependencies Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html
5050 intellijPlatform {
5151 create(
5252 providers.gradleProperty(" platformType" ),
5353 providers.gradleProperty(" platformVersion" ),
5454 useInstaller = false ,
5555 )
56-
56+
5757 // Plugin Dependencies. Uses `platformBundledPlugins` property from the gradle.properties file for bundled IntelliJ Platform plugins.
5858 bundledPlugins(providers.gradleProperty(" platformBundledPlugins" ).map { it.split(' ,' ) })
5959 plugins(providers.gradleProperty(" platformPlugins" ).map { it.split(' ,' ) })
60-
60+
6161 pluginVerifier()
6262 zipSigner()
6363 testFramework(TestFrameworkType .Platform )
@@ -69,22 +69,22 @@ intellijPlatform {
6969 pluginConfiguration {
7070 name = providers.gradleProperty(" pluginName" )
7171 version = providers.gradleProperty(" pluginVersion" )
72-
72+
7373 // Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
7474 description = providers.fileContents(layout.projectDirectory.file(" README.md" )).asText.map {
7575 val start = " <!-- Plugin description -->"
7676 val end = " <!-- Plugin description end -->"
77-
77+
7878 with (it.lines()) {
7979 if (! containsAll(listOf (start, end))) {
8080 throw GradleException (" Plugin description section not found in README.md:\n $start ... $end " )
8181 }
8282 subList(indexOf(start) + 1 , indexOf(end)).joinToString(" \n " ).let (::markdownToHTML)
8383 }
8484 }
85-
85+
8686 val changelog = project.changelog
87-
87+
8888 // local variable for configuration cache compatibility // Get the latest available change notes from the changelog file
8989 changeNotes = providers.gradleProperty(" pluginVersion" ).map { pluginVersion ->
9090 with (changelog) {
@@ -94,29 +94,29 @@ intellijPlatform {
9494 )
9595 }
9696 }
97-
97+
9898 ideaVersion {
9999 sinceBuild = providers.gradleProperty(" pluginSinceBuild" )
100100 untilBuild = providers.gradleProperty(" pluginUntilBuild" )
101101 }
102102 }
103-
103+
104104 signing {
105105 certificateChain = providers.environmentVariable(" CERTIFICATE_CHAIN" )
106106 privateKey = providers.environmentVariable(" PRIVATE_KEY" )
107107 password = providers.environmentVariable(" PRIVATE_KEY_PASSWORD" )
108108 }
109-
109+
110110 publishing {
111111 token = providers.environmentVariable(" PUBLISH_TOKEN" )
112-
112+
113113 // The pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3
114114 // Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more:
115115 // https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel
116116 channels = providers.gradleProperty(" pluginVersion" )
117117 .map { listOf (it.substringAfter(' -' , " " ).substringBefore(' .' ).ifEmpty { " default" }) }
118118 }
119-
119+
120120 pluginVerification {
121121 failureLevel = listOf (INVALID_PLUGIN , COMPATIBILITY_PROBLEMS , MISSING_DEPENDENCIES )
122122 verificationReportsFormats = listOf (MARKDOWN , PLAIN )
@@ -130,7 +130,7 @@ intellijPlatform {
130130 )
131131 }
132132 }
133-
133+
134134 }
135135}
136136
@@ -163,22 +163,22 @@ val prepareSandboxConfig: PrepareSandboxTask.() -> Unit = {
163163
164164tasks {
165165 runIde {
166-
166+
167167 // From https://app.slack.com/client/T5P9YATH9/C5U8BM1MK
168168 // systemProperty("ide.experimental.ui", "true")
169169 // systemProperty("projectView.hide.dot.idea", "false")
170170 // systemProperty("terminal.new.ui", "false")
171171 // systemProperty("ide.tree.painter.compact.default", "true")
172172 }
173-
173+
174174 wrapper {
175175 gradleVersion = providers.gradleProperty(" gradleVersion" ).get()
176176 }
177-
177+
178178 publishPlugin {
179179 dependsOn(patchChangelog)
180180 }
181-
181+
182182 prepareSandbox(prepareSandboxConfig)
183183}
184184
@@ -204,29 +204,32 @@ tasks.withType<KotlinCompile> {
204204 )
205205 }
206206 }
207-
207+
208208 prepareSandboxTask(prepareSandboxConfig)
209-
209+
210210 plugins {
211211 robotServerPlugin(Constraints .LATEST_VERSION )
212212 }
213213}
214214
215215@Suppress(" unused" ) val runIdePyCharmProf by intellijPlatformTesting.runIde.registering {
216216 type = IntelliJPlatformType .PyCharmProfessional
217-
217+
218218 prepareSandboxTask(prepareSandboxConfig)
219219}
220220
221221@Suppress(" unused" ) val runIdePyCharmCommunityEAP by intellijPlatformTesting.runIde.registering {
222222 type = IntelliJPlatformType .PyCharmCommunity
223223 version = " LATEST-EAP-SNAPSHOT"
224-
224+
225225 prepareSandboxTask(prepareSandboxConfig)
226226}
227227
228228@Suppress(" unused" ) val runIdeIntellijIdeaC by intellijPlatformTesting.runIde.registering {
229229 type = IntelliJPlatformType .IntellijIdeaCommunity
230-
230+ plugins {
231+ plugin(" PythonCore:251.23774.435" )
232+ }
233+
231234 prepareSandboxTask(prepareSandboxConfig)
232235}
0 commit comments