You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build.gradle.kts
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ kotlin {
45
45
}
46
46
47
47
lint {
48
-
baseline = file("lint-baseline.xml")
48
+
baseline = file("gradle/lint-baseline.xml")
49
49
ignoreTestSources =true
50
50
warningsAsErrors =true
51
51
}
@@ -120,7 +120,9 @@ testing.suites {
120
120
register<JvmTestSuite>("documentTest") {
121
121
targets.configureEach {
122
122
testTask {
123
-
val docsDir = file("docs")
123
+
val docsDir = file("docs").also {
124
+
if (!it.exists() ||!it.isDirectory) error("Docs dir $it does not exist or is not a directory.")
125
+
}
124
126
// Add docs as an input directory to trigger ManualCodeSnippetTests re-run on changes.
125
127
inputs.dir(docsDir)
126
128
systemProperty("DOCS_DIR", docsDir.absolutePath)
@@ -216,16 +218,16 @@ tasks.check {
216
218
tasks.register<Copy>("downloadStartScripts") {
217
219
description ="Download start scripts from Gradle sources, this should be run intervally to track updates."
218
220
219
-
val urlPrefix ="https://raw.githubusercontent.com/gradle/gradle/refs/heads/master/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins"
221
+
val urlPrefix ="https://raw.githubusercontent.com/gradle/gradle/refs/heads/master/platforms/jvm/"+
0 commit comments