build_cnf.gradle 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. }
  29. task configStd(dependsOn:['clearBuild']) {
  30. doLast {
  31. copy {
  32. from "$rootDir/maxkey-webs/maxkey-web-mgt/config/build_standard.gradle"
  33. into "$rootDir/maxkey-webs/maxkey-web-mgt/"
  34. rename { String fileName -> 'build.gradle' }
  35. }
  36. copy {
  37. from "$rootDir/maxkey-webs/maxkey-web-maxkey/config/build_standard.gradle"
  38. into "$rootDir/maxkey-webs/maxkey-web-maxkey/"
  39. rename { String fileName -> 'build.gradle' }
  40. }
  41. copy {
  42. from "$rootDir/config/build_standard.gradle"
  43. into "$rootDir/"
  44. rename { String fileName -> 'build.gradle' }
  45. }
  46. println 'Standard Build MaxKey .'
  47. }
  48. }
  49. task configDocker(dependsOn:['clearBuild']) {
  50. doLast {
  51. copy {
  52. from "$rootDir/maxkey-webs/maxkey-web-mgt/config/build_docker.gradle"
  53. into "$rootDir/maxkey-webs/maxkey-web-mgt/"
  54. rename { String fileName -> 'build.gradle' }
  55. }
  56. copy {
  57. from "$rootDir/maxkey-webs/maxkey-web-maxkey/config/build_docker.gradle"
  58. into "$rootDir/maxkey-webs/maxkey-web-maxkey/"
  59. rename { String fileName -> 'build.gradle' }
  60. }
  61. copy {
  62. from "$rootDir/config/build_docker.gradle"
  63. into "$rootDir/"
  64. rename { String fileName -> 'build.gradle' }
  65. }
  66. println 'Docker Build MaxKey .'
  67. }
  68. }
  69. task configJar(dependsOn:['clearBuild']) {
  70. doLast {
  71. copy {
  72. from "$rootDir/maxkey-webs/maxkey-web-mgt/config/build_jar.gradle"
  73. into "$rootDir/maxkey-webs/maxkey-web-mgt/"
  74. rename { String fileName -> 'build.gradle' }
  75. }
  76. copy {
  77. from "$rootDir/maxkey-webs/maxkey-web-maxkey/config/build_jar.gradle"
  78. into "$rootDir/maxkey-webs/maxkey-web-maxkey/"
  79. rename { String fileName -> 'build.gradle' }
  80. }
  81. copy {
  82. from "$rootDir/config/build_jar.gradle"
  83. into "$rootDir/"
  84. rename { String fileName -> 'build.gradle' }
  85. }
  86. println 'Java Jar Build MaxKey .'
  87. }
  88. }
  89. // In this section you declare the dependencies for your production and test code
  90. dependencies {
  91. }