Binary compatibility tests for revised D8 API.

Change-Id: Id9801005791cb47248509830b956ed88b2ec4ae1
diff --git a/build.gradle b/build.gradle
index 418474a..61a8943 100644
--- a/build.gradle
+++ b/build.gradle
@@ -709,6 +709,12 @@
     destinationDir file('tests')
 }
 
+task buildD8ApiUsageSample(type: Jar) {
+    from sourceSets.apiUsageSample.output
+    baseName 'd8_api_usage_sample'
+    destinationDir file('tests')
+}
+
 task buildDebugInfoExamplesDex {
     def examplesDir = file("src/test/java")
     def hostJar = "debuginfo_examples.jar"