Skip to content

Commit 47ae06a

Browse files
committed
Исправление обращения к buildDirectory
1 parent eaa6a4e commit 47ae06a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ tasks.check {
218218
tasks.jacocoTestReport {
219219
reports {
220220
xml.required.set(true)
221-
xml.outputLocation.set(File("${layout.buildDirectory}/reports/jacoco/test/jacoco.xml"))
221+
xml.outputLocation.set(File("${layout.buildDirectory.get()}/reports/jacoco/test/jacoco.xml"))
222222
}
223223
}
224224

@@ -238,12 +238,12 @@ tasks.generateDiagnosticDocs {
238238
doLast {
239239
val resourcePath = tasks["processResources"].outputs.files.singleFile
240240
copy {
241-
from("${layout.buildDirectory}/docs/diagnostics")
241+
from("${layout.buildDirectory.get()}/docs/diagnostics")
242242
into("$resourcePath/com/github/_1c_syntax/bsl/languageserver/diagnostics/ru")
243243
}
244244

245245
copy {
246-
from("${layout.buildDirectory}/docs/en/diagnostics")
246+
from("${layout.buildDirectory.get()}/docs/en/diagnostics")
247247
into("$resourcePath/com/github/_1c_syntax/bsl/languageserver/diagnostics/en")
248248
}
249249
}
@@ -285,7 +285,7 @@ sonarqube {
285285
property("sonar.projectKey", "1c-syntax_bsl-language-server")
286286
property("sonar.projectName", "BSL Language Server")
287287
property("sonar.exclusions", "**/gen/**/*.*")
288-
property("sonar.coverage.jacoco.xmlReportPaths", "${layout.buildDirectory}/reports/jacoco/test/jacoco.xml")
288+
property("sonar.coverage.jacoco.xmlReportPaths", "${layout.buildDirectory.get()}/reports/jacoco/test/jacoco.xml")
289289
}
290290
}
291291

0 commit comments

Comments
 (0)