build_cnf.gradle 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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 configDocker(dependsOn:['clearBuild']) {
  56. doLast {
  57. copy {
  58. from "$rootDir/maxkey-webs/maxkey-web-openapi/config/build_docker.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_docker.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_docker.gradle"
  69. into "$rootDir/maxkey-webs/maxkey-web-maxkey/"
  70. rename { String fileName -> 'build.gradle' }
  71. }
  72. copy {
  73. from "$rootDir/config/build_docker.gradle"
  74. into "$rootDir/"
  75. rename { String fileName -> 'build.gradle' }
  76. }
  77. println 'Docker Build MaxKey .'
  78. }
  79. }
  80. task configStandard(dependsOn:['clearBuild']) {
  81. doLast {
  82. copy {
  83. from "$rootDir/maxkey-webs/maxkey-web-openapi/config/build_standard.gradle"
  84. into "$rootDir/maxkey-webs/maxkey-web-openapi/"
  85. rename { String fileName -> 'build.gradle' }
  86. }
  87. copy {
  88. from "$rootDir/maxkey-webs/maxkey-web-mgt/config/build_standard.gradle"
  89. into "$rootDir/maxkey-webs/maxkey-web-mgt/"
  90. rename { String fileName -> 'build.gradle' }
  91. }
  92. copy {
  93. from "$rootDir/maxkey-webs/maxkey-web-maxkey/config/build_standard.gradle"
  94. into "$rootDir/maxkey-webs/maxkey-web-maxkey/"
  95. rename { String fileName -> 'build.gradle' }
  96. }
  97. copy {
  98. from "$rootDir/config/build_standard.gradle"
  99. into "$rootDir/"
  100. rename { String fileName -> 'build.gradle' }
  101. }
  102. println 'Standard Build MaxKey .'
  103. }
  104. }
  105. // In this section you declare the dependencies for your production and test code
  106. dependencies {
  107. }