Ensure Jack generates annotations for test 005-annotations

Force Jack to generate annotation with CLASS retention so the
regression test works.

Bug: 28988700

(cherry picked from commit 3c527f9432d05385f86b7b5f4c09d5ac0803d40b)

Change-Id: I001422a16d96da057b8bd8b98aca870b23a865b1
diff --git a/test/005-annotations/build b/test/005-annotations/build
index 93bee50..a552a6d 100644
--- a/test/005-annotations/build
+++ b/test/005-annotations/build
@@ -30,7 +30,8 @@
 
 if [ ${USE_JACK} = "true" ]; then
   jar cf classes.jill.jar -C classes .
-  ${JACK} --import classes.jill.jar --output-dex .
+  # Jack needs to emit annotations with CLASS retention.
+  ${JACK} -D jack.dex.annotation.class-retention=true --import classes.jill.jar --output-dex .
 else
   ${DX} -JXmx256m --debug --dex --output=classes.dex classes
 fi