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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. sonarqube {
  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. compile 'com.google.code.gson:gson'
  10. compile 'com.google.protobuf:protobuf-java'
  11. compile 'commons-io:commons-io'
  12. compile 'net.jpountz.lz4:lz4'
  13. compile project(':sonar-core')
  14. compileOnly 'com.google.code.findbugs:jsr305'
  15. testCompile 'com.google.guava:guava'
  16. testCompile 'junit:junit'
  17. testCompile 'net.javacrumbs.json-unit:json-unit-assertj:0.0.15'
  18. testCompile 'org.assertj:assertj-core'
  19. testCompile 'org.mockito:mockito-core'
  20. }
  21. //create a single Jar with all dependencies
  22. task fatJar(type: Jar) {
  23. manifest {
  24. attributes 'Main-Class': 'org.sonar.scanner.protocol.viewer.ScannerReportViewerApp'
  25. }
  26. baseName = project.name + '-all'
  27. from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
  28. with jar
  29. }
  30. build.dependsOn fatJar
  31. // Used by sonar-db-core to run DB Unit Tests
  32. artifactoryPublish.skip = false
  33. publishing {
  34. publications {
  35. mavenJava(MavenPublication) {
  36. from components.java
  37. if (release) {
  38. artifact sourcesJar
  39. artifact javadocJar
  40. }
  41. }
  42. }
  43. }