Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

build.gradle 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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.git.blame:git-files-blame'
  34. api 'org.sonarsource.update-center:sonar-update-center-common'
  35. api 'org.springframework:spring-context'
  36. api project(':sonar-core')
  37. api project(':sonar-scanner-protocol')
  38. api project(':sonar-ws')
  39. api project(':sonar-duplications')
  40. api project(':sonar-plugin-api-impl')
  41. compileOnlyApi 'com.google.code.findbugs:jsr305'
  42. testImplementation 'com.squareup.okhttp3:mockwebserver'
  43. testImplementation 'com.squareup.okhttp3:okhttp'
  44. testImplementation 'com.squareup.okio:okio'
  45. testImplementation 'com.tngtech.java:junit-dataprovider'
  46. testImplementation 'commons-io:commons-io'
  47. testImplementation 'junit:junit'
  48. testImplementation 'org.assertj:assertj-core'
  49. testImplementation 'com.fasterxml.staxmate:staxmate'
  50. testImplementation 'org.hamcrest:hamcrest-core'
  51. testImplementation 'org.mockito:mockito-core'
  52. api 'org.sonarsource.api.plugin:sonar-plugin-api-test-fixtures'
  53. testImplementation project(':plugins:sonar-xoo-plugin')
  54. }
  55. license {
  56. excludes(["**/Fake.java", "**/Fake.groovy", "org/sonar/scanner/cpd/ManyStatements.java", "org/sonar/scm/git/expected-blame/**/*"])
  57. }
  58. artifactoryPublish.skip = false
  59. // Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17
  60. tasks.withType(JavaCompile) {
  61. options.release = 11
  62. }
  63. // Used by core plugins
  64. publishing {
  65. publications {
  66. mavenJava(MavenPublication) {
  67. from components.java
  68. if (release) {
  69. artifact sourcesJar
  70. artifact javadocJar
  71. }
  72. }
  73. }
  74. }