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.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. sonar {
  2. properties {
  3. property 'sonar.projectName', "${projectTitle} :: Scanner :: Protocol"
  4. property 'sonar.exclusions', 'src/main/java/org/sonar/scanner/protocol/viewer/**'
  5. }
  6. }
  7. dependencies {
  8. // please keep the list ordered
  9. api 'com.google.code.gson:gson'
  10. api 'com.google.protobuf:protobuf-java'
  11. api 'commons-io:commons-io'
  12. api 'commons-lang:commons-lang'
  13. api project(':sonar-core')
  14. compileOnlyApi 'com.google.code.findbugs:jsr305'
  15. testImplementation 'com.google.guava:guava'
  16. testImplementation 'junit:junit'
  17. testImplementation 'org.assertj:assertj-core'
  18. }
  19. //create a single Jar with all dependencies
  20. task fatJar(type: Jar) {
  21. manifest {
  22. attributes 'Main-Class': 'org.sonar.scanner.protocol.viewer.ScannerReportViewerApp'
  23. }
  24. archiveBaseName = project.name + '-all'
  25. from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
  26. with jar
  27. duplicatesStrategy = DuplicatesStrategy.EXCLUDE
  28. }
  29. build.dependsOn fatJar
  30. // Used by sonar-db-core to run DB Unit Tests
  31. artifactoryPublish.skip = false
  32. publishing {
  33. publications {
  34. mavenJava(MavenPublication) {
  35. from components.java
  36. if (release) {
  37. artifact sourcesJar
  38. artifact javadocJar
  39. }
  40. }
  41. }
  42. }