55 lines
1.6 KiB
Groovy
55 lines
1.6 KiB
Groovy
sonar {
|
|
properties {
|
|
property 'sonar.projectName', "${projectTitle} :: Web Service"
|
|
property 'sonar.exclusions', 'src/main/java/org/sonarqube/ws/client/*/*.java'
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
testImplementation.extendsFrom(compileOnlyApi)
|
|
}
|
|
|
|
dependencies {
|
|
// please keep list ordered
|
|
|
|
api 'com.google.protobuf:protobuf-java'
|
|
api 'com.squareup.okhttp3:okhttp'
|
|
api 'com.squareup.okhttp3:logging-interceptor'
|
|
api 'com.google.code.gson:gson'
|
|
api 'org.sonarsource.api.plugin:sonar-plugin-api'
|
|
|
|
compileOnlyApi 'com.github.spotbugs:spotbugs-annotations'
|
|
compileOnlyApi 'jakarta.annotation:jakarta.annotation-api'
|
|
|
|
testImplementation 'com.squareup.okhttp3:mockwebserver'
|
|
testImplementation 'com.tngtech.java:junit-dataprovider'
|
|
testImplementation 'commons-io:commons-io'
|
|
testImplementation 'org.apache.commons:commons-lang3'
|
|
testImplementation 'junit:junit'
|
|
testImplementation 'org.assertj:assertj-core'
|
|
testImplementation 'org.hamcrest:hamcrest'
|
|
testImplementation 'org.mockito:mockito-core'
|
|
testImplementation project(':sonar-testing-harness')
|
|
|
|
testFixturesApi 'junit:junit'
|
|
testFixturesApi 'com.google.guava:guava'
|
|
testFixturesApi 'org.assertj:assertj-core'
|
|
testFixturesApi 'org.junit.jupiter:junit-jupiter-api'
|
|
testFixturesApi 'org.sonarsource.orchestrator:sonar-orchestrator-junit4'
|
|
testFixturesApi 'commons-io:commons-io'
|
|
}
|
|
|
|
artifactoryPublish.skip = !deployCommunity
|
|
|
|
publishing {
|
|
publications {
|
|
mavenJava(MavenPublication) {
|
|
from components.java
|
|
if (release) {
|
|
artifact sourcesJar
|
|
artifact javadocJar
|
|
}
|
|
}
|
|
}
|
|
}
|