You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. sonar {
  2. properties {
  3. property 'sonar.projectName', "${projectTitle} :: Web Service"
  4. property 'sonar.exclusions', 'src/main/java/org/sonarqube/ws/client/*/*.java'
  5. }
  6. }
  7. configurations {
  8. testImplementation.extendsFrom(compileOnlyApi)
  9. }
  10. dependencies {
  11. // please keep list ordered
  12. api 'com.google.protobuf:protobuf-java'
  13. api 'com.squareup.okhttp3:okhttp'
  14. api 'com.google.code.gson:gson'
  15. api 'org.sonarsource.api.plugin:sonar-plugin-api'
  16. compileOnlyApi 'com.google.code.findbugs:jsr305'
  17. compileOnlyApi 'javax.annotation:javax.annotation-api'
  18. testImplementation 'com.squareup.okhttp3:mockwebserver'
  19. testImplementation 'com.squareup.okio:okio'
  20. testImplementation 'commons-io:commons-io'
  21. testImplementation 'commons-lang:commons-lang'
  22. testImplementation 'junit:junit'
  23. testImplementation 'org.assertj:assertj-core'
  24. testImplementation 'org.hamcrest:hamcrest-core'
  25. testImplementation 'org.mockito:mockito-core'
  26. testImplementation project(':sonar-testing-harness')
  27. }
  28. artifactoryPublish.skip = false
  29. // Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17
  30. tasks.withType(JavaCompile) {
  31. options.release = 11
  32. }
  33. publishing {
  34. publications {
  35. mavenJava(MavenPublication) {
  36. from components.java
  37. if (release) {
  38. artifact sourcesJar
  39. artifact javadocJar
  40. }
  41. }
  42. }
  43. }