title: how to fix "The following classes needed for analysis were missing"
body: <p>i try to start a sonarqube analyze in my java project, but the task stops with an error.</p>
  
  <p>Here the facts:
  gradle wrapper 4.10
  sonarqube-gradle-plugin: 2.7.1
  java 8</p>
  
  <p>i have defined the plugin and execute "gradlew sonarqube". After that, all my unittest were executed ... but suddenly the process stopps with an error message :</p>
  
  <p><strong>The following classes needed for analysis were missing:
    apply
    test
    accept</strong></p>
  
  <pre><code>18:20:37: Executing task 'sonarqube'...
  
  :wrapper
  
  BUILD SUCCESSFUL in 0s
  1 actionable task: 1 executed
  &gt; Task :compileJava NO-SOURCE
  &gt; Task :processResources NO-SOURCE
  &gt; Task :classes UP-TO-DATE
  &gt; Task :compileTestJava NO-SOURCE
  &gt; Task :processTestResources NO-SOURCE
  &gt; Task :testClasses UP-TO-DATE
  &gt; Task :test NO-SOURCE
  &gt; Task :frontend:compileJava NO-SOURCE
  &gt; Task :frontend:processResources NO-SOURCE
  &gt; Task :frontend:classes UP-TO-DATE
  &gt; Task :frontend:compileTestJava NO-SOURCE
  &gt; Task :frontend:processTestResources NO-SOURCE
  &gt; Task :frontend:testClasses UP-TO-DATE
  &gt; Task :frontend:test NO-SOURCE
  &gt; Task :frontend:jar
  &gt; Task :application:compileJava
  &gt; Task :application:processResources
  &gt; Task :application:classes
  &gt; Task :application:compileTestJava
  &gt; Task :application:processTestResources NO-SOURCE
  &gt; Task :application:testClasses
  &gt; Task :application:test
  The following classes needed for analysis were missing:
    apply
    test
    accept
  &gt; Task :sonarqube
  
  Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
  Use '--warning-mode all' to show the individual deprecation warnings.
  See https://docs.gradle.org/4.10/userguide/command_line_interface.html#sec:command_line_warnings
  
  BUILD SUCCESSFUL in 25s
  6 actionable tasks: 6 executed
  18:21:03: Task execution finished 'sonarqube'.
  
  
  </code></pre>
  
  <p>if tried a downgrade of the sonarqube-plugin-version but it doesnt help.</p>
  
  <p>How can i fix it?</p>
  
  <p>best regards</p>
  
  <p>Michael</p>