build.gradle 36 KB

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