artifactoryPublish.skip = false | artifactoryPublish.skip = false | ||||
// Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17 | |||||
tasks.withType(JavaCompile) { | |||||
options.release = 11 | |||||
} | |||||
publishing { | publishing { | ||||
publications { | publications { | ||||
mavenJava(MavenPublication) { | mavenJava(MavenPublication) { |
testCompileOnly 'com.google.code.findbugs:jsr305' | testCompileOnly '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 | |||||
} | |||||
// Used by sonar-db-core to run DB Unit Tests | // Used by sonar-db-core to run DB Unit Tests | ||||
artifactoryPublish.skip = false | artifactoryPublish.skip = false | ||||
publishing { | publishing { |
testImplementation 'org.hamcrest:hamcrest-core' | testImplementation 'org.hamcrest:hamcrest-core' | ||||
testImplementation 'org.mockito:mockito-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 | |||||
} |
artifactoryPublish.skip = false | artifactoryPublish.skip = false | ||||
// Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17 | |||||
tasks.withType(JavaCompile) { | |||||
options.release = 11 | |||||
} | |||||
publishing { | publishing { | ||||
publications { | publications { | ||||
mavenJava(MavenPublication) { | mavenJava(MavenPublication) { |
artifactoryPublish.skip = false | artifactoryPublish.skip = false | ||||
// Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17 | |||||
tasks.withType(JavaCompile) { | |||||
options.release = 11 | |||||
} | |||||
publishing { | publishing { | ||||
publications { | publications { | ||||
mavenJava(MavenPublication) { | mavenJava(MavenPublication) { |
artifactoryPublish.skip = false | artifactoryPublish.skip = false | ||||
// Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17 | |||||
tasks.withType(JavaCompile) { | |||||
options.release = 11 | |||||
} | |||||
// Used by core plugins | // Used by core plugins | ||||
publishing { | publishing { | ||||
publications { | publications { |
build.dependsOn fatJar | build.dependsOn fatJar | ||||
// Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17 | |||||
tasks.withType(JavaCompile) { | |||||
options.release = 11 | |||||
} | |||||
// Used by sonar-db-core to run DB Unit Tests | // Used by sonar-db-core to run DB Unit Tests | ||||
artifactoryPublish.skip = false | artifactoryPublish.skip = false | ||||
publishing { | publishing { |
compileOnlyApi 'com.google.code.findbugs:jsr305' | 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 | artifactoryPublish.skip = false | ||||
publishing { | publishing { | ||||
publications { | publications { |
artifactoryPublish.skip = false | artifactoryPublish.skip = false | ||||
// Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17 | |||||
tasks.withType(JavaCompile) { | |||||
options.release = 11 | |||||
} | |||||
publishing { | publishing { | ||||
publications { | publications { | ||||
mavenJava(MavenPublication) { | mavenJava(MavenPublication) { |