diff --git a/compiler/tests-java8/build.gradle.kts b/compiler/tests-java8/build.gradle.kts index 349712a117e..3228d2747db 100644 --- a/compiler/tests-java8/build.gradle.kts +++ b/compiler/tests-java8/build.gradle.kts @@ -35,6 +35,20 @@ projectTest(parallel = true) { val generateTests by generator("org.jetbrains.kotlin.generators.tests.GenerateJava8TestsKt") val generateKotlinUseSiteFromJavaOnesForJspecifyTests by generator("org.jetbrains.kotlin.generators.tests.GenerateKotlinUseSitesFromJavaOnesForJspecifyTestsKt") +task("downloadJspecifyTests") { + val tmpDirPath = createTempDir().absolutePath + doFirst { + executable("git") + args("clone", "https://github.com/jspecify/jspecify/", tmpDirPath) + } + doLast { + copy { + from("$tmpDirPath/samples") + into("${project.rootDir}/compiler/testData/foreignAnnotationsJava8/tests/jspecify/java") + } + } +} + val test: Test by tasks test.apply {