gradle: handling of noJdkAnnotations argument
gradle: fix test