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.

26 lines
562 B

3 years ago
  1. jacoco {
  2. toolVersion = "0.8.5"
  3. }
  4. jacocoTestReport {
  5. executionData tasks.withType(Test)
  6. classDirectories.from = files(sourceSets.main.output.classesDirs)
  7. sourceDirectories.from = files(sourceSets.main.java.srcDirs)
  8. reports {
  9. xml.enabled = true
  10. }
  11. }
  12. file("sonar-project.properties").withReader {
  13. Properties sonarProperties = new Properties()
  14. sonarProperties.load(it)
  15. sonarProperties.each { key, value ->
  16. sonarqube {
  17. properties {
  18. property key, value
  19. }
  20. }
  21. }
  22. }