blob: 23e7a76d0f2e737f40c755c3bc01660812c4417f [file]
// Copyright (c) 2026, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import org.gradle.api.tasks.Copy
// The majority of the build setup is done by tests_java_8.
java {
sourceSets.test.configure {
java.srcDir(getRoot().resolveAll("src", "test", "java8", "keepanno"))
}
}
tasks {
named<Copy>("processTestResources") {
from(sourceSets.test.get().java.srcDirs) {
include("com/android/tools/r8/keepanno/api/genericsignature/MyValueBoxClient.java")
include("com/android/tools/r8/keepanno/doctests/ForApiDocumentationTest.java")
include("com/android/tools/r8/keepanno/doctests/GenericSignaturePrinter.java")
include("com/android/tools/r8/keepanno/doctests/MainMethodsDocumentationTest.java")
include(
"com/android/tools/r8/keepanno/doctests/UsesReflectionAnnotationsDocumentationTest.java"
)
include("com/android/tools/r8/keepanno/doctests/UsesReflectionDocumentationTest.java")
}
}
}
dependencies {
runtimeOnlyData(TestRuntimeData.KEEPANNO_ANNOTATIONS_JAR)
runtimeOnlyData(TestRuntimeData.KEEPANNO_ANDROIDX_ANNOTATIONS_JAR)
runtimeOnlyData(TestRuntimeData.JAVA_8_RUNTIME)
runtimeOnlyData(TestRuntimeData.PROGUARD_7_7_0)
runtimeOnlyData(TestRuntimeData.R8_V8_0_46)
}