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

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. ['config', 'public', 'scripts', 'src'].each {
  18. inputs.dir(it).withPathSensitivity(PathSensitivity.RELATIVE)
  19. }
  20. ['.babelrc', 'package.json', 'tsconfig.json', 'yarn.lock'].each {
  21. inputs.file(it).withPathSensitivity(PathSensitivity.RELATIVE)
  22. }
  23. outputs.dir('build/webapp')
  24. outputs.cacheIf { true }
  25. args = ['build']
  26. }
  27. yarn_run.dependsOn ':server:sonar-web:yarn_run'
  28. def sources = fileTree(dir: "src") + fileTree(dir: "scripts") + fileTree(dir: "config")
  29. task licenseCheckWeb(type: com.hierynomus.gradle.license.tasks.LicenseCheck) {
  30. source = sources
  31. }
  32. licenseMain.dependsOn licenseCheckWeb
  33. task licenseFormatWeb(type: com.hierynomus.gradle.license.tasks.LicenseFormat) {
  34. source = sources
  35. }
  36. licenseFormat.dependsOn licenseFormatWeb