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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 'commons-lang:commons-lang'
  13. compile project(':sonar-core')
  14. compileOnly 'com.google.code.findbugs:jsr305'
  15. testCompile 'com.google.guava:guava'
  16. testCompile 'junit:junit'
  17. testCompile '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. baseName = project.name + '-all'
  25. from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
  26. with jar
  27. }
  28. build.dependsOn fatJar
  29. // Used by sonar-db-core to run DB Unit Tests
  30. artifactoryPublish.skip = false
  31. publishing {
  32. publications {
  33. mavenJava(MavenPublication) {
  34. from components.java
  35. if (release) {
  36. artifact sourcesJar
  37. artifact javadocJar
  38. }
  39. }
  40. }
  41. }