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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. sonarqube {
  2. properties {
  3. property "sonar.projectName", "${projectTitle} :: VSTS"
  4. property "sonar.sources", "src/main/js"
  5. property "sonar.tests", "src/main/js"
  6. property "sonar.test.inclusions", "src/main/js/**/__tests__/**"
  7. property "sonar.exclusions", "src/main/js/libs/third-party/**/*,src/main/js/**/__tests__/**"
  8. }
  9. }
  10. apply plugin: 'com.moowork.node'
  11. node {
  12. version = '8.10.0'
  13. yarnVersion = '1.5.1'
  14. download = true
  15. }
  16. yarn_run {
  17. inputs.dir('config')
  18. inputs.dir('public')
  19. inputs.dir('scripts')
  20. inputs.dir('src')
  21. inputs.file('.babelrc')
  22. inputs.file('package.json')
  23. inputs.file('tsconfig.json')
  24. inputs.file('yarn.lock')
  25. outputs.dir('build/webapp')
  26. args = ['build']
  27. }
  28. yarn_run.dependsOn ':server:sonar-web:yarn_run'
  29. def sources = fileTree(dir: "src") + fileTree(dir: "scripts") + fileTree(dir: "config")
  30. task licenseCheckWeb(type: com.hierynomus.gradle.license.tasks.LicenseCheck) {
  31. source = sources
  32. }
  33. licenseMain.dependsOn licenseCheckWeb
  34. task licenseFormatWeb(type: com.hierynomus.gradle.license.tasks.LicenseFormat) {
  35. source = sources
  36. }
  37. licenseFormat.dependsOn licenseFormatWeb