This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add into root project, make sure you have Gradle Enterprise plugin | |
val buildScanApi = project.extensions.findByName("buildScan") as BuildScanExtension | |
subprojects { | |
// If you want to limit it to certain module(s), wrap it with: if (name == "module-name") { } | |
val fingerprinter = serviceOf<org.gradle.internal.fingerprint.classpath.ClasspathFingerprinter>() | |
tasks.withType(org.jetbrains.kotlin.gradle.dsl.KotlinCompile::class.java).configureEach task@{ | |
doFirst { | |
var classLoader: ClassLoader = [email protected] | |
while (classLoader is java.net.URLClassLoader) { | |
val fingerprints = mutableSetOf<Array<String>>() |