spring-security-javascript.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright 2004-present the original author or authors.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * https://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. plugins {
  17. id 'base'
  18. id 'com.github.node-gradle.node' version '7.1.0'
  19. }
  20. node {
  21. download = true
  22. version = '20.17.0'
  23. }
  24. tasks.named('check') {
  25. dependsOn 'npm_run_check'
  26. }
  27. tasks.register('dist', Zip) {
  28. dependsOn 'npm_run_assemble'
  29. from 'build/dist/spring-security.js'
  30. into 'org/springframework/security'
  31. }
  32. configurations {
  33. javascript {
  34. canBeConsumed = true
  35. canBeResolved = false
  36. }
  37. }
  38. artifacts {
  39. javascript(project.layout.buildDirectory.dir('dist')) {
  40. builtBy(npm_run_assemble)
  41. }
  42. }