build_cnf.gradle 2.7 KB

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