build_cnf.gradle 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 "clearBuild"
  20. //Version define
  21. ext {
  22. }
  23. task clearBuild(){
  24. println 'Clear Build MaxKey ... '
  25. delete "$rootDir/build.gradle"
  26. delete "$rootDir/maxkey-webs/maxkey-web-mgt/build.gradle"
  27. delete "$rootDir/maxkey-webs/maxkey-web-maxkey/build.gradle"
  28. delete "$rootDir/maxkey-webs/maxkey-web-openapi/build.gradle"
  29. }
  30. task configTradition(dependsOn:['clearBuild']) {
  31. doLast {
  32. copy {
  33. from "$rootDir/maxkey-webs/maxkey-web-openapi/config/build_tradition.gradle"
  34. into "$rootDir/maxkey-webs/maxkey-web-openapi/"
  35. rename { String fileName -> 'build.gradle' }
  36. }
  37. copy {
  38. from "$rootDir/maxkey-webs/maxkey-web-mgt/config/build_tradition.gradle"
  39. into "$rootDir/maxkey-webs/maxkey-web-mgt/"
  40. rename { String fileName -> 'build.gradle' }
  41. }
  42. copy {
  43. from "$rootDir/maxkey-webs/maxkey-web-maxkey/config/build_tradition.gradle"
  44. into "$rootDir/maxkey-webs/maxkey-web-maxkey/"
  45. rename { String fileName -> 'build.gradle' }
  46. }
  47. copy {
  48. from "$rootDir/config/build_tradition.gradle"
  49. into "$rootDir/"
  50. rename { String fileName -> 'build.gradle' }
  51. }
  52. println 'Tradition Build MaxKey .'
  53. }
  54. }
  55. task configStandard(dependsOn:['clearBuild']) {
  56. doLast {
  57. copy {
  58. from "$rootDir/maxkey-webs/maxkey-web-openapi/config/build_standard.gradle"
  59. into "$rootDir/maxkey-webs/maxkey-web-openapi/"
  60. rename { String fileName -> 'build.gradle' }
  61. }
  62. copy {
  63. from "$rootDir/maxkey-webs/maxkey-web-mgt/config/build_standard.gradle"
  64. into "$rootDir/maxkey-webs/maxkey-web-mgt/"
  65. rename { String fileName -> 'build.gradle' }
  66. }
  67. copy {
  68. from "$rootDir/maxkey-webs/maxkey-web-maxkey/config/build_standard.gradle"
  69. into "$rootDir/maxkey-webs/maxkey-web-maxkey/"
  70. rename { String fileName -> 'build.gradle' }
  71. }
  72. copy {
  73. from "$rootDir/config/build_standard.gradle"
  74. into "$rootDir/"
  75. rename { String fileName -> 'build.gradle' }
  76. }
  77. println 'Standard Build MaxKey .'
  78. }
  79. }
  80. // In this section you declare the dependencies for your production and test code
  81. dependencies {
  82. }