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 1001B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. sonarqube {
  2. properties {
  3. property "sonar.projectName", "${projectTitle} :: Web"
  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/libs/require.js,src/main/js/**/__tests__/**"
  8. }
  9. }
  10. apply plugin: 'com.moowork.node'
  11. apply plugin: 'war'
  12. configurations {
  13. branding
  14. }
  15. dependencies {
  16. branding 'com.sonarsource:sonarsource-branding:1.3.0.307@war'
  17. }
  18. task unzipBranding(type: Copy) {
  19. into projectDir
  20. from { zipTree(configurations.branding.singleFile) }
  21. include '**/*.js'
  22. include '**/*.svg'
  23. includeEmptyDirs = false
  24. }
  25. node {
  26. version = '8.5.0'
  27. yarnVersion = '1.1.0'
  28. download = true
  29. }
  30. yarn_run {
  31. if (release) { dependsOn unzipBranding }
  32. inputs.dir('scripts')
  33. inputs.dir('src/main/js')
  34. inputs.file('build.gradle')
  35. outputs.dir('src/main/webapp')
  36. args = ['build']
  37. }
  38. war.dependsOn yarn_run