|
@@ -22,12 +22,12 @@ defaultTasks "clean", "build"
|
|
|
|
|
|
//Version define
|
|
|
ext {
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
|
configurations.all {
|
|
|
- transitive = false// 为本依赖关闭依赖传递特性
|
|
|
+ transitive = false// 为本依赖关闭依赖传递特性
|
|
|
}
|
|
|
|
|
|
//add support for Java
|
|
@@ -39,23 +39,23 @@ allprojects {
|
|
|
//apply plugin: "findbugs"
|
|
|
//apply plugin: "jdepend"
|
|
|
|
|
|
- configurations.all {
|
|
|
- transitive = false// 为本依赖关闭依赖传递特性
|
|
|
- }
|
|
|
- //java Version
|
|
|
- sourceCompatibility = 1.8
|
|
|
- targetCompatibility = 1.8
|
|
|
- compileJava.options.encoding = 'UTF-8'
|
|
|
- /*
|
|
|
- eclipse {
|
|
|
- 第一次时请注释这段eclipse设置,可能报错,设置工程字符集
|
|
|
- jdt {
|
|
|
- File f = file('.settings/org.eclipse.core.resources.prefs')
|
|
|
- f.write('eclipse.preferences.version=1\n')
|
|
|
- f.append('encoding/<project>=UTF-8') //use UTF-8
|
|
|
- }
|
|
|
- }
|
|
|
- */
|
|
|
+ configurations.all {
|
|
|
+ transitive = false// 为本依赖关闭依赖传递特性
|
|
|
+ }
|
|
|
+ //java Version
|
|
|
+ sourceCompatibility = 1.8
|
|
|
+ targetCompatibility = 1.8
|
|
|
+ compileJava.options.encoding = 'UTF-8'
|
|
|
+ /*
|
|
|
+ eclipse {
|
|
|
+ 第一次时请注释这段eclipse设置,可能报错,设置工程字符集
|
|
|
+ jdt {
|
|
|
+ File f = file('.settings/org.eclipse.core.resources.prefs')
|
|
|
+ f.write('eclipse.preferences.version=1\n')
|
|
|
+ f.append('encoding/<project>=UTF-8') //use UTF-8
|
|
|
+ }
|
|
|
+ }
|
|
|
+ */
|
|
|
|
|
|
|
|
|
}
|
|
@@ -77,32 +77,32 @@ repositories {
|
|
|
|
|
|
|
|
|
subprojects {
|
|
|
- /*
|
|
|
- eclipse {
|
|
|
- 第一次时请注释这段eclipse设置,可能报错,设置工程字符集
|
|
|
- jdt {
|
|
|
- File f = file('.settings/org.eclipse.core.resources.prefs')
|
|
|
- f.write('eclipse.preferences.version=1\n')
|
|
|
- f.append('encoding/<project>=UTF-8') //use UTF-8
|
|
|
- }
|
|
|
- }
|
|
|
- */
|
|
|
- processResources {
|
|
|
- from ('src/main/resources') {
|
|
|
- include 'src/main/resources/*.*'
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- sourceSets {
|
|
|
- main {
|
|
|
- java {
|
|
|
- srcDir 'src/main/java' // 指定源码目录
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- repositories {
|
|
|
+ /*
|
|
|
+ eclipse {
|
|
|
+ 第一次时请注释这段eclipse设置,可能报错,设置工程字符集
|
|
|
+ jdt {
|
|
|
+ File f = file('.settings/org.eclipse.core.resources.prefs')
|
|
|
+ f.write('eclipse.preferences.version=1\n')
|
|
|
+ f.append('encoding/<project>=UTF-8') //use UTF-8
|
|
|
+ }
|
|
|
+ }
|
|
|
+ */
|
|
|
+ processResources {
|
|
|
+ from ('src/main/resources') {
|
|
|
+ include 'src/main/resources/*.*'
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ sourceSets {
|
|
|
+ main {
|
|
|
+ java {
|
|
|
+ srcDir 'src/main/java' // 指定源码目录
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ repositories {
|
|
|
mavenLocal()
|
|
|
maven { url "https://maven.aliyun.com/repository/central/"}
|
|
|
maven { url "https://maven.aliyun.com/repository/public/"}
|
|
@@ -110,23 +110,23 @@ subprojects {
|
|
|
maven { url "https://repo.spring.io/plugins-release/" }
|
|
|
maven { url "https://repo.spring.io/milestone" }
|
|
|
maven { url "https://repo1.maven.org/maven2/" }
|
|
|
- maven { url "https://build.shibboleth.net/nexus/content/repositories/releases/" }
|
|
|
- maven { url "https://mvnrepository.com/repos/central/" }
|
|
|
+ maven { url "https://build.shibboleth.net/nexus/content/repositories/releases/" }
|
|
|
+ maven { url "https://mvnrepository.com/repos/central/" }
|
|
|
maven { url "https://jcenter.bintray.com" }
|
|
|
maven { url "https://mvn.gt.igexin.com/nexus/content/repositories/releases"}
|
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
|
|
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
|
|
|
maven { url "https://maven.repository.redhat.com/ga/" }
|
|
|
- maven { url "https://repository.apache.org/content/repositories/releases/" }
|
|
|
- mavenCentral()
|
|
|
+ maven { url "https://repository.apache.org/content/repositories/releases/" }
|
|
|
+ mavenCentral()
|
|
|
}
|
|
|
-
|
|
|
- //all dependencies
|
|
|
- dependencies {
|
|
|
-
|
|
|
- //for Test and Compile
|
|
|
- testImplementation group: 'junit', name: 'junit', version: "${junitVersion}"
|
|
|
- compileOnly group: 'junit', name: 'junit', version: "${junitVersion}"
|
|
|
+
|
|
|
+ //all dependencies
|
|
|
+ dependencies {
|
|
|
+
|
|
|
+ //for Test and Compile
|
|
|
+ testImplementation group: 'junit', name: 'junit', version: "${junitVersion}"
|
|
|
+ compileOnly group: 'junit', name: 'junit', version: "${junitVersion}"
|
|
|
testImplementation group: 'org.mockito', name: 'mockito-all', version: "${mockitoallVersion}"
|
|
|
testImplementation group: 'xmlunit', name: 'xmlunit', version: "${xmlunitVersion}"
|
|
|
|
|
@@ -165,21 +165,21 @@ subprojects {
|
|
|
implementation group: 'org.apache.poi', name: 'poi-scratchpad', version: "${poiVersion}"
|
|
|
//implementation group: 'org.apache.commons', name: 'not-yet-commons-ssl', version: "${notyetcommonssslVersion}"
|
|
|
//tomcat embed Core Tomcat implementation
|
|
|
- implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-core', version: "${tomcatVersion}"
|
|
|
- //JULI logging implementation for embedded Tomcat
|
|
|
- implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-logging-juli', version: "${tomcatembedloggingjuliVersion}"
|
|
|
- //apache logs
|
|
|
+ implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-core', version: "${tomcatVersion}"
|
|
|
+ //JULI logging implementation for embedded Tomcat
|
|
|
+ implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-logging-juli', version: "${tomcatembedloggingjuliVersion}"
|
|
|
+ //apache logs
|
|
|
implementation group: 'org.apache.logging.log4j', name: 'log4j-1.2-api', version: "${log4jVersion}"
|
|
|
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: "${log4jVersion}"
|
|
|
- implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: "${log4jVersion}"
|
|
|
- implementation group: 'org.apache.logging.log4j', name: 'log4j-jcl', version: "${log4jVersion}"
|
|
|
- implementation group: 'org.apache.logging.log4j', name: 'log4j-jul', version: "${log4jVersion}"
|
|
|
- implementation group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: "${log4jVersion}"
|
|
|
- implementation group: 'org.apache.logging.log4j', name: 'log4j-web', version: "${log4jVersion}"
|
|
|
- //logs
|
|
|
+ implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: "${log4jVersion}"
|
|
|
+ implementation group: 'org.apache.logging.log4j', name: 'log4j-jcl', version: "${log4jVersion}"
|
|
|
+ implementation group: 'org.apache.logging.log4j', name: 'log4j-jul', version: "${log4jVersion}"
|
|
|
+ implementation group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: "${log4jVersion}"
|
|
|
+ implementation group: 'org.apache.logging.log4j', name: 'log4j-web', version: "${log4jVersion}"
|
|
|
+ //logs
|
|
|
implementation group: 'org.slf4j', name: 'slf4j-api', version: "${slf4jVersion}"
|
|
|
implementation group: 'org.jboss.logging', name: 'jboss-logging', version: "${jbossloggingVersion}"
|
|
|
- //spring
|
|
|
+ //spring
|
|
|
implementation group: 'org.springframework', name: 'spring-aop', version: "${springVersion}"
|
|
|
implementation group: 'org.springframework', name: 'spring-aspects', version: "${springVersion}"
|
|
|
implementation group: 'org.springframework', name: 'spring-beans', version: "${springVersion}"
|
|
@@ -200,16 +200,16 @@ subprojects {
|
|
|
//implementation group: 'org.springframework', name: 'spring-webflux', version: "${springVersion}"
|
|
|
implementation group: 'org.springframework', name: 'spring-webmvc', version: "${springVersion}"
|
|
|
//implementation group: 'org.springframework', name: 'spring-websocket', version: "${springVersion}"
|
|
|
- testImplementation group: 'org.springframework', name: 'spring-test', version: "${springVersion}"
|
|
|
-
|
|
|
- //kafka support
|
|
|
- // https://mvnrepository.com/artifact/org.apache.kafka/kafka-clients
|
|
|
- implementation group: 'org.apache.kafka', name: 'kafka-clients', version: "${kafkaclientsVersion}"
|
|
|
- // https://mvnrepository.com/artifact/org.springframework.kafka/spring-kafka
|
|
|
- implementation group: 'org.springframework.kafka', name: 'spring-kafka', version: "${springkafkaVersion}"
|
|
|
- // https://mvnrepository.com/artifact/org.springframework.retry/spring-retry
|
|
|
- implementation group: 'org.springframework.retry', name: 'spring-retry', version: "${springretryVersion}"
|
|
|
-
|
|
|
+ testImplementation group: 'org.springframework', name: 'spring-test', version: "${springVersion}"
|
|
|
+
|
|
|
+ //kafka support
|
|
|
+ // https://mvnrepository.com/artifact/org.apache.kafka/kafka-clients
|
|
|
+ implementation group: 'org.apache.kafka', name: 'kafka-clients', version: "${kafkaclientsVersion}"
|
|
|
+ // https://mvnrepository.com/artifact/org.springframework.kafka/spring-kafka
|
|
|
+ implementation group: 'org.springframework.kafka', name: 'spring-kafka', version: "${springkafkaVersion}"
|
|
|
+ // https://mvnrepository.com/artifact/org.springframework.retry/spring-retry
|
|
|
+ implementation group: 'org.springframework.retry', name: 'spring-retry', version: "${springretryVersion}"
|
|
|
+
|
|
|
//spring-security
|
|
|
implementation group: 'org.springframework.security', name: 'spring-security-core', version: "${springSecurityVersion}"
|
|
|
implementation group: 'org.springframework.security', name: 'spring-security-web', version: "${springSecurityVersion}"
|
|
@@ -230,7 +230,7 @@ subprojects {
|
|
|
//spring-data
|
|
|
implementation group: 'org.springframework.data', name: 'spring-data-commons', version: "${springDataVersion}"
|
|
|
implementation group: 'org.springframework.data', name: 'spring-data-keyvalue', version: "${springDataVersion}"
|
|
|
- implementation group: 'org.springframework.data', name: 'spring-data-redis', version: "${springDataVersion}"
|
|
|
+ implementation group: 'org.springframework.data', name: 'spring-data-redis', version: "${springDataVersion}"
|
|
|
//spring-session
|
|
|
implementation group: 'org.springframework.session', name: 'spring-session-core', version: "${springSessionVersion}"
|
|
|
implementation group: 'org.springframework.session', name: 'spring-session-data-redis', version: "${springSessionVersion}"
|
|
@@ -263,10 +263,10 @@ subprojects {
|
|
|
implementation group: 'javax.transaction', name: 'javax.transaction-api', version: "${javaxtransactionapiVersion}"
|
|
|
implementation group: 'javax.validation', name: 'validation-api', version: "${validationapiVersion}"
|
|
|
implementation group: 'javax.xml', name: 'jsr173', version: "${jsr173Version}"
|
|
|
- implementation group: 'javax.xml.bind', name: 'jaxb-api', version: "${jaxbapiVersion}"
|
|
|
- implementation group: 'com.sun.xml.bind', name: 'jaxb-core', version: "${jaxbcoreVersion}"
|
|
|
- implementation group: 'com.sun.xml.bind', name: 'jaxb-impl', version: "${jaxbimplVersion}"
|
|
|
- implementation group: 'com.sun.xml.bind', name: 'jaxb-xjc', version: "${jaxbxjcVersion}"
|
|
|
+ implementation group: 'javax.xml.bind', name: 'jaxb-api', version: "${jaxbapiVersion}"
|
|
|
+ implementation group: 'com.sun.xml.bind', name: 'jaxb-core', version: "${jaxbcoreVersion}"
|
|
|
+ implementation group: 'com.sun.xml.bind', name: 'jaxb-impl', version: "${jaxbimplVersion}"
|
|
|
+ implementation group: 'com.sun.xml.bind', name: 'jaxb-xjc', version: "${jaxbxjcVersion}"
|
|
|
//crypto
|
|
|
implementation group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: "${bouncycastleVersion}"
|
|
|
implementation group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: "${bouncycastleVersion}"
|
|
@@ -284,19 +284,19 @@ subprojects {
|
|
|
implementation group: 'eu.tekul', name: 'szxcvbn_2.9.2', version: "${szxcvbnVersion}"
|
|
|
//quartz
|
|
|
implementation group: 'org.quartz-scheduler', name: 'quartz', version: "${quartzVersion}"
|
|
|
- //database
|
|
|
- implementation group: 'mysql', name: 'mysql-connector-java', version: "${mysqlconnectorjavaVersion}"
|
|
|
- implementation group: 'org.postgresql', name: 'postgresql', version: "${postgresqlVersion}"
|
|
|
- implementation group: 'com.alibaba', name: 'druid', version: "${druidVersion}"
|
|
|
- implementation group: 'com.alibaba', name: 'druid-spring-boot-starter', version: "${druidspringbootstarterVersion}"
|
|
|
+ //database
|
|
|
+ implementation group: 'mysql', name: 'mysql-connector-java', version: "${mysqlconnectorjavaVersion}"
|
|
|
+ implementation group: 'org.postgresql', name: 'postgresql', version: "${postgresqlVersion}"
|
|
|
+ implementation group: 'com.alibaba', name: 'druid', version: "${druidVersion}"
|
|
|
+ implementation group: 'com.alibaba', name: 'druid-spring-boot-starter', version: "${druidspringbootstarterVersion}"
|
|
|
implementation group: 'redis.clients', name: 'jedis', version: "${jedisVersion}"
|
|
|
implementation group: 'org.ehcache', name: 'ehcache', version: "${ehcacheVersion}"
|
|
|
//implementation group: 'org.liquibase', name: 'liquibase-core', version: '4.3.5'
|
|
|
|
|
|
- //mybatis
|
|
|
+ //mybatis
|
|
|
implementation group: 'org.mybatis', name: 'mybatis', version: "${mybatisVersion}"
|
|
|
implementation group: 'org.mybatis', name: 'mybatis-spring', version: "${mybatisspringVersion}"
|
|
|
- //hibernate
|
|
|
+ //hibernate
|
|
|
implementation group: 'org.hibernate.validator', name: 'hibernate-validator', version: "${hibernateVersion}"
|
|
|
implementation group: 'org.hibernate', name: 'hibernate-validator-cdi', version: "${hibernateVersion}"
|
|
|
implementation group: 'org.hibernate.validator', name: 'hibernate-validator-annotation-processor', version: "${hibernateVersion}"
|
|
@@ -313,19 +313,19 @@ subprojects {
|
|
|
implementation group: 'aopalliance', name: 'aopalliance', version: "${aopallianceVersion}"
|
|
|
implementation group: 'org.aspectj', name: 'aspectjtools', version: "${aspectjtoolsVersion}"
|
|
|
implementation group: 'dom4j', name: 'dom4j', version: "${dom4jVersion}"
|
|
|
- implementation group: 'xalan', name: 'serializer', version: "${serializerVersion}"
|
|
|
- implementation group: 'xml-resolver', name: 'xml-resolver', version: "${xmlresolverVersion}"
|
|
|
- implementation group: 'org.apache.santuario', name: 'xmlsec', version: "${xmlsecVersion}"
|
|
|
- implementation group: 'org.ogce', name: 'xpp3', version: "${xpp3Version}"
|
|
|
- implementation group: 'com.thoughtworks.xstream', name: 'xstream', version: "${xstreamVersion}"
|
|
|
- implementation group: 'org.passay', name: 'passay', version: "${passayVersion}"
|
|
|
- implementation group: 'io.micrometer', name: 'micrometer-core', version: "${micrometercoreVersion}"
|
|
|
- implementation group: 'org.latencyutils', name: 'LatencyUtils', version: "${LatencyUtilsVersion}"
|
|
|
- implementation group: 'org.codehaus.woodstox', name: 'stax2-api', version: "${stax2apiVersion}"
|
|
|
- //阿里云
|
|
|
- implementation group: 'com.aliyun', name: 'aliyun-java-sdk-core', version: "${aliyunjavasdkcoreVersion}"
|
|
|
- //腾讯云
|
|
|
- implementation group: 'com.tencentcloudapi', name: 'tencentcloud-sdk-java', version: "${tencentcloudsdkjavaVersion}"
|
|
|
+ implementation group: 'xalan', name: 'serializer', version: "${serializerVersion}"
|
|
|
+ implementation group: 'xml-resolver', name: 'xml-resolver', version: "${xmlresolverVersion}"
|
|
|
+ implementation group: 'org.apache.santuario', name: 'xmlsec', version: "${xmlsecVersion}"
|
|
|
+ implementation group: 'org.ogce', name: 'xpp3', version: "${xpp3Version}"
|
|
|
+ implementation group: 'com.thoughtworks.xstream', name: 'xstream', version: "${xstreamVersion}"
|
|
|
+ implementation group: 'org.passay', name: 'passay', version: "${passayVersion}"
|
|
|
+ implementation group: 'io.micrometer', name: 'micrometer-core', version: "${micrometercoreVersion}"
|
|
|
+ implementation group: 'org.latencyutils', name: 'LatencyUtils', version: "${LatencyUtilsVersion}"
|
|
|
+ implementation group: 'org.codehaus.woodstox', name: 'stax2-api', version: "${stax2apiVersion}"
|
|
|
+ //阿里云
|
|
|
+ implementation group: 'com.aliyun', name: 'aliyun-java-sdk-core', version: "${aliyunjavasdkcoreVersion}"
|
|
|
+ //腾讯云
|
|
|
+ implementation group: 'com.tencentcloudapi', name: 'tencentcloud-sdk-java', version: "${tencentcloudsdkjavaVersion}"
|
|
|
//json
|
|
|
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: "${jacksonVersion}"
|
|
|
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: "${jacksonVersion}"
|
|
@@ -334,78 +334,78 @@ subprojects {
|
|
|
implementation group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: "${jacksonVersion}"
|
|
|
implementation group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-xml', version: "${jacksonVersion}"
|
|
|
implementation group: 'com.fasterxml', name: 'classmate', version: "${classmateVersion}"
|
|
|
- implementation group: 'com.alibaba', name: 'fastjson', version: "${fastjsonVersion}"
|
|
|
- //docs
|
|
|
- implementation group: 'org.mapstruct', name: 'mapstruct', version: "${mapstructVersion}"
|
|
|
- implementation group: 'io.swagger', name: 'swagger-annotations', version: "${swaggerVersion}"
|
|
|
- implementation group: 'io.swagger', name: 'swagger-models', version: "${swaggerVersion}"
|
|
|
- implementation group: 'io.swagger.core.v3', name: 'swagger-annotations', version: "${swaggerV3Version}"
|
|
|
- implementation group: 'io.swagger.core.v3', name: 'swagger-core', version: "${swaggerV3Version}"
|
|
|
- implementation group: 'io.swagger.core.v3', name: 'swagger-integration', version: "${swaggerV3Version}"
|
|
|
- implementation group: 'io.swagger.core.v3', name: 'swagger-models', version: "${swaggerV3Version}"
|
|
|
- //springfox
|
|
|
- implementation group: 'io.springfox', name: 'springfox-bean-validators', version: "${springfoxVersion}"
|
|
|
- implementation group: 'io.springfox', name: 'springfox-core', version: "${springfoxVersion}"
|
|
|
- implementation group: 'io.springfox', name: 'springfox-data-rest', version: "${springfoxVersion}"
|
|
|
- implementation group: 'io.springfox', name: 'springfox-spi', version: "${springfoxVersion}"
|
|
|
- implementation group: 'io.springfox', name: 'springfox-oas', version: "${springfoxVersion}"
|
|
|
- implementation group: 'io.springfox', name: 'springfox-schema', version: "${springfoxVersion}"
|
|
|
- implementation group: 'io.springfox', name: 'springfox-swagger2', version: "${springfoxVersion}"
|
|
|
- implementation group: 'io.springfox', name: 'springfox-swagger-ui', version: "${springfoxVersion}"
|
|
|
- implementation group: 'io.springfox', name: 'springfox-swagger-common', version: "${springfoxVersion}"
|
|
|
- implementation group: 'io.springfox', name: 'springfox-spring-webmvc', version: "${springfoxVersion}"
|
|
|
- implementation group: 'io.springfox', name: 'springfox-spring-web', version: "${springfoxVersion}"
|
|
|
- implementation group: 'io.springfox', name: 'springfox-spring-webflux', version: "${springfoxVersion}"
|
|
|
- implementation group: 'io.springfox', name: 'springfox-boot-starter', version: "${springfoxVersion}"
|
|
|
- //knife4j
|
|
|
- implementation group: 'com.github.xiaoymin', name: 'knife4j-annotations', version: "${knife4jVersion}"
|
|
|
- implementation group: 'com.github.xiaoymin', name: 'knife4j-core', version: "${knife4jVersion}"
|
|
|
- implementation group: 'com.github.xiaoymin', name: 'knife4j-spring-mvc', version: "${knife4jVersion}"
|
|
|
- implementation group: 'com.github.xiaoymin', name: 'knife4j-spring', version: "${knife4jVersion}"
|
|
|
- implementation group: 'com.github.xiaoymin', name: 'knife4j-spring-ui', version: "${knife4jVersion}"
|
|
|
- implementation group: 'com.github.xiaoymin', name: 'knife4j-spring-boot-starter', version: "${knife4jVersion}"
|
|
|
- implementation group: 'com.github.xiaoymin', name: 'knife4j-spring-boot-autoconfigure', version: "${knife4jVersion}"
|
|
|
-
|
|
|
- //local jars
|
|
|
- implementation fileTree(dir: "${rootDir}/maxkey-lib/", include: '*.jar')
|
|
|
+ implementation group: 'com.alibaba', name: 'fastjson', version: "${fastjsonVersion}"
|
|
|
+ //docs
|
|
|
+ implementation group: 'org.mapstruct', name: 'mapstruct', version: "${mapstructVersion}"
|
|
|
+ implementation group: 'io.swagger', name: 'swagger-annotations', version: "${swaggerVersion}"
|
|
|
+ implementation group: 'io.swagger', name: 'swagger-models', version: "${swaggerVersion}"
|
|
|
+ implementation group: 'io.swagger.core.v3', name: 'swagger-annotations', version: "${swaggerV3Version}"
|
|
|
+ implementation group: 'io.swagger.core.v3', name: 'swagger-core', version: "${swaggerV3Version}"
|
|
|
+ implementation group: 'io.swagger.core.v3', name: 'swagger-integration', version: "${swaggerV3Version}"
|
|
|
+ implementation group: 'io.swagger.core.v3', name: 'swagger-models', version: "${swaggerV3Version}"
|
|
|
+ //springfox
|
|
|
+ implementation group: 'io.springfox', name: 'springfox-bean-validators', version: "${springfoxVersion}"
|
|
|
+ implementation group: 'io.springfox', name: 'springfox-core', version: "${springfoxVersion}"
|
|
|
+ implementation group: 'io.springfox', name: 'springfox-data-rest', version: "${springfoxVersion}"
|
|
|
+ implementation group: 'io.springfox', name: 'springfox-spi', version: "${springfoxVersion}"
|
|
|
+ implementation group: 'io.springfox', name: 'springfox-oas', version: "${springfoxVersion}"
|
|
|
+ implementation group: 'io.springfox', name: 'springfox-schema', version: "${springfoxVersion}"
|
|
|
+ implementation group: 'io.springfox', name: 'springfox-swagger2', version: "${springfoxVersion}"
|
|
|
+ implementation group: 'io.springfox', name: 'springfox-swagger-ui', version: "${springfoxVersion}"
|
|
|
+ implementation group: 'io.springfox', name: 'springfox-swagger-common', version: "${springfoxVersion}"
|
|
|
+ implementation group: 'io.springfox', name: 'springfox-spring-webmvc', version: "${springfoxVersion}"
|
|
|
+ implementation group: 'io.springfox', name: 'springfox-spring-web', version: "${springfoxVersion}"
|
|
|
+ implementation group: 'io.springfox', name: 'springfox-spring-webflux', version: "${springfoxVersion}"
|
|
|
+ implementation group: 'io.springfox', name: 'springfox-boot-starter', version: "${springfoxVersion}"
|
|
|
+ //knife4j
|
|
|
+ implementation group: 'com.github.xiaoymin', name: 'knife4j-annotations', version: "${knife4jVersion}"
|
|
|
+ implementation group: 'com.github.xiaoymin', name: 'knife4j-core', version: "${knife4jVersion}"
|
|
|
+ implementation group: 'com.github.xiaoymin', name: 'knife4j-spring-mvc', version: "${knife4jVersion}"
|
|
|
+ implementation group: 'com.github.xiaoymin', name: 'knife4j-spring', version: "${knife4jVersion}"
|
|
|
+ implementation group: 'com.github.xiaoymin', name: 'knife4j-spring-ui', version: "${knife4jVersion}"
|
|
|
+ implementation group: 'com.github.xiaoymin', name: 'knife4j-spring-boot-starter', version: "${knife4jVersion}"
|
|
|
+ implementation group: 'com.github.xiaoymin', name: 'knife4j-spring-boot-autoconfigure', version: "${knife4jVersion}"
|
|
|
+
|
|
|
+ //local jars
|
|
|
+ implementation fileTree(dir: "${rootDir}/maxkey-lib/", include: '*.jar')
|
|
|
}
|
|
|
|
|
|
jar {
|
|
|
|
|
|
- def currentTime = java.time.ZonedDateTime.now()
|
|
|
- manifest {
|
|
|
- attributes(
|
|
|
- "Implementation-Title": project.name,
|
|
|
- "Implementation-Vendor": project.vendor,
|
|
|
- "Created-By": project.author,
|
|
|
- "Implementation-Date": currentTime,
|
|
|
- "Implementation-Version": project.version
|
|
|
- )
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- task copyjar2Release(type: Copy,dependsOn:['build','jar'] ) {
|
|
|
- println "$buildDir/libs/ to $rootDir/build/maxkey-jars/"
|
|
|
- into "$rootDir/build/maxkey-jars/"
|
|
|
- from "$buildDir/libs/"
|
|
|
- include '*.jar'
|
|
|
- }
|
|
|
+ def currentTime = java.time.ZonedDateTime.now()
|
|
|
+ manifest {
|
|
|
+ attributes(
|
|
|
+ "Implementation-Title": project.name,
|
|
|
+ "Implementation-Vendor": project.vendor,
|
|
|
+ "Created-By": project.author,
|
|
|
+ "Implementation-Date": currentTime,
|
|
|
+ "Implementation-Version": project.version
|
|
|
+ )
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ task copyjar2Release(type: Copy,dependsOn:['build','jar'] ) {
|
|
|
+ println "$buildDir/libs/ to $rootDir/build/maxkey-jars/"
|
|
|
+ into "$rootDir/build/maxkey-jars/"
|
|
|
+ from "$buildDir/libs/"
|
|
|
+ include '*.jar'
|
|
|
+ }
|
|
|
|
|
|
- task buildRelease(dependsOn:['copyjar2Release']) {
|
|
|
- //项目名 项目所在的group version 版本号
|
|
|
- println "project " + project.name + ", group " + project.group +" , version " + project.version
|
|
|
- }
|
|
|
+ task buildRelease(dependsOn:['copyjar2Release']) {
|
|
|
+ //项目名 项目所在的group version 版本号
|
|
|
+ println "project " + project.name + ", group " + project.group +" , version " + project.version
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//copy Dep Jars to /build/maxkey-depjars,only maxkey-common deps
|
|
|
project('maxkey-common') {
|
|
|
- task copyDepJars(type: Copy){
|
|
|
- def paths = ["$rootDir/build/MaxKey-v${project.version}GA",
|
|
|
- "$rootDir/build/MaxKey-v${project.version}GA/maxkey",
|
|
|
- "$rootDir/build/MaxKey-v${project.version}GA/maxkey_mgt",
|
|
|
- "$rootDir/build/MaxKey-v${project.version}GA/lib"];
|
|
|
- //遍历数组,调用createDir闭包,创建目录
|
|
|
-
|
|
|
+ task copyDepJars(type: Copy){
|
|
|
+ def paths = ["$rootDir/build/MaxKey-v${project.version}GA",
|
|
|
+ "$rootDir/build/MaxKey-v${project.version}GA/maxkey",
|
|
|
+ "$rootDir/build/MaxKey-v${project.version}GA/maxkey_mgt",
|
|
|
+ "$rootDir/build/MaxKey-v${project.version}GA/lib"];
|
|
|
+ //遍历数组,调用createDir闭包,创建目录
|
|
|
+
|
|
|
paths.forEach(){path->
|
|
|
File dir=new File(path);
|
|
|
if (!dir.exists()){
|
|
@@ -414,11 +414,11 @@ project('maxkey-common') {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
- println "copy Dep Jars to $rootDir/build/MaxKey-v${project.version}GA/lib"
|
|
|
-
|
|
|
- from configurations.runtimeClasspath
|
|
|
- into "$rootDir/build/MaxKey-v${project.version}GA/lib";
|
|
|
- }
|
|
|
+ println "copy Dep Jars to $rootDir/build/MaxKey-v${project.version}GA/lib"
|
|
|
+
|
|
|
+ from configurations.runtimeClasspath
|
|
|
+ into "$rootDir/build/MaxKey-v${project.version}GA/lib";
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
task copyMaxKey(type: Copy) {
|
|
@@ -426,60 +426,60 @@ task copyMaxKey(type: Copy) {
|
|
|
from "$rootDir/build/maxkey-jars/maxkey-web-static-${project.version}.jar"
|
|
|
from "$rootDir/build/maxkey-jars/maxkey-web-maxkey-${project.version}.jar"
|
|
|
from "$rootDir/build/maxkey-jars/maxkey-web-maxkey-static-${project.version}.jar"
|
|
|
- into "$rootDir/build/MaxKey-v${project.version}GA/maxkey/";
|
|
|
+ into "$rootDir/build/MaxKey-v${project.version}GA/maxkey/";
|
|
|
}
|
|
|
|
|
|
task copyMaxKeyMgt(type: Copy) {
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-identity-rest-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-identity-scim-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-web-static-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-web-mgt-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-web-mgt-static-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-synchronizers-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-synchronizers-activedirectory-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-synchronizers-ldap-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-synchronizers-dingding-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-synchronizers-workweixin-${project.version}.jar"
|
|
|
- into "$rootDir/build/MaxKey-v${project.version}GA/maxkey_mgt/";
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-identity-rest-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-identity-scim-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-web-static-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-web-mgt-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-web-mgt-static-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-synchronizers-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-synchronizers-activedirectory-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-synchronizers-ldap-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-synchronizers-dingding-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-synchronizers-workweixin-${project.version}.jar"
|
|
|
+ into "$rootDir/build/MaxKey-v${project.version}GA/maxkey_mgt/";
|
|
|
}
|
|
|
|
|
|
task copyMaxKeyLibs(type: Copy) {
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-authentication-otp-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-authentication-captcha-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-authentication-core-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-common-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-core-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-persistence-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-protocol-authorize-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-protocol-cas-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-protocol-desktop-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-protocol-extendapi-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-protocol-formbased-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-protocol-jwt-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-protocol-oauth-2.0-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-protocol-saml-2.0-${project.version}.jar"
|
|
|
- from "$rootDir/build/maxkey-jars/maxkey-protocol-tokenbased-${project.version}.jar"
|
|
|
- into "$rootDir/build/MaxKey-v${project.version}GA/lib";
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-authentication-otp-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-authentication-captcha-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-authentication-core-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-common-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-core-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-persistence-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-protocol-authorize-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-protocol-cas-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-protocol-desktop-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-protocol-extendapi-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-protocol-formbased-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-protocol-jwt-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-protocol-oauth-2.0-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-protocol-saml-2.0-${project.version}.jar"
|
|
|
+ from "$rootDir/build/maxkey-jars/maxkey-protocol-tokenbased-${project.version}.jar"
|
|
|
+ into "$rootDir/build/MaxKey-v${project.version}GA/lib";
|
|
|
}
|
|
|
|
|
|
task copyMaxKeyShellScript(type: Copy) {
|
|
|
- from "$rootDir/shellscript"
|
|
|
- into "$rootDir/build/MaxKey-v${project.version}GA/";
|
|
|
+ from "$rootDir/shellscript"
|
|
|
+ into "$rootDir/build/MaxKey-v${project.version}GA/";
|
|
|
}
|
|
|
|
|
|
task buildReleaseCopy(dependsOn:['copyMaxKey','copyMaxKeyMgt','copyMaxKeyLibs','copyMaxKeyShellScript']) {
|
|
|
- //项目名
|
|
|
- println "project ReleaseCopy ."
|
|
|
+ //项目名
|
|
|
+ println "project ReleaseCopy ."
|
|
|
|
|
|
}
|
|
|
|
|
|
task buildRelease(dependsOn:['build']) {
|
|
|
- //项目名 项目所在的group version 版本号
|
|
|
- println "project " + project.name + ", group " + project.group +" , version " + project.version
|
|
|
- //项目的绝对路径
|
|
|
- println "project projectDir " + project.projectDir
|
|
|
- //项目的build文件绝对路径
|
|
|
- println "project buildDir " + project.buildDir
|
|
|
+ //项目名 项目所在的group version 版本号
|
|
|
+ println "project " + project.name + ", group " + project.group +" , version " + project.version
|
|
|
+ //项目的绝对路径
|
|
|
+ println "project projectDir " + project.projectDir
|
|
|
+ //项目的build文件绝对路径
|
|
|
+ println "project buildDir " + project.buildDir
|
|
|
|
|
|
}
|
|
|
|