[GRADLE-2646] Sonar task fails with java.lang.RuntimeException Created: 21/Jan/13  Updated: 30/Apr/15  Resolved: 30/Apr/15

Status: Resolved
Project: Gradle
Affects Version/s: 1.3
Fix Version/s: None

Type: Bug
Reporter: Oliver Kopp Assignee: Luke Daley
Resolution: Won't Fix Votes: 0


 Description   

If I run "gradlew sonarAnalyze", an exception is raised:

Execution failed for task ':sonarAnalyze'.
> PicoLifecycleException: method 'public void org.sonar.batch.bootstrap.BatchPluginRepository.start()', instance 'org.sonar.batch.bootstrap.BatchPluginRepository@40542fa7, java.lang.RuntimeException: wrapper

Caused by: java.lang.ClassNotFoundException: org.sonar.api.Plugin
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)



 Comments   
Comment by Julien HENRY [ 28/Apr/15 ]

This ticket refer to old Sonar plugin while preferred way shoud be to use SonarRunner plugin. I propose to close it as won't fix.

Comment by Luke Daley [ 30/Apr/15 ]

As

If your issue still persists with the "sonar-runner" plugin, please raise a new issue via https://discuss.gradle.org/c/bugs.

Generated at Wed Jun 30 12:27:35 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.