1
0

build.gradle 876 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. boolean isDefaultEnvironment() {
  2. !project.hasProperty('overrideBuildEnvironment')
  3. }
  4. File getEnvironmentScript()
  5. {
  6. final File env = file(defaultEnvironment ? 'defaultEnvironment.gradle' : project.overrideBuildEnvironment)
  7. assert env.isFile() : "The environment script [$env] does not exists or is not a file."
  8. return env
  9. }
  10. apply from: environmentScript
  11. subprojects {
  12. plugins.withType(JavaPlugin) {
  13. dependencies {
  14. testCompile spec.external.testng
  15. compile spec.external.'commonsLang'
  16. }
  17. test {
  18. afterSuite { desc, result ->
  19. if (!desc.parent) {
  20. println ":${project.name} -- Executed ${result.testCount} tests: ${result.successfulTestCount} succeeded, ${result.failedTestCount} failed, ${result.skippedTestCount} skipped"
  21. }
  22. }
  23. }
  24. test.useTestNG() {
  25. excludeGroups 'integration'
  26. }
  27. }
  28. }