Skip to content

Commit c9a0e93

Browse files
authored
minor Gradle config fixes (#43)
- skipMetadataVersionCheck=false gradle/gradle#26810 - limit config-cache inputs gradle/gradle#28591 - Configuration.isVisible=true should be avoided, otherwise Gradle will expose configurations as default dependencies (the `isVisible` name, and Gradle documentation, sucks) - remove old buildSrc files
1 parent f9713f0 commit c9a0e93

File tree

4 files changed

+8
-571
lines changed

4 files changed

+8
-571
lines changed

buildSrc/src/main/kotlin/buildsrc/utils/gradle.kt

+6-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ internal fun Configuration.declarable(
5353
* ```
5454
*/
5555
internal fun Configuration.consumable(
56-
visible: Boolean = true,
56+
visible: Boolean = false,
5757
) {
5858
isCanBeResolved = false
5959
isCanBeConsumed = true
@@ -152,9 +152,12 @@ fun ProjectLayout.generatedKotlinDslAccessorDirs(): Set<File> {
152152
"kotlin-dsl-plugins",
153153
)
154154

155-
return projectDirectory.asFile.walk()
155+
return projectDirectory.dir("buildSrc/build/generated-sources")
156+
.asFile
157+
.walk()
156158
.filter { it.isDirectory && it.parentFile.name in generatedSrcDirs }
157159
.flatMap { file ->
158160
file.walk().maxDepth(1).filter { it.isDirectory }.toList()
159-
}.toSet()
161+
}
162+
.toSet()
160163
}

0 commit comments

Comments
 (0)