Slide 60
Slide 60 text
}
val build = GradleRunner.create()
.withProjectDir(tempDir)
.withPluginClasspath()
.withArguments("gloc", "--build-cache")
.build()
assertThat(build.task(":gloc")!!.outcome)
.isEqualTo(TaskOutcome.SUCCESS)
// Clean build dir and run again - should be read from build cache
File(tempDir, "build/").deleteRecursively()
val build2 = GradleRunner.create()
.withProjectDir(tempDir)
.withPluginClasspath()
.withArguments("gloc", "--build-cache")
.build()
40 / 42