build_cnf_standard.gradle 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * Copyright [2021] [MaxKey of copyright http://www.maxkey.top]
  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. * http://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. /*
  17. * MaxKey build file was auto generated by running the Gradle release.bat
  18. */
  19. defaultTasks "configBuildStd"
  20. //Version define
  21. ext {
  22. }
  23. task clearBuildGradle(){
  24. delete "$rootDir/build.gradle"
  25. delete "$rootDir/release.bat"
  26. delete "$rootDir/maxkey-web-manage/build.gradle"
  27. delete "$rootDir/maxkey-web-maxkey/build.gradle"
  28. }
  29. task configBuildStd(dependsOn:['clearBuildGradle']) {
  30. copy {
  31. from "$rootDir/maxkey-web-manage/config/build_standard.gradle"
  32. into "$rootDir/maxkey-web-manage/"
  33. rename { String fileName -> 'build.gradle' }
  34. }
  35. copy {
  36. from "$rootDir/maxkey-web-maxkey/config/build_standard.gradle"
  37. into "$rootDir/maxkey-web-maxkey/"
  38. rename { String fileName -> 'build.gradle' }
  39. }
  40. copy {
  41. from "$rootDir/config/build_standard.gradle"
  42. into "$rootDir/"
  43. rename { String fileName -> 'build.gradle' }
  44. }
  45. copy {
  46. from "$rootDir/config/release_standard.bat"
  47. into "$rootDir/"
  48. rename { String fileName -> 'release.bat' }
  49. }
  50. println 'Standard Build MaxKey .'
  51. }
  52. // In this section you declare the dependencies for your production and test code
  53. dependencies {
  54. }