sonar { properties { property 'sonar.projectName', "${projectTitle} :: Duplications" } } dependencies { // please keep list ordered api 'org.codehaus.sonar:sonar-channel' api 'org.sonarsource.api.plugin:sonar-plugin-api' compileOnlyApi 'com.google.code.findbugs:jsr305' testImplementation 'ch.qos.logback:logback-classic' testImplementation 'commons-io:commons-io' testImplementation 'junit:junit' testImplementation 'org.assertj:assertj-core' testImplementation 'org.hamcrest:hamcrest-core' testImplementation 'org.mockito:mockito-core' } // Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17 tasks.withType(JavaCompile) { options.release = 11 }