@@ -16,9 +16,9 @@ plugins {
1616}
1717
1818val pluginVersion: String =
19- Properties ()
20- .apply { load(file(" ../library/src/main/resources/version.properties" ).inputStream()) }
21- .getProperty(" buildVersion" )
19+ Properties ()
20+ .apply { load(file(" ../library/src/main/resources/version.properties" ).inputStream()) }
21+ .getProperty(" buildVersion" )
2222
2323group = properties(" pluginGroup" )
2424
@@ -53,55 +53,52 @@ tasks {
5353 untilBuild.set(properties(" pluginUntilBuild" ))
5454
5555 pluginDescription.set(
56- projectDir
57- .resolve(" README.md" )
58- .readText()
59- .lines()
60- .run {
61- val start = " <!-- Plugin description -->"
62- val end = " <!-- Plugin description end -->"
63-
64- if (! containsAll(listOf (start, end))) {
65- throw GradleException (
66- " Plugin description section not found in README.md:\n $start ... $end "
67- )
68- }
69- subList(indexOf(start) + 1 , indexOf(end))
70- }
71- .joinToString(" \n " )
72- .run { markdownToHTML(this ) }
73- )
56+ projectDir
57+ .resolve(" README.md" )
58+ .readText()
59+ .lines()
60+ .run {
61+ val start = " <!-- Plugin description -->"
62+ val end = " <!-- Plugin description end -->"
63+
64+ if (! containsAll(listOf (start, end))) {
65+ throw GradleException (
66+ " Plugin description section not found in README.md:\n $start ... $end " )
67+ }
68+ subList(indexOf(start) + 1 , indexOf(end))
69+ }
70+ .joinToString(" \n " )
71+ .run { markdownToHTML(this ) })
7472
7573 // Get the latest available change notes from the changelog file
7674 changeNotes.set(
77- provider {
78- with (changelog) {
79- renderItem(
80- getOrNull(properties(" pluginVersion" ))
81- ? : runCatching { getLatest() }.getOrElse { getUnreleased() },
82- Changelog .OutputType .HTML ,
83- )
84- }
85- }
86- )
75+ provider {
76+ with (changelog) {
77+ renderItem(
78+ getOrNull(properties(" pluginVersion" ))
79+ ? : runCatching { getLatest() }.getOrElse { getUnreleased() },
80+ Changelog .OutputType .HTML ,
81+ )
82+ }
83+ })
8784 }
8885
8986 // Read more: https://github.com/JetBrains/intellij-ui-test-robot
9087 val runIdeForUiTests by
91- intellijPlatformTesting.runIde.registering {
92- task {
93- jvmArgumentProviders + = CommandLineArgumentProvider {
94- listOf (
95- " -Drobot-server.port=8082" ,
96- " -Dide.mac.message.dialogs.as.sheets=false" ,
97- " -Djb.privacy.policy.text=<!--999.999-->" ,
98- " -Djb.consents.confirmation.enabled=false" ,
99- )
88+ intellijPlatformTesting.runIde.registering {
89+ task {
90+ jvmArgumentProviders + = CommandLineArgumentProvider {
91+ listOf (
92+ " -Drobot-server.port=8082" ,
93+ " -Dide.mac.message.dialogs.as.sheets=false" ,
94+ " -Djb.privacy.policy.text=<!--999.999-->" ,
95+ " -Djb.consents.confirmation.enabled=false" ,
96+ )
97+ }
10098 }
101- }
10299
103- plugins { robotServerPlugin() }
104- }
100+ plugins { robotServerPlugin() }
101+ }
105102}
106103
107104lint {
0 commit comments