File tree 1 file changed +23
-25
lines changed
plugin/src/test/kotlin/org/jlleitschuh/gradle/ktlint/testdsl
1 file changed +23
-25
lines changed Original file line number Diff line number Diff line change @@ -60,15 +60,13 @@ class TestProject(
60
60
}
61
61
62
62
fun withCleanKotlinScript () {
63
- // @formatter:off
64
63
createSourceFile(
65
64
" kotlin-script.kts" ,
66
65
"""
67
66
|println("zzz")
68
67
|
69
68
""" .trimMargin()
70
69
)
71
- // @formatter:on
72
70
}
73
71
74
72
fun withFailingKotlinScript () {
@@ -147,34 +145,34 @@ fun projectSetup(
147
145
// language=Groovy
148
146
it.resolve(" build.gradle" ).writeText(
149
147
"""
150
- plugins {
151
- id 'org.jetbrains.kotlin.$kotlinPluginType '
152
- id 'org.jlleitschuh.gradle.ktlint'
153
- }
154
-
155
- repositories {
156
- mavenCentral()
157
- }
158
-
159
- """ .trimIndent ()
148
+ | plugins {
149
+ | id 'org.jetbrains.kotlin.$kotlinPluginType '
150
+ | id 'org.jlleitschuh.gradle.ktlint'
151
+ | }
152
+ |
153
+ | repositories {
154
+ | mavenCentral()
155
+ | }
156
+ |
157
+ """ .trimMargin ()
160
158
)
161
159
162
160
// language=Groovy
163
161
it.resolve(" settings.gradle" ).writeText(
164
162
"""
165
- pluginManagement {
166
- repositories {
167
- mavenLocal()
168
- gradlePluginPortal()
169
- }
170
-
171
- plugins {
172
- id 'org.jetbrains.kotlin.$kotlinPluginType ' version '$kotlinPluginVersion '
173
- id 'org.jlleitschuh.gradle.ktlint' version '${TestVersions .pluginVersion} '
174
- }
175
- }
176
-
177
- """ .trimIndent ()
163
+ | pluginManagement {
164
+ | repositories {
165
+ | mavenLocal()
166
+ | gradlePluginPortal()
167
+ | }
168
+ |
169
+ | plugins {
170
+ | id 'org.jetbrains.kotlin.$kotlinPluginType ' version '$kotlinPluginVersion '
171
+ | id 'org.jlleitschuh.gradle.ktlint' version '${TestVersions .pluginVersion} '
172
+ | }
173
+ | }
174
+ |
175
+ """ .trimMargin ()
178
176
)
179
177
}
180
178
You can’t perform that action at this time.
0 commit comments