sonar { properties { property 'sonar.projectName', "${projectTitle} :: Testing Harness" } } dependencies { // please keep list ordered api 'com.google.code.gson:gson' api 'com.googlecode.json-simple:json-simple' api 'com.sun.mail:javax.mail' api 'commons-io:commons-io' api 'junit:junit' api 'org.assertj:assertj-core' api 'org.jsoup:jsoup' api 'org.mockito:mockito-core' compileOnlyApi 'com.google.code.findbugs:jsr305' } // Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17 tasks.withType(JavaCompile) { options.release = 11 } artifactoryPublish.skip = false publishing { publications { mavenJava(MavenPublication) { from components.java if (release) { artifact sourcesJar artifact javadocJar } } } }