@@ -16,9 +16,9 @@ plugins {
16
16
}
17
17
18
18
val 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" )
22
22
23
23
group = properties(" pluginGroup" )
24
24
@@ -53,55 +53,52 @@ tasks {
53
53
untilBuild.set(properties(" pluginUntilBuild" ))
54
54
55
55
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 ) })
74
72
75
73
// Get the latest available change notes from the changelog file
76
74
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
+ })
87
84
}
88
85
89
86
// Read more: https://github.com/JetBrains/intellij-ui-test-robot
90
87
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
+ }
100
98
}
101
- }
102
99
103
- plugins { robotServerPlugin() }
104
- }
100
+ plugins { robotServerPlugin() }
101
+ }
105
102
}
106
103
107
104
lint {
0 commit comments