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 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. sonar {
  2. properties {
  3. property 'sonar.projectName', "${projectTitle} :: Scanner Engine"
  4. }
  5. }
  6. // Excluding scanner files in order to benefit of incremental build support
  7. sourceSets.test.resources {
  8. exclude '**/.sonar/**'
  9. }
  10. configurations {
  11. testImplementation.extendsFrom(compileOnlyApi)
  12. }
  13. dependencies {
  14. // please keep the list ordered
  15. api 'ch.qos.logback:logback-classic'
  16. api 'ch.qos.logback:logback-core'
  17. api 'commons-codec:commons-codec'
  18. api 'commons-io:commons-io'
  19. api 'commons-lang:commons-lang'
  20. api 'com.google.code.gson:gson'
  21. api 'org.apache.commons:commons-csv'
  22. api 'com.google.protobuf:protobuf-java'
  23. api 'com.squareup.okhttp3:okhttp'
  24. api 'com.fasterxml.staxmate:staxmate'
  25. api 'javax.annotation:javax.annotation-api'
  26. api 'org.eclipse.jgit:org.eclipse.jgit'
  27. api 'org.tmatesoft.svnkit:svnkit'
  28. api 'org.slf4j:jcl-over-slf4j'
  29. api 'org.slf4j:jul-to-slf4j'
  30. api 'org.slf4j:log4j-over-slf4j'
  31. api 'org.slf4j:slf4j-api'
  32. api 'org.sonarsource.api.plugin:sonar-plugin-api'
  33. api 'org.sonarsource.update-center:sonar-update-center-common'
  34. api 'org.springframework:spring-context'
  35. api project(':sonar-core')
  36. api project(':sonar-scanner-protocol')
  37. api project(':sonar-ws')
  38. api project(':sonar-duplications')
  39. api project(':sonar-plugin-api-impl')
  40. compileOnlyApi 'com.google.code.findbugs:jsr305'
  41. testImplementation 'com.squareup.okhttp3:mockwebserver'
  42. testImplementation 'com.squareup.okhttp3:okhttp'
  43. testImplementation 'com.squareup.okio:okio'
  44. testImplementation 'com.tngtech.java:junit-dataprovider'
  45. testImplementation 'commons-io:commons-io'
  46. testImplementation 'junit:junit'
  47. testImplementation 'org.assertj:assertj-core'
  48. testImplementation 'com.fasterxml.staxmate:staxmate'
  49. testImplementation 'org.hamcrest:hamcrest-core'
  50. testImplementation 'org.mockito:mockito-core'
  51. testImplementation 'org.mockito:mockito-inline'
  52. testImplementation project(':plugins:sonar-xoo-plugin')
  53. }
  54. license {
  55. excludes(["**/Fake.java", "**/Fake.groovy", "org/sonar/scanner/cpd/ManyStatements.java"])
  56. }
  57. artifactoryPublish.skip = false
  58. // Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17
  59. tasks.withType(JavaCompile) {
  60. options.release = 11
  61. }
  62. // Used by core plugins
  63. publishing {
  64. publications {
  65. mavenJava(MavenPublication) {
  66. from components.java
  67. if (release) {
  68. artifact sourcesJar
  69. artifact javadocJar
  70. }
  71. }
  72. }
  73. }