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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. archiveBaseName = project.name + '-all'
  26. from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
  27. with jar
  28. duplicatesStrategy = DuplicatesStrategy.EXCLUDE
  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. }