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

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. configureCompileJavaToVersion 8
  8. dependencies {
  9. // please keep the list ordered
  10. compile 'com.google.code.gson:gson'
  11. compile 'com.google.protobuf:protobuf-java'
  12. compile 'commons-io:commons-io'
  13. compile 'commons-lang:commons-lang'
  14. compile project(':sonar-core')
  15. compileOnly 'com.google.code.findbugs:jsr305'
  16. testCompile 'com.google.guava:guava'
  17. testCompile 'junit:junit'
  18. testCompile 'org.assertj:assertj-core'
  19. }
  20. //create a single Jar with all dependencies
  21. task fatJar(type: Jar) {
  22. manifest {
  23. attributes 'Main-Class': 'org.sonar.scanner.protocol.viewer.ScannerReportViewerApp'
  24. }
  25. baseName = project.name + '-all'
  26. from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
  27. with jar
  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. }