build.gradle 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  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 "clean", "build"
  20. //Version define
  21. ext {
  22. }
  23. configurations.all {
  24. transitive = false// 为本依赖关闭依赖传递特性
  25. }
  26. //add support for Java
  27. //apply plugin: 'java'
  28. allprojects {
  29. apply plugin: "java"
  30. apply plugin: "eclipse"
  31. //apply plugin: "pmd"
  32. //apply plugin: "findbugs"
  33. //apply plugin: "jdepend"
  34. configurations.all {
  35. transitive = false// 为本依赖关闭依赖传递特性
  36. }
  37. //java Version
  38. sourceCompatibility = 1.8
  39. targetCompatibility = 1.8
  40. compileJava.options.encoding = 'UTF-8'
  41. eclipse {
  42. /* 第一次时请注释这段eclipse设置,可能报错,设置工程字符集
  43. jdt {
  44. File f = file('.settings/org.eclipse.core.resources.prefs')
  45. f.write('eclipse.preferences.version=1\n')
  46. f.append('encoding/<project>=UTF-8') //use UTF-8
  47. }*/
  48. }
  49. }
  50. buildscript {
  51. repositories {
  52. mavenCentral()
  53. }
  54. }
  55. // In this section you declare where to find the dependencies of your project
  56. repositories {
  57. // Use 'jcenter' for resolving your dependencies.
  58. // You can declare any Maven/Ivy/file repository here.
  59. mavenCentral()
  60. }
  61. // In this section you declare the dependencies for your production and test code
  62. dependencies {
  63. }
  64. subprojects {
  65. /*
  66. eclipse {
  67. 第一次时请注释这段eclipse设置,可能报错,设置工程字符集
  68. jdt {
  69. File f = file('.settings/org.eclipse.core.resources.prefs')
  70. f.write('eclipse.preferences.version=1\n')
  71. f.append('encoding/<project>=UTF-8') //use UTF-8
  72. }
  73. }
  74. */
  75. processResources {
  76. from ('src/main/resources') {
  77. include 'src/main/resources/*.*'
  78. }
  79. }
  80. sourceSets {
  81. main {
  82. java {
  83. srcDir 'src/main/java' // 指定源码目录
  84. }
  85. }
  86. }
  87. repositories {
  88. mavenLocal()
  89. maven { url "https://maven.aliyun.com/repository/central/"}
  90. maven { url "https://maven.aliyun.com/repository/public/"}
  91. maven { url "https://maven.aliyun.com/repository/spring/"}
  92. maven { url "https://repo.spring.io/plugins-release/" }
  93. maven { url "https://repo.spring.io/milestone" }
  94. maven { url "https://repo1.maven.org/maven2/" }
  95. maven { url "https://build.shibboleth.net/nexus/content/repositories/releases/" }
  96. maven { url "https://mvnrepository.com/repos/central/" }
  97. maven { url "https://jcenter.bintray.com" }
  98. maven { url "https://mvn.gt.igexin.com/nexus/content/repositories/releases"}
  99. maven { url "https://plugins.gradle.org/m2/" }
  100. maven { url "https://oss.sonatype.org/content/repositories/releases/" }
  101. maven { url "https://maven.repository.redhat.com/ga/" }
  102. maven { url "https://repository.apache.org/content/repositories/releases/" }
  103. mavenCentral()
  104. }
  105. //all dependencies
  106. dependencies {
  107. //for Test and Compile
  108. testImplementation group: 'junit', name: 'junit', version: "${junitVersion}"
  109. compileOnly group: 'junit', name: 'junit', version: "${junitVersion}"
  110. testImplementation group: 'org.mockito', name: 'mockito-all', version: "${mockitoallVersion}"
  111. testImplementation group: 'xmlunit', name: 'xmlunit', version: "${xmlunitVersion}"
  112. //apache
  113. implementation group: 'commons-beanutils', name: 'commons-beanutils', version: "${commonsbeanutilsVersion}"
  114. implementation group: 'commons-codec', name: 'commons-codec', version: "${commonscodecVersion}"
  115. implementation group: 'commons-collections', name: 'commons-collections', version: "${commonscollectionsVersion}"
  116. implementation group: 'org.apache.commons', name: 'commons-collections4', version: "${commonscollections4Version}"
  117. //implementation group: 'org.apache.commons', name: 'commons-csv', version: "${commonscsvVersion}"
  118. implementation group: 'org.apache.commons', name: 'commons-text', version: "${commonstextVersion}"
  119. implementation group: 'org.apache.commons', name: 'commons-dbcp2', version: "${commonsdbcp2Version}"
  120. implementation group: 'commons-dbutils', name: 'commons-dbutils', version: "${commonsdbutilsVersion}"
  121. implementation group: 'org.apache.commons', name: 'commons-digester3', version: "${commonsdigester3Version}"
  122. implementation group: 'commons-digester', name: 'commons-digester', version: "${commonsdigesterVersion}"
  123. implementation group: 'commons-io', name: 'commons-io', version: "${commonsioVersion}"
  124. implementation group: 'commons-lang', name: 'commons-lang', version: "${commonslangVersion}"
  125. implementation group: 'org.apache.commons', name: 'commons-lang3', version: "${commonslang3Version}"
  126. implementation group: 'commons-logging', name: 'commons-logging', version: "${commonsloggingVersion}"
  127. implementation group: 'org.apache.commons', name: 'commons-pool2', version: "${commonspool2Version}"
  128. implementation group: 'commons-httpclient', name: 'commons-httpclient', version: "${commonshttpclientVersion}"
  129. implementation group: 'commons-fileupload', name: 'commons-fileupload', version: "${commonsfileuploadVersion}"
  130. implementation group: 'org.apache.commons', name: 'commons-email', version: "${commonsemailVersion}"
  131. implementation group: 'org.apache.httpcomponents', name: 'httpasyncclient', version: "${httpasyncclientVersion}"
  132. implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: "${httpcomponentsVersion}"
  133. implementation group: 'org.apache.httpcomponents', name: 'fluent-hc', version: "${httpcomponentsVersion}"
  134. implementation group: 'org.apache.httpcomponents', name: 'httpclient-cache', version: "${httpcomponentsVersion}"
  135. implementation group: 'org.apache.httpcomponents', name: 'httpmime', version: "${httpcomponentsVersion}"
  136. implementation group: 'org.apache.httpcomponents', name: 'httpcore', version: "${httpcoreVersion}"
  137. implementation group: 'org.apache.httpcomponents', name: 'httpcore-nio', version: "${httpcoreVersion}"
  138. implementation group: 'org.apache.velocity', name: 'velocity', version: "${velocityVersion}"
  139. implementation group: 'velocity', name: 'velocity-dep', version: "${velocitydepVersion}"
  140. implementation group: 'org.freemarker', name: 'freemarker', version: "${freemarkerVersion}"
  141. implementation group: 'org.apache.xmlbeans', name: 'xmlbeans', version: "${xmlbeansVersion}"
  142. implementation group: 'org.apache.commons', name: 'commons-compress', version: "${commonscompressVersion}"
  143. implementation group: 'org.apache.poi', name: 'poi', version: "${poiVersion}"
  144. implementation group: 'org.apache.poi', name: 'poi-ooxml', version: "${poiVersion}"
  145. implementation group: 'org.apache.poi', name: 'poi-ooxml-schemas', version: "${poiVersion}"
  146. implementation group: 'org.apache.poi', name: 'poi-scratchpad', version: "${poiVersion}"
  147. //implementation group: 'org.apache.commons', name: 'not-yet-commons-ssl', version: "${notyetcommonssslVersion}"
  148. //tomcat embed Core Tomcat implementation
  149. implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-core', version: "${tomcatVersion}"
  150. implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-el', version: "${tomcatVersion}"
  151. implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-websocket', version: "${tomcatVersion}"
  152. //JULI logging implementation for embedded Tomcat
  153. implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-logging-juli', version: "${tomcatembedloggingjuliVersion}"
  154. //apache logs
  155. implementation group: 'org.apache.logging.log4j', name: 'log4j-1.2-api', version: "${log4jVersion}"
  156. implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: "${log4jVersion}"
  157. implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: "${log4jVersion}"
  158. implementation group: 'org.apache.logging.log4j', name: 'log4j-jcl', version: "${log4jVersion}"
  159. implementation group: 'org.apache.logging.log4j', name: 'log4j-jul', version: "${log4jVersion}"
  160. implementation group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: "${log4jVersion}"
  161. implementation group: 'org.apache.logging.log4j', name: 'log4j-web', version: "${log4jVersion}"
  162. //logs
  163. implementation group: 'org.slf4j', name: 'slf4j-api', version: "${slf4jVersion}"
  164. implementation group: 'org.jboss.logging', name: 'jboss-logging', version: "${jbossloggingVersion}"
  165. //spring
  166. implementation group: 'org.springframework', name: 'spring-aop', version: "${springVersion}"
  167. implementation group: 'org.springframework', name: 'spring-aspects', version: "${springVersion}"
  168. implementation group: 'org.springframework', name: 'spring-beans', version: "${springVersion}"
  169. implementation group: 'org.springframework', name: 'spring-core', version: "${springVersion}"
  170. implementation group: 'org.springframework', name: 'spring-context', version: "${springVersion}"
  171. implementation group: 'org.springframework', name: 'spring-context-indexer', version: "${springVersion}"
  172. implementation group: 'org.springframework', name: 'spring-context-support', version: "${springVersion}"
  173. implementation group: 'org.springframework', name: 'spring-expression', version: "${springVersion}"
  174. //implementation group: 'org.springframework', name: 'spring-instrument', version: "${springVersion}"
  175. implementation group: 'org.springframework', name: 'spring-jcl', version: "${springVersion}"
  176. implementation group: 'org.springframework', name: 'spring-jdbc', version: "${springVersion}"
  177. //implementation group: 'org.springframework', name: 'spring-jms', version: "${springVersion}"
  178. implementation group: 'org.springframework', name: 'spring-messaging', version: "${springVersion}"
  179. //implementation group: 'org.springframework', name: 'spring-orm', version: "${springVersion}"
  180. implementation group: 'org.springframework', name: 'spring-oxm', version: "${springVersion}"
  181. implementation group: 'org.springframework', name: 'spring-tx', version: "${springVersion}"
  182. implementation group: 'org.springframework', name: 'spring-web', version: "${springVersion}"
  183. implementation group: 'org.springframework', name: 'spring-webflux', version: "${springVersion}"
  184. implementation group: 'org.springframework', name: 'spring-webmvc', version: "${springVersion}"
  185. //implementation group: 'org.springframework', name: 'spring-websocket', version: "${springVersion}"
  186. testImplementation group: 'org.springframework', name: 'spring-test', version: "${springVersion}"
  187. //kafka support
  188. // https://mvnrepository.com/artifact/org.apache.kafka/kafka-clients
  189. implementation group: 'org.apache.kafka', name: 'kafka-clients', version: "${kafkaclientsVersion}"
  190. // https://mvnrepository.com/artifact/org.springframework.kafka/spring-kafka
  191. implementation group: 'org.springframework.kafka', name: 'spring-kafka', version: "${springkafkaVersion}"
  192. // https://mvnrepository.com/artifact/org.springframework.retry/spring-retry
  193. implementation group: 'org.springframework.retry', name: 'spring-retry', version: "${springretryVersion}"
  194. //spring-security
  195. implementation group: 'org.springframework.security', name: 'spring-security-core', version: "${springSecurityVersion}"
  196. implementation group: 'org.springframework.security', name: 'spring-security-web', version: "${springSecurityVersion}"
  197. implementation group: 'org.springframework.security', name: 'spring-security-crypto', version: "${springSecurityVersion}"
  198. //srpingboot
  199. implementation group: 'org.springframework.boot', name: 'spring-boot', version: "${springBootVersion}"
  200. implementation group: 'org.springframework.boot', name: 'spring-boot-starter', version: "${springBootVersion}"
  201. implementation group: 'org.springframework.boot', name: 'spring-boot-actuator', version: "${springBootVersion}"
  202. implementation group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: "${springBootVersion}"
  203. implementation group: 'org.springframework.boot', name: 'spring-boot-actuator-autoconfigure', version: "${springBootVersion}"
  204. implementation group: 'org.springframework.boot', name: 'spring-boot-autoconfigure', version: "${springBootVersion}"
  205. implementation group: 'org.springframework.boot', name: 'spring-boot-starter-freemarker', version: "${springBootVersion}"
  206. implementation group: 'org.springframework.boot', name: 'spring-boot-starter-json', version: "${springBootVersion}"
  207. implementation group: 'org.springframework.boot', name: 'spring-boot-starter-log4j2', version: "${springBootVersion}"
  208. implementation group: 'org.springframework.boot', name: 'spring-boot-starter-logging', version: "${springBootVersion}"
  209. implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: "${springBootVersion}"
  210. implementation group: 'org.springframework.boot', name: 'spring-boot-starter-tomcat', version: "${springBootVersion}"
  211. implementation group: 'org.springframework.boot', name: 'spring-boot-starter-webflux', version: "${springBootVersion}"
  212. implementation group: 'org.springframework.boot', name: 'spring-boot-starter-reactor-netty', version: "${springBootVersion}"
  213. implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis', version: "${springBootVersion}"
  214. implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis-reactive', version: "${springBootVersion}"
  215. implementation group: 'org.springframework.boot', name: 'spring-boot-starter-validation', version: "${springBootVersion}"
  216. testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: "${springBootVersion}"
  217. //spring-boot-admin
  218. implementation group: 'de.codecentric', name: 'spring-boot-admin-client', version: "${springbootadminVersion}"
  219. implementation group: 'de.codecentric', name: 'spring-boot-admin-starter-client', version: "${springbootadminVersion}"
  220. //spring-data
  221. implementation group: 'org.springframework.data', name: 'spring-data-commons', version: "${springDataVersion}"
  222. implementation group: 'org.springframework.data', name: 'spring-data-keyvalue', version: "${springDataVersion}"
  223. implementation group: 'org.springframework.data', name: 'spring-data-redis', version: "${springDataVersion}"
  224. //spring-session
  225. implementation group: 'org.springframework.session', name: 'spring-session-core', version: "${springSessionVersion}"
  226. implementation group: 'org.springframework.session', name: 'spring-session-data-redis', version: "${springSessionVersion}"
  227. implementation group: 'org.springframework.plugin', name: 'spring-plugin-core', version: "${springplugincoreVersion}"
  228. implementation group: 'org.springframework.plugin', name: 'spring-plugin-metadata', version: "${springpluginmetadataVersion}"
  229. //spring cloud
  230. implementation group: 'org.springframework.cloud', name: 'spring-cloud-commons', version: "${springcloudVersion}"
  231. implementation group: 'org.springframework.cloud', name: 'spring-cloud-context', version: "${springcloudVersion}"
  232. implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter', version: "${springcloudVersion}"
  233. implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-bootstrap', version: "${springcloudVersion}"
  234. //spring-cloud-alibaba
  235. implementation group: 'com.alibaba.spring', name: 'spring-context-support', version: "${springcloudalibabaspringVersion}"
  236. implementation group: 'com.alibaba.cloud', name: 'spring-cloud-alibaba-commons', version: "${springcloudalibabaVersion}"
  237. //alibaba nacos
  238. implementation group: 'com.alibaba.nacos', name: 'nacos-client', version: "${alibabanacosclientVersion}"
  239. implementation group: 'com.alibaba.cloud', name: 'spring-cloud-starter-alibaba-nacos-discovery', version: "${springcloudalibabaVersion}"
  240. implementation group: 'com.alibaba.cloud', name: 'spring-cloud-starter-alibaba-nacos-config', version: "${springcloudalibabaVersion}"
  241. //saml
  242. implementation group: 'org.opensaml', name: 'opensaml', version: "${opensamlVersion}"
  243. implementation group: 'org.opensaml', name: 'openws', version: "${openwsVersion}"
  244. implementation group: 'org.opensaml', name: 'xmltooling', version: "${xmltoolingVersion}"
  245. implementation group: 'net.shibboleth.utilities', name: 'java-support', version: "${javasupportVersion}"
  246. //jose-jwt
  247. implementation group: 'com.nimbusds', name: 'nimbus-jose-jwt', version: "${nimbusjosejwtVersion}"
  248. implementation group: 'net.jcip', name: 'jcip-annotations', version: "${jcipannotationsVersion}"
  249. implementation group: 'net.minidev', name: 'json-smart', version: "${minidevjsonsmartVersion}"
  250. implementation group: 'net.minidev', name: 'asm', version: "${minidevasmVersion}"
  251. //oauth third party JustAuth
  252. implementation group: 'com.xkcoding.http', name: 'simple-http', version: "${simplehttpVersion}"
  253. implementation group: 'me.zhyd.oauth', name: 'JustAuth', version: "${JustAuthVersion}"
  254. //common
  255. implementation group: 'org.javassist', name: 'javassist', version: "${javassistVersion}"
  256. implementation group: 'org.owasp.esapi', name: 'esapi', version: "${esapiVersion}"
  257. implementation group: 'com.sun.mail', name: 'javax.mail', version: "${javaxmailVersion}"
  258. // https://mvnrepository.com/artifact/org.eclipse.persistence/javax.persistence
  259. // for mybatis-jpa-extra
  260. implementation group: 'org.eclipse.persistence', name: 'javax.persistence', version: "${javaxpersistenceVersion}"
  261. implementation group: 'jakarta.persistence', name: 'jakarta.persistence-api', version: '3.0.0'
  262. implementation group: 'jakarta.annotation', name: 'jakarta.annotation-api', version: "${jakartaannotationVersion}"
  263. implementation group: 'jakarta.validation', name: 'jakarta.validation-api', version: "${jakartavalidationapiVersion}"
  264. implementation group: 'javax.activation', name: 'activation', version: "${activationVersion}"
  265. implementation group: 'javax.annotation', name: 'javax.annotation-api', version: "${javaxannotationapiVersion}"
  266. implementation group: 'javax.transaction', name: 'jta', version: "${jtaVersion}"
  267. implementation group: 'javax.transaction', name: 'javax.transaction-api', version: "${javaxtransactionapiVersion}"
  268. implementation group: 'javax.validation', name: 'validation-api', version: "${validationapiVersion}"
  269. implementation group: 'javax.xml', name: 'jsr173', version: "${jsr173Version}"
  270. implementation group: 'javax.xml.bind', name: 'jaxb-api', version: "${jaxbapiVersion}"
  271. implementation group: 'com.sun.xml.bind', name: 'jaxb-core', version: "${jaxbcoreVersion}"
  272. implementation group: 'com.sun.xml.bind', name: 'jaxb-impl', version: "${jaxbimplVersion}"
  273. implementation group: 'com.sun.xml.bind', name: 'jaxb-xjc', version: "${jaxbxjcVersion}"
  274. //crypto
  275. implementation group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: "${bouncycastleVersion}"
  276. implementation group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: "${bouncycastleVersion}"
  277. implementation group: 'org.bouncycastle', name: 'bcprov-ext-jdk15on', version: "${bouncycastleVersion}"
  278. //google
  279. implementation group: 'com.google.crypto.tink', name: 'tink', version: "${tinkVersion}"
  280. //kaptcha
  281. implementation group: 'com.jhlabs', name: 'filters', version: "${jhlabsfiltersVersion}"
  282. implementation group: 'com.github.penggle', name: 'kaptcha', version: "${kaptchaVersion}"
  283. //json
  284. implementation group: 'com.google.code.gson', name: 'gson', version: "${gsonVersion}"
  285. //reactive
  286. implementation group: 'org.reactivestreams', name: 'reactive-streams', version: "${reactivestreamsVersion}"
  287. implementation group: 'io.projectreactor', name: 'reactor-core', version: "${reactorcoreVersion}"
  288. implementation group: 'eu.tekul', name: 'szxcvbn_2.9.2', version: "${szxcvbnVersion}"
  289. //quartz
  290. implementation group: 'org.quartz-scheduler', name: 'quartz', version: "${quartzVersion}"
  291. //database
  292. implementation group: 'mysql', name: 'mysql-connector-java', version: "${mysqlconnectorjavaVersion}"
  293. implementation group: 'org.postgresql', name: 'postgresql', version: "${postgresqlVersion}"
  294. implementation group: 'com.alibaba', name: 'druid', version: "${druidVersion}"
  295. implementation group: 'com.alibaba', name: 'druid-spring-boot-starter', version: "${druidspringbootstarterVersion}"
  296. implementation group: 'redis.clients', name: 'jedis', version: "${jedisVersion}"
  297. implementation group: 'org.ehcache', name: 'ehcache', version: "${ehcacheVersion}"
  298. //implementation group: 'org.liquibase', name: 'liquibase-core', version: '4.3.5'
  299. //mybatis
  300. implementation group: 'org.mybatis', name: 'mybatis', version: "${mybatisVersion}"
  301. implementation group: 'org.mybatis', name: 'mybatis-spring', version: "${mybatisspringVersion}"
  302. //hibernate
  303. implementation group: 'org.hibernate.validator', name: 'hibernate-validator', version: "${hibernateVersion}"
  304. implementation group: 'org.hibernate', name: 'hibernate-validator-cdi', version: "${hibernateVersion}"
  305. implementation group: 'org.hibernate.validator', name: 'hibernate-validator-annotation-processor', version: "${hibernateVersion}"
  306. //usefull
  307. implementation group: 'joda-time', name: 'joda-time', version: "${jodatimeVersion}"
  308. implementation group: 'org.yaml', name: 'snakeyaml', version: "${snakeyamlVersion}"
  309. implementation group: 'net.sourceforge.nekohtml', name: 'nekohtml', version: "${nekohtmlVersion}"
  310. implementation group: 'org.jdom', name: 'jdom', version: "${jdomVersion}"
  311. implementation group: 'com.google.zxing', name: 'core', version: "${zxingcoreVersion}"
  312. implementation group: 'com.google.guava', name: 'guava', version: "${guavaVersion}"
  313. implementation group: 'ognl', name: 'ognl', version: "${ognlVersion}"
  314. implementation group: 'cglib', name: 'cglib', version: "${cglibVersion}"
  315. implementation group: 'org.ow2.asm', name: 'asm', version: "${asmVersion}"
  316. implementation group: 'aopalliance', name: 'aopalliance', version: "${aopallianceVersion}"
  317. implementation group: 'org.aspectj', name: 'aspectjtools', version: "${aspectjtoolsVersion}"
  318. implementation group: 'dom4j', name: 'dom4j', version: "${dom4jVersion}"
  319. implementation group: 'xalan', name: 'serializer', version: "${serializerVersion}"
  320. implementation group: 'xml-resolver', name: 'xml-resolver', version: "${xmlresolverVersion}"
  321. implementation group: 'org.apache.santuario', name: 'xmlsec', version: "${xmlsecVersion}"
  322. implementation group: 'org.ogce', name: 'xpp3', version: "${xpp3Version}"
  323. implementation group: 'com.thoughtworks.xstream', name: 'xstream', version: "${xstreamVersion}"
  324. implementation group: 'org.passay', name: 'passay', version: "${passayVersion}"
  325. implementation group: 'io.micrometer', name: 'micrometer-core', version: "${micrometercoreVersion}"
  326. implementation group: 'org.latencyutils', name: 'LatencyUtils', version: "${LatencyUtilsVersion}"
  327. implementation group: 'org.codehaus.woodstox', name: 'stax2-api', version: "${stax2apiVersion}"
  328. implementation group: 'org.reflections', name: 'reflections', version: '0.9.11'
  329. implementation group: 'io.prometheus', name: 'simpleclient', version: '0.5.0'
  330. //阿里云
  331. implementation group: 'com.aliyun', name: 'aliyun-java-sdk-core', version: "${aliyunjavasdkcoreVersion}"
  332. //腾讯云
  333. implementation group: 'com.tencentcloudapi', name: 'tencentcloud-sdk-java', version: "${tencentcloudsdkjavaVersion}"
  334. //json
  335. implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: "${jacksonVersion}"
  336. implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: "${jacksonVersion}"
  337. implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: "${jacksonVersion}"
  338. implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jdk8', version: "${jacksonVersion}"
  339. implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: "${jacksonVersion}"
  340. implementation group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: "${jacksonVersion}"
  341. implementation group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-xml', version: "${jacksonVersion}"
  342. implementation group: 'com.fasterxml.jackson.module', name: 'jackson-module-parameter-names', version: "${jacksonVersion}"
  343. implementation group: 'com.fasterxml', name: 'classmate', version: "${classmateVersion}"
  344. implementation group: 'com.alibaba', name: 'fastjson', version: "${fastjsonVersion}"
  345. //docs
  346. implementation group: 'org.mapstruct', name: 'mapstruct', version: "${mapstructVersion}"
  347. implementation group: 'io.swagger', name: 'swagger-annotations', version: "${swaggerVersion}"
  348. implementation group: 'io.swagger', name: 'swagger-models', version: "${swaggerVersion}"
  349. implementation group: 'io.swagger.core.v3', name: 'swagger-annotations', version: "${swaggerV3Version}"
  350. implementation group: 'io.swagger.core.v3', name: 'swagger-core', version: "${swaggerV3Version}"
  351. implementation group: 'io.swagger.core.v3', name: 'swagger-integration', version: "${swaggerV3Version}"
  352. implementation group: 'io.swagger.core.v3', name: 'swagger-models', version: "${swaggerV3Version}"
  353. //springfox
  354. implementation group: 'io.springfox', name: 'springfox-bean-validators', version: "${springfoxVersion}"
  355. implementation group: 'io.springfox', name: 'springfox-core', version: "${springfoxVersion}"
  356. implementation group: 'io.springfox', name: 'springfox-data-rest', version: "${springfoxVersion}"
  357. implementation group: 'io.springfox', name: 'springfox-spi', version: "${springfoxVersion}"
  358. implementation group: 'io.springfox', name: 'springfox-oas', version: "${springfoxVersion}"
  359. implementation group: 'io.springfox', name: 'springfox-schema', version: "${springfoxVersion}"
  360. implementation group: 'io.springfox', name: 'springfox-swagger2', version: "${springfoxVersion}"
  361. implementation group: 'io.springfox', name: 'springfox-swagger-ui', version: "${springfoxVersion}"
  362. implementation group: 'io.springfox', name: 'springfox-swagger-common', version: "${springfoxVersion}"
  363. implementation group: 'io.springfox', name: 'springfox-spring-webmvc', version: "${springfoxVersion}"
  364. implementation group: 'io.springfox', name: 'springfox-spring-web', version: "${springfoxVersion}"
  365. implementation group: 'io.springfox', name: 'springfox-spring-webflux', version: "${springfoxVersion}"
  366. implementation group: 'io.springfox', name: 'springfox-boot-starter', version: "${springfoxVersion}"
  367. //knife4j
  368. implementation group: 'com.github.xiaoymin', name: 'knife4j-annotations', version: "${knife4jVersion}"
  369. implementation group: 'com.github.xiaoymin', name: 'knife4j-core', version: "${knife4jVersion}"
  370. implementation group: 'com.github.xiaoymin', name: 'knife4j-spring-mvc', version: "${knife4jVersion}"
  371. implementation group: 'com.github.xiaoymin', name: 'knife4j-spring', version: "${knife4jVersion}"
  372. implementation group: 'com.github.xiaoymin', name: 'knife4j-spring-ui', version: "${knife4jVersion}"
  373. implementation group: 'com.github.xiaoymin', name: 'knife4j-spring-boot-starter', version: "${knife4jVersion}"
  374. implementation group: 'com.github.xiaoymin', name: 'knife4j-spring-boot-autoconfigure', version: "${knife4jVersion}"
  375. //local jars
  376. implementation fileTree(dir: "${rootDir}/maxkey-lib/", include: '*.jar')
  377. }
  378. jar {
  379. def currentTime = java.time.ZonedDateTime.now()
  380. manifest {
  381. attributes(
  382. "Implementation-Title": project.name,
  383. "Implementation-Vendor": project.vendor,
  384. "Created-By": project.author,
  385. "Implementation-Date": currentTime,
  386. "Implementation-Version": project.version
  387. )
  388. }
  389. }
  390. tasks.register("buildRelease",Copy) {
  391. dependsOn assemble
  392. //项目名 项目所在的group version 版本号
  393. println "subproject " + project.name + ", group " + project.group +" , version " + project.version
  394. //copy
  395. into "$rootDir/build/maxkey-jars/"
  396. from "$buildDir/libs/"
  397. include '*.jar'
  398. }
  399. assemble.configure { finalizedBy buildRelease }
  400. }
  401. //copy Dep Jars to /build/maxkey-depjars,only maxkey-common deps
  402. project('maxkey-common') {
  403. task createReleaseDir(type: Copy){
  404. def paths = ["$rootDir/build/MaxKey-v${project.version}GA",
  405. "$rootDir/build/MaxKey-v${project.version}GA/maxkey",
  406. "$rootDir/build/MaxKey-v${project.version}GA/maxkey_mgt",
  407. "$rootDir/build/MaxKey-v${project.version}GA/lib"];
  408. //遍历数组,调用createDir闭包,创建目录
  409. paths.forEach(){path->
  410. File dir=new File(path);
  411. if (!dir.exists()){
  412. print("create "+path+"\n")
  413. dir.mkdirs();
  414. }
  415. };
  416. }
  417. task copyDepJars (type: Copy){
  418. dependsOn assemble
  419. println "copy Dep Jars to $rootDir/build/MaxKey-v${project.version}GA/lib"
  420. from configurations.runtimeClasspath
  421. into "$rootDir/build/MaxKey-v${project.version}GA/lib";
  422. }
  423. build.configure { finalizedBy copyDepJars }
  424. }
  425. //copy Dep Jars to /build/maxkey-depjars,only maxkey-boot-monitor deps
  426. project('maxkey-webs:maxkey-boot-monitor') {
  427. task createReleaseDir(type: Copy){
  428. def paths = ["$rootDir/build/MaxKey-v${project.version}GA/maxkey_monitor"];
  429. //遍历数组,调用createDir闭包,创建目录
  430. paths.forEach(){path->
  431. File dir=new File(path);
  432. if (!dir.exists()){
  433. print("create "+path+"\n")
  434. dir.mkdirs();
  435. }
  436. };
  437. }
  438. task copyDepJars(type:Copy) {
  439. dependsOn assemble
  440. //项目名 项目所在的group version 版本号
  441. println "subproject " + project.name + ", group " + project.group +" , version " + project.version
  442. //copy
  443. from "$buildDir/libs/" include '*.jar'
  444. from configurations.runtimeClasspath
  445. into "$rootDir/build/MaxKey-v${project.version}GA/maxkey_monitor";
  446. }
  447. build.configure { finalizedBy copyDepJars }
  448. }
  449. project('maxkey-webs:maxkey-web-maxkey') {
  450. task copyDepJars (type: Copy){
  451. println "project copyMaxKey .";
  452. from "$rootDir/build/maxkey-jars/maxkey-authentication-social-${project.version}.jar"
  453. from "$rootDir/build/maxkey-jars/maxkey-web-maxkey-${project.version}.jar"
  454. into "$rootDir/build/MaxKey-v${project.version}GA/maxkey/";
  455. }
  456. //common lib jars
  457. task copyMaxKeyLibs(type: Copy) {
  458. from "$rootDir/build/maxkey-jars/maxkey-authentication-otp-${project.version}.jar"
  459. from "$rootDir/build/maxkey-jars/maxkey-authentication-captcha-${project.version}.jar"
  460. from "$rootDir/build/maxkey-jars/maxkey-authentication-core-${project.version}.jar"
  461. from "$rootDir/build/maxkey-jars/maxkey-common-${project.version}.jar"
  462. from "$rootDir/build/maxkey-jars/maxkey-core-${project.version}.jar"
  463. from "$rootDir/build/maxkey-jars/maxkey-persistence-${project.version}.jar"
  464. from "$rootDir/build/maxkey-jars/maxkey-protocol-authorize-${project.version}.jar"
  465. from "$rootDir/build/maxkey-jars/maxkey-protocol-cas-${project.version}.jar"
  466. from "$rootDir/build/maxkey-jars/maxkey-protocol-desktop-${project.version}.jar"
  467. from "$rootDir/build/maxkey-jars/maxkey-protocol-extendapi-${project.version}.jar"
  468. from "$rootDir/build/maxkey-jars/maxkey-protocol-formbased-${project.version}.jar"
  469. from "$rootDir/build/maxkey-jars/maxkey-protocol-jwt-${project.version}.jar"
  470. from "$rootDir/build/maxkey-jars/maxkey-protocol-oauth-2.0-${project.version}.jar"
  471. from "$rootDir/build/maxkey-jars/maxkey-protocol-saml-2.0-${project.version}.jar"
  472. from "$rootDir/build/maxkey-jars/maxkey-protocol-tokenbased-${project.version}.jar"
  473. from "$rootDir/build/maxkey-jars/maxkey-web-resources-${project.version}.jar"
  474. into "$rootDir/build/MaxKey-v${project.version}GA/lib";
  475. }
  476. build.configure { finalizedBy copyDepJars }
  477. copyDepJars.configure { finalizedBy copyMaxKeyLibs }
  478. }
  479. project('maxkey-webs:maxkey-web-mgt') {
  480. task copyDepJars (type: Copy){
  481. println "project copyMaxKeyMgt .";
  482. from "$rootDir/build/maxkey-jars/maxkey-identity-rest-${project.version}.jar"
  483. from "$rootDir/build/maxkey-jars/maxkey-identity-scim-${project.version}.jar"
  484. from "$rootDir/build/maxkey-jars/maxkey-web-mgt-${project.version}.jar"
  485. from "$rootDir/build/maxkey-jars/maxkey-synchronizers-${project.version}.jar"
  486. from "$rootDir/build/maxkey-jars/maxkey-synchronizers-activedirectory-${project.version}.jar"
  487. from "$rootDir/build/maxkey-jars/maxkey-synchronizers-ldap-${project.version}.jar"
  488. from "$rootDir/build/maxkey-jars/maxkey-synchronizers-dingding-${project.version}.jar"
  489. from "$rootDir/build/maxkey-jars/maxkey-synchronizers-workweixin-${project.version}.jar"
  490. into "$rootDir/build/MaxKey-v${project.version}GA/maxkey_mgt/";
  491. }
  492. build.configure { finalizedBy copyDepJars }
  493. }
  494. tasks.register("buildRelease") {
  495. dependsOn 'copyShellScript','copyWindowsShellScript'
  496. //项目名 项目所在的group version 版本号
  497. println "Root project " + project.name + ", group " + project.group +" , version " + project.version
  498. //项目的绝对路径 to 项目的build文件绝对路径
  499. println "Root project projectDir " + project.projectDir +" to " + project.buildDir
  500. }
  501. tasks.register("copyShellScript",Copy) {
  502. println "project copyMaxKeyShellScript .";
  503. from "$rootDir/shellscript/"
  504. into "$rootDir/build/MaxKey-v${project.version}GA/shellscript/";
  505. }
  506. tasks.register("copyWindowsShellScript",Copy) {
  507. println "project copyMaxKeyWindowsShellScript .";
  508. from "$rootDir/shellscript/windows"
  509. into "$rootDir/build/MaxKey-v${project.version}GA/";
  510. }
  511. build.configure { finalizedBy buildRelease }