After updating the dependencies of my self written plugin to Sonar 8.1.0.31237 and SonarJava 5.14.0.18788 I recieve a lot of errors in the tests:
java.lang.NoClassDefFoundError: org/sonar/api/config/internal/MapSettings
Caused by: java.lang.ClassNotFoundException: org.sonar.api.config.internal.MapSettings
This is my testclass:
public class SonarTest
{
public static List<Path> search(final String pattern, final File folder, List<Path> result)
{
for (final File f : folder.listFiles())
{
if (f.isDirectory())
{
search(pattern, f, result);
}
if (f.isFile())
{
if (f.getName().matches(pattern))
{
result.add(Paths.get(f.getAbsolutePath()));
}
}
}
return result;
}
@Test
public void test()
{
List<Path> testFiles = search(".*\\.java", new File("src/test/files"), new ArrayList<>());
for (Path testFile : testFiles)
{
JavaCheckVerifier.verify(testFile.toAbsolutePath().toString(), new ViolationCheck());
}
}
}
Are there any undocumented breaking changes somewhere in the api?