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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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 'org.apache.commons:commons-lang3'
  20. implementation 'org.apache.commons:commons-text'
  21. api 'com.google.code.gson:gson'
  22. api 'org.apache.commons:commons-csv'
  23. api 'com.google.protobuf:protobuf-java'
  24. api 'com.squareup.okhttp3:okhttp'
  25. api 'com.fasterxml.staxmate:staxmate'
  26. implementation 'io.github.hakky54:sslcontext-kickstart'
  27. api 'javax.annotation:javax.annotation-api'
  28. api 'org.eclipse.jgit:org.eclipse.jgit'
  29. api 'org.tmatesoft.svnkit:svnkit'
  30. api 'org.slf4j:jcl-over-slf4j'
  31. api 'org.slf4j:jul-to-slf4j'
  32. api 'org.slf4j:log4j-over-slf4j'
  33. api 'org.slf4j:slf4j-api'
  34. api 'org.sonarsource.api.plugin:sonar-plugin-api'
  35. api 'org.sonarsource.git.blame:git-files-blame'
  36. api 'org.sonarsource.update-center:sonar-update-center-common'
  37. api 'org.springframework:spring-context'
  38. api project(':sonar-core')
  39. api project(':sonar-scanner-protocol')
  40. api project(':sonar-ws')
  41. api project(':sonar-duplications')
  42. api project(':sonar-plugin-api-impl')
  43. compileOnlyApi 'com.google.code.findbugs:jsr305'
  44. testImplementation 'com.squareup.okhttp3:mockwebserver'
  45. testImplementation 'com.squareup.okhttp3:okhttp'
  46. testImplementation 'com.squareup.okio:okio'
  47. testImplementation 'com.tngtech.java:junit-dataprovider'
  48. testImplementation 'commons-io:commons-io'
  49. testImplementation 'junit:junit'
  50. testImplementation 'org.junit.jupiter:junit-jupiter-api'
  51. testImplementation 'org.junit.jupiter:junit-jupiter-params'
  52. testImplementation 'org.assertj:assertj-core'
  53. testImplementation 'com.fasterxml.staxmate:staxmate'
  54. testImplementation 'org.hamcrest:hamcrest-core'
  55. testImplementation 'org.mockito:mockito-core'
  56. testImplementation 'org.mockito:mockito-junit-jupiter'
  57. testImplementation 'org.sonarsource.api.plugin:sonar-plugin-api-test-fixtures'
  58. testImplementation project(':plugins:sonar-xoo-plugin')
  59. testImplementation 'org.wiremock:wiremock-standalone'
  60. testImplementation 'org.junit-pioneer:junit-pioneer'
  61. testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
  62. testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
  63. }
  64. license {
  65. excludes(["**/Fake.java", "**/Fake.groovy", "org/sonar/scanner/cpd/ManyStatements.java", "org/sonar/scm/git/expected-blame/**/*"])
  66. }
  67. artifactoryPublish.skip = false
  68. // Used by core plugins
  69. publishing {
  70. publications {
  71. mavenJava(MavenPublication) {
  72. from components.java
  73. if (release) {
  74. artifact sourcesJar
  75. artifact javadocJar
  76. }
  77. }
  78. }
  79. }
  80. test {
  81. // Enabling the JUnit Platform (see https://github.com/junit-team/junit5-samples/tree/master/junit5-migration-gradle)
  82. useJUnitPlatform()
  83. }