2019-04-29 23:53:10 +08:00
|
|
|
|
/*
|
2021-02-08 21:11:46 +08:00
|
|
|
|
* Copyright [2021] [MaxKey of copyright http://www.maxkey.top]
|
|
|
|
|
|
*
|
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
|
|
*
|
|
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
*
|
|
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
|
|
* limitations under the License.
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
* MaxKey build file was auto generated by running the Gradle release.bat
|
2019-04-29 23:53:10 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
defaultTasks "clean", "build"
|
|
|
|
|
|
|
2019-12-23 11:04:12 +08:00
|
|
|
|
//Version define
|
2019-05-25 23:39:07 +08:00
|
|
|
|
ext {
|
2021-11-21 18:50:41 +08:00
|
|
|
|
|
2019-05-25 23:39:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2021-11-21 18:50:41 +08:00
|
|
|
|
def libjarsmapper=[
|
|
|
|
|
|
'maxkey-authentication-captcha' :'lib',
|
|
|
|
|
|
'maxkey-authentication-core' :'lib',
|
2022-08-04 08:21:10 +08:00
|
|
|
|
'maxkey-authentication-otp' :'lib',
|
|
|
|
|
|
'maxkey-authentication-provider' :'lib',
|
2021-11-21 18:50:41 +08:00
|
|
|
|
'maxkey-common' :'lib',
|
|
|
|
|
|
'maxkey-core' :'lib',
|
|
|
|
|
|
'maxkey-persistence' :'lib',
|
|
|
|
|
|
'maxkey-protocol-authorize' :'lib',
|
|
|
|
|
|
'maxkey-protocol-cas' :'lib',
|
|
|
|
|
|
'maxkey-protocol-desktop' :'lib',
|
|
|
|
|
|
'maxkey-protocol-extendapi' :'lib',
|
|
|
|
|
|
'maxkey-protocol-formbased' :'lib',
|
|
|
|
|
|
'maxkey-protocol-jwt' :'lib',
|
|
|
|
|
|
'maxkey-protocol-oauth-2.0' :'lib',
|
|
|
|
|
|
'maxkey-protocol-saml-2.0' :'lib',
|
|
|
|
|
|
'maxkey-protocol-tokenbased' :'lib',
|
|
|
|
|
|
'maxkey-web-resources' :'lib',
|
|
|
|
|
|
'maxkey-authentication-social' :'maxkey',
|
|
|
|
|
|
'maxkey-web-maxkey' :'maxkey',
|
|
|
|
|
|
'maxkey-identity-rest' :'maxkey_mgt',
|
|
|
|
|
|
'maxkey-identity-scim' :'maxkey_mgt',
|
|
|
|
|
|
'maxkey-web-mgt' :'maxkey_mgt',
|
2022-01-23 08:12:25 +08:00
|
|
|
|
'maxkey-synchronizer' :'maxkey_mgt',
|
|
|
|
|
|
'maxkey-synchronizer-activedirectory' :'maxkey_mgt',
|
|
|
|
|
|
'maxkey-synchronizer-ldap' :'maxkey_mgt',
|
|
|
|
|
|
'maxkey-synchronizer-dingtalk' :'maxkey_mgt',
|
|
|
|
|
|
'maxkey-synchronizer-workweixin' :'maxkey_mgt',
|
2022-09-04 11:11:32 +08:00
|
|
|
|
'maxkey-synchronizer-reorgdept' :'maxkey_mgt'
|
2021-11-21 18:50:41 +08:00
|
|
|
|
]
|
|
|
|
|
|
|
2019-07-21 23:46:41 +08:00
|
|
|
|
configurations.all {
|
2021-11-21 18:50:41 +08:00
|
|
|
|
transitive = false// 为本依赖关闭依赖传递特性
|
2019-07-21 23:46:41 +08:00
|
|
|
|
}
|
2019-09-04 23:47:22 +08:00
|
|
|
|
|
2021-03-07 22:53:16 +08:00
|
|
|
|
//add support for Java
|
2019-04-29 23:53:10 +08:00
|
|
|
|
//apply plugin: 'java'
|
|
|
|
|
|
allprojects {
|
|
|
|
|
|
apply plugin: "java"
|
|
|
|
|
|
apply plugin: "eclipse"
|
|
|
|
|
|
//apply plugin: "pmd"
|
|
|
|
|
|
//apply plugin: "findbugs"
|
|
|
|
|
|
//apply plugin: "jdepend"
|
2021-08-31 16:01:02 +08:00
|
|
|
|
|
2021-11-21 18:50:41 +08:00
|
|
|
|
configurations.all {
|
|
|
|
|
|
transitive = false// 为本依赖关闭依赖传递特性
|
|
|
|
|
|
}
|
|
|
|
|
|
//java Version
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
|
|
|
|
|
|
|
|
eclipse {
|
2022-09-13 10:18:04 +08:00
|
|
|
|
/*设置工程字符集*/
|
2021-11-21 18:50:41 +08:00
|
|
|
|
jdt {
|
2022-09-13 10:18:04 +08:00
|
|
|
|
File prefs = file('.settings/org.eclipse.core.resources.prefs')
|
|
|
|
|
|
if (prefs.exists()) {
|
|
|
|
|
|
prefs.write('eclipse.preferences.version=1\n')
|
|
|
|
|
|
prefs.append('encoding/<project>=UTF-8') //use UTF-8
|
|
|
|
|
|
}
|
2022-04-27 11:43:11 +08:00
|
|
|
|
}
|
2021-11-21 18:50:41 +08:00
|
|
|
|
}
|
2022-09-13 10:18:04 +08:00
|
|
|
|
|
2019-04-29 23:53:10 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2019-07-21 23:46:41 +08:00
|
|
|
|
buildscript {
|
|
|
|
|
|
repositories {
|
|
|
|
|
|
mavenCentral()
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2019-04-29 23:53:10 +08:00
|
|
|
|
|
|
|
|
|
|
// In this section you declare where to find the dependencies of your project
|
|
|
|
|
|
repositories {
|
|
|
|
|
|
// Use 'jcenter' for resolving your dependencies.
|
|
|
|
|
|
// You can declare any Maven/Ivy/file repository here.
|
|
|
|
|
|
mavenCentral()
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2019-05-25 23:39:07 +08:00
|
|
|
|
|
2021-11-21 18:50:41 +08:00
|
|
|
|
// In this section you declare the dependencies for your production and test code
|
|
|
|
|
|
dependencies {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2020-11-18 23:48:22 +08:00
|
|
|
|
|
|
|
|
|
|
|
2021-11-21 18:50:41 +08:00
|
|
|
|
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 {
|
2019-12-12 22:21:56 +08:00
|
|
|
|
mavenLocal()
|
2021-04-22 08:59:01 +08:00
|
|
|
|
maven { url "https://maven.aliyun.com/repository/central/"}
|
|
|
|
|
|
maven { url "https://maven.aliyun.com/repository/public/"}
|
|
|
|
|
|
maven { url "https://maven.aliyun.com/repository/spring/"}
|
2021-01-12 08:01:29 +08:00
|
|
|
|
maven { url "https://repo.spring.io/plugins-release/" }
|
|
|
|
|
|
maven { url "https://repo.spring.io/milestone" }
|
2021-02-01 23:24:01 +08:00
|
|
|
|
maven { url "https://repo1.maven.org/maven2/" }
|
2021-07-31 20:48:48 +08:00
|
|
|
|
maven { url "https://build.shibboleth.net/nexus/content/repositories/releases/" }
|
|
|
|
|
|
maven { url "https://mvnrepository.com/repos/central/" }
|
2021-04-17 09:44:10 +08:00
|
|
|
|
maven { url "https://jcenter.bintray.com" }
|
|
|
|
|
|
maven { url "https://mvn.gt.igexin.com/nexus/content/repositories/releases"}
|
2019-11-20 23:13:22 +08:00
|
|
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
|
|
|
|
|
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
|
|
|
|
|
|
maven { url "https://maven.repository.redhat.com/ga/" }
|
2021-07-31 20:48:48 +08:00
|
|
|
|
maven { url "https://repository.apache.org/content/repositories/releases/" }
|
|
|
|
|
|
mavenCentral()
|
2019-04-29 23:53:10 +08:00
|
|
|
|
}
|
2021-11-21 18:50:41 +08:00
|
|
|
|
|
|
|
|
|
|
//all dependencies
|
|
|
|
|
|
dependencies {
|
|
|
|
|
|
|
|
|
|
|
|
//for Test and Compile
|
2021-07-31 20:48:48 +08:00
|
|
|
|
testImplementation group: 'junit', name: 'junit', version: "${junitVersion}"
|
|
|
|
|
|
compileOnly group: 'junit', name: 'junit', version: "${junitVersion}"
|
2021-04-22 08:59:01 +08:00
|
|
|
|
testImplementation group: 'org.mockito', name: 'mockito-all', version: "${mockitoallVersion}"
|
|
|
|
|
|
testImplementation group: 'xmlunit', name: 'xmlunit', version: "${xmlunitVersion}"
|
2021-04-17 10:01:19 +08:00
|
|
|
|
|
2019-12-23 11:04:12 +08:00
|
|
|
|
//apache
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'commons-beanutils', name: 'commons-beanutils', version: "${commonsbeanutilsVersion}"
|
|
|
|
|
|
implementation group: 'commons-codec', name: 'commons-codec', version: "${commonscodecVersion}"
|
|
|
|
|
|
implementation group: 'commons-collections', name: 'commons-collections', version: "${commonscollectionsVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.commons', name: 'commons-collections4', version: "${commonscollections4Version}"
|
|
|
|
|
|
//implementation group: 'org.apache.commons', name: 'commons-csv', version: "${commonscsvVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.commons', name: 'commons-text', version: "${commonstextVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.commons', name: 'commons-dbcp2', version: "${commonsdbcp2Version}"
|
|
|
|
|
|
implementation group: 'commons-dbutils', name: 'commons-dbutils', version: "${commonsdbutilsVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.commons', name: 'commons-digester3', version: "${commonsdigester3Version}"
|
|
|
|
|
|
implementation group: 'commons-digester', name: 'commons-digester', version: "${commonsdigesterVersion}"
|
|
|
|
|
|
implementation group: 'commons-io', name: 'commons-io', version: "${commonsioVersion}"
|
|
|
|
|
|
implementation group: 'commons-lang', name: 'commons-lang', version: "${commonslangVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.commons', name: 'commons-lang3', version: "${commonslang3Version}"
|
|
|
|
|
|
implementation group: 'commons-logging', name: 'commons-logging', version: "${commonsloggingVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.commons', name: 'commons-pool2', version: "${commonspool2Version}"
|
|
|
|
|
|
implementation group: 'commons-httpclient', name: 'commons-httpclient', version: "${commonshttpclientVersion}"
|
|
|
|
|
|
implementation group: 'commons-fileupload', name: 'commons-fileupload', version: "${commonsfileuploadVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.commons', name: 'commons-email', version: "${commonsemailVersion}"
|
|
|
|
|
|
implementation group: 'commons-validator', name: 'commons-validator', version: "${commonsvalidatorVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.httpcomponents', name: 'httpasyncclient', version: "${httpasyncclientVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: "${httpcomponentsVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.httpcomponents', name: 'fluent-hc', version: "${httpcomponentsVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.httpcomponents', name: 'httpclient-cache', version: "${httpcomponentsVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.httpcomponents', name: 'httpmime', version: "${httpcomponentsVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.httpcomponents', name: 'httpcore', version: "${httpcoreVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.httpcomponents', name: 'httpcore-nio', version: "${httpcoreVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.velocity', name: 'velocity', version: "${velocityVersion}"
|
|
|
|
|
|
implementation group: 'velocity', name: 'velocity-dep', version: "${velocitydepVersion}"
|
|
|
|
|
|
implementation group: 'org.freemarker', name: 'freemarker', version: "${freemarkerVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.xmlbeans', name: 'xmlbeans', version: "${xmlbeansVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.commons', name: 'commons-compress', version: "${commonscompressVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.poi', name: 'poi', version: "${poiVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.poi', name: 'poi-excelant', version: "${poiVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.poi', name: 'poi-ooxml', version: "${poiVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.poi', name: 'poi-ooxml-full', version: "${poiVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.poi', name: 'poi-scratchpad', version: "${poiVersion}"
|
|
|
|
|
|
//implementation group: 'org.apache.commons', name: 'not-yet-commons-ssl', version: "${notyetcommonssslVersion}"
|
2021-04-22 08:59:01 +08:00
|
|
|
|
//tomcat embed Core Tomcat implementation
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-core', version: "${tomcatVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-el', version: "${tomcatVersion}"
|
|
|
|
|
|
implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-websocket', version: "${tomcatVersion}"
|
2021-07-31 20:48:48 +08:00
|
|
|
|
//JULI logging implementation for embedded Tomcat
|
2022-05-28 11:41:46 +08:00
|
|
|
|
//implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-logging-juli', version: "${tomcatembedloggingjuliVersion}"
|
2021-07-31 20:48:48 +08:00
|
|
|
|
//apache logs
|
2022-02-23 14:54:14 +08:00
|
|
|
|
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}"
|
2021-07-31 20:48:48 +08:00
|
|
|
|
//logs
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'org.slf4j', name: 'slf4j-api', version: "${slf4jVersion}"
|
|
|
|
|
|
implementation group: 'org.jboss.logging', name: 'jboss-logging', version: "${jbossloggingVersion}"
|
2021-07-31 20:48:48 +08:00
|
|
|
|
//spring
|
2022-02-23 14:54:14 +08:00
|
|
|
|
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}"
|
|
|
|
|
|
implementation group: 'org.springframework', name: 'spring-core', version: "${springVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework', name: 'spring-context', version: "${springVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework', name: 'spring-context-indexer', version: "${springVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework', name: 'spring-context-support', version: "${springVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework', name: 'spring-expression', version: "${springVersion}"
|
|
|
|
|
|
//implementation group: 'org.springframework', name: 'spring-instrument', version: "${springVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework', name: 'spring-jcl', version: "${springVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework', name: 'spring-jdbc', version: "${springVersion}"
|
|
|
|
|
|
//implementation group: 'org.springframework', name: 'spring-jms', version: "${springVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework', name: 'spring-messaging', version: "${springVersion}"
|
|
|
|
|
|
//implementation group: 'org.springframework', name: 'spring-orm', version: "${springVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework', name: 'spring-oxm', version: "${springVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework', name: 'spring-tx', version: "${springVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework', name: 'spring-web', version: "${springVersion}"
|
|
|
|
|
|
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}"
|
2021-07-31 20:48:48 +08:00
|
|
|
|
// https://mvnrepository.com/artifact/org.springframework.retry/spring-retry
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'org.springframework.retry', name: 'spring-retry', version: "${springretryVersion}"
|
|
|
|
|
|
testImplementation group: 'org.springframework', name: 'spring-test', version: "${springVersion}"
|
2021-07-31 20:48:48 +08:00
|
|
|
|
|
2019-12-23 11:04:12 +08:00
|
|
|
|
//spring-security
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'org.springframework.security', name: 'spring-security-core', version: "${springSecurityVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.security', name: 'spring-security-web', version: "${springSecurityVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.security', name: 'spring-security-crypto', version: "${springSecurityVersion}"
|
2019-12-23 11:04:12 +08:00
|
|
|
|
//srpingboot
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot', version: "${springBootVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter', version: "${springBootVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-actuator', version: "${springBootVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: "${springBootVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-actuator-autoconfigure', version: "${springBootVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-autoconfigure', version: "${springBootVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-freemarker', version: "${springBootVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-json', version: "${springBootVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-log4j2', version: "${springBootVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-logging', version: "${springBootVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: "${springBootVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-tomcat', version: "${springBootVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-webflux', version: "${springBootVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-reactor-netty', version: "${springBootVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis', version: "${springBootVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis-reactive', version: "${springBootVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-validation', version: "${springBootVersion}"
|
2021-08-31 16:01:02 +08:00
|
|
|
|
|
2021-04-17 09:44:10 +08:00
|
|
|
|
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: "${springBootVersion}"
|
2021-08-17 14:11:02 +08:00
|
|
|
|
//spring-boot-admin
|
2021-08-31 16:01:02 +08:00
|
|
|
|
implementation group: 'de.codecentric', name: 'spring-boot-admin-client', version: "${springbootadminVersion}"
|
2021-08-17 14:11:02 +08:00
|
|
|
|
implementation group: 'de.codecentric', name: 'spring-boot-admin-starter-client', version: "${springbootadminVersion}"
|
2020-10-11 23:10:44 +08:00
|
|
|
|
//spring-data
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'org.springframework.data', name: 'spring-data-commons', version: "${springDataVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.data', name: 'spring-data-keyvalue', version: "${springDataVersion}"
|
2022-07-12 08:53:28 +08:00
|
|
|
|
//implementation group: 'org.springframework.data', name: 'spring-data-redis', version: "${springDataVersion}"
|
2021-02-01 23:24:01 +08:00
|
|
|
|
|
2022-02-23 14:54:14 +08:00
|
|
|
|
//implementation group: 'org.springframework.plugin', name: 'spring-plugin-core', version: "${springplugincoreVersion}"
|
|
|
|
|
|
//implementation group: 'org.springframework.plugin', name: 'spring-plugin-metadata', version: "${springpluginmetadataVersion}"
|
2021-08-31 16:01:02 +08:00
|
|
|
|
//spring cloud
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'org.springframework.cloud', name: 'spring-cloud-commons', version: "${springcloudVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.cloud', name: 'spring-cloud-context', version: "${springcloudVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter', version: "${springcloudVersion}"
|
|
|
|
|
|
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-bootstrap', version: "${springcloudVersion}"
|
2021-08-31 16:01:02 +08:00
|
|
|
|
//spring-cloud-alibaba
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'com.alibaba.spring', name: 'spring-context-support', version: "${springcloudalibabaspringVersion}"
|
|
|
|
|
|
implementation group: 'com.alibaba.cloud', name: 'spring-cloud-alibaba-commons', version: "${springcloudalibabaVersion}"
|
2021-08-31 16:01:02 +08:00
|
|
|
|
//alibaba nacos
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'com.alibaba.nacos', name: 'nacos-client', version: "${alibabanacosclientVersion}"
|
|
|
|
|
|
implementation group: 'com.alibaba.cloud', name: 'spring-cloud-starter-alibaba-nacos-discovery', version: "${springcloudalibabaVersion}"
|
|
|
|
|
|
implementation group: 'com.alibaba.cloud', name: 'spring-cloud-starter-alibaba-nacos-config', version: "${springcloudalibabaVersion}"
|
2021-08-31 16:01:02 +08:00
|
|
|
|
|
2022-09-04 07:27:48 +08:00
|
|
|
|
//Message Queue Removed
|
|
|
|
|
|
|
2022-02-23 14:54:14 +08:00
|
|
|
|
//saml see maxkey-lib
|
|
|
|
|
|
//implementation group: 'org.opensaml', name: 'opensaml', version: "${opensamlVersion}"
|
|
|
|
|
|
//implementation group: 'org.opensaml', name: 'openws', version: "${openwsVersion}"
|
|
|
|
|
|
//implementation group: 'org.opensaml', name: 'xmltooling', version: "${xmltoolingVersion}"
|
|
|
|
|
|
implementation group: 'net.shibboleth.utilities', name: 'java-support', version: "${javasupportVersion}"
|
2021-04-22 08:59:01 +08:00
|
|
|
|
//jose-jwt
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'com.nimbusds', name: 'nimbus-jose-jwt', version: "${nimbusjosejwtVersion}"
|
|
|
|
|
|
implementation group: 'net.jcip', name: 'jcip-annotations', version: "${jcipannotationsVersion}"
|
|
|
|
|
|
implementation group: 'net.minidev', name: 'json-smart', version: "${minidevjsonsmartVersion}"
|
|
|
|
|
|
implementation group: 'net.minidev', name: 'asm', version: "${minidevasmVersion}"
|
2020-03-24 20:08:07 +08:00
|
|
|
|
//oauth third party JustAuth
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'com.xkcoding.http', name: 'simple-http', version: "${simplehttpVersion}"
|
|
|
|
|
|
implementation group: 'me.zhyd.oauth', name: 'JustAuth', version: "${JustAuthVersion}"
|
2020-03-24 20:08:07 +08:00
|
|
|
|
//common
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'org.javassist', name: 'javassist', version: "${javassistVersion}"
|
|
|
|
|
|
implementation group: 'org.owasp.esapi', name: 'esapi', version: "${esapiVersion}"
|
|
|
|
|
|
implementation group: 'com.sun.mail', name: 'javax.mail', version: "${javaxmailVersion}"
|
2020-05-30 12:49:42 +08:00
|
|
|
|
// https://mvnrepository.com/artifact/org.eclipse.persistence/javax.persistence
|
|
|
|
|
|
// for mybatis-jpa-extra
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'org.eclipse.persistence', name: 'javax.persistence', version: "${javaxpersistenceVersion}"
|
|
|
|
|
|
implementation group: 'jakarta.persistence', name: 'jakarta.persistence-api', version: '3.0.0'
|
|
|
|
|
|
implementation group: 'jakarta.annotation', name: 'jakarta.annotation-api', version: "${jakartaannotationVersion}"
|
|
|
|
|
|
implementation group: 'jakarta.validation', name: 'jakarta.validation-api', version: "${jakartavalidationapiVersion}"
|
|
|
|
|
|
implementation group: 'javax.activation', name: 'activation', version: "${activationVersion}"
|
|
|
|
|
|
implementation group: 'javax.annotation', name: 'javax.annotation-api', version: "${javaxannotationapiVersion}"
|
|
|
|
|
|
implementation group: 'javax.transaction', name: 'jta', version: "${jtaVersion}"
|
|
|
|
|
|
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}"
|
2020-03-23 15:11:17 +08:00
|
|
|
|
//crypto
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: "${bouncycastleVersion}"
|
|
|
|
|
|
implementation group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: "${bouncycastleVersion}"
|
|
|
|
|
|
implementation group: 'org.bouncycastle', name: 'bcprov-ext-jdk15on', version: "${bouncycastleVersion}"
|
2021-04-22 08:59:01 +08:00
|
|
|
|
//google
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'com.google.crypto.tink', name: 'tink', version: "${tinkVersion}"
|
2020-03-23 15:11:17 +08:00
|
|
|
|
//kaptcha
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'com.jhlabs', name: 'filters', version: "${jhlabsfiltersVersion}"
|
|
|
|
|
|
implementation group: 'com.github.penggle', name: 'kaptcha', version: "${kaptchaVersion}"
|
2019-12-23 11:04:12 +08:00
|
|
|
|
//json
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'com.google.code.gson', name: 'gson', version: "${gsonVersion}"
|
2020-03-24 20:08:07 +08:00
|
|
|
|
//reactive
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'org.reactivestreams', name: 'reactive-streams', version: "${reactivestreamsVersion}"
|
|
|
|
|
|
implementation group: 'io.projectreactor', name: 'reactor-core', version: "${reactorcoreVersion}"
|
|
|
|
|
|
implementation group: 'eu.tekul', name: 'szxcvbn_2.9.2', version: "${szxcvbnVersion}"
|
2020-03-23 15:11:17 +08:00
|
|
|
|
//quartz
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'org.quartz-scheduler', name: 'quartz', version: "${quartzVersion}"
|
2021-07-31 20:48:48 +08:00
|
|
|
|
//database
|
2022-02-23 14:54:14 +08:00
|
|
|
|
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.liquibase', name: 'liquibase-core', version: '4.3.5'
|
2021-10-11 12:58:43 +08:00
|
|
|
|
implementation group: 'com.github.ben-manes.caffeine', name: 'caffeine', version: "${caffeineVersion}"
|
2021-07-31 20:48:48 +08:00
|
|
|
|
//mybatis
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'org.mybatis', name: 'mybatis', version: "${mybatisVersion}"
|
|
|
|
|
|
implementation group: 'org.mybatis', name: 'mybatis-spring', version: "${mybatisspringVersion}"
|
2021-07-31 20:48:48 +08:00
|
|
|
|
//hibernate
|
2022-02-23 14:54:14 +08:00
|
|
|
|
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}"
|
2020-03-24 20:08:07 +08:00
|
|
|
|
//usefull
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'joda-time', name: 'joda-time', version: "${jodatimeVersion}"
|
|
|
|
|
|
implementation group: 'org.yaml', name: 'snakeyaml', version: "${snakeyamlVersion}"
|
|
|
|
|
|
implementation group: 'net.sourceforge.nekohtml', name: 'nekohtml', version: "${nekohtmlVersion}"
|
|
|
|
|
|
implementation group: 'org.jdom', name: 'jdom', version: "${jdomVersion}"
|
|
|
|
|
|
implementation group: 'com.google.zxing', name: 'core', version: "${zxingcoreVersion}"
|
|
|
|
|
|
implementation group: 'com.google.guava', name: 'guava', version: "${guavaVersion}"
|
|
|
|
|
|
implementation group: 'ognl', name: 'ognl', version: "${ognlVersion}"
|
|
|
|
|
|
implementation group: 'cglib', name: 'cglib', version: "${cglibVersion}"
|
|
|
|
|
|
implementation group: 'org.ow2.asm', name: 'asm', version: "${asmVersion}"
|
|
|
|
|
|
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: 'io.micrometer', name: 'micrometer-registry-prometheus', version: "${micrometercoreVersion}"
|
|
|
|
|
|
implementation group: 'org.latencyutils', name: 'LatencyUtils', version: "${LatencyUtilsVersion}"
|
|
|
|
|
|
implementation group: 'org.codehaus.woodstox', name: 'stax2-api', version: "${stax2apiVersion}"
|
2022-03-01 19:24:05 +08:00
|
|
|
|
implementation group: 'org.reflections', name: 'reflections', version: "${reflectionsVersion}"
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'io.prometheus', name: 'simpleclient', version: "${prometheusVersion}"
|
|
|
|
|
|
implementation group: 'io.prometheus', name: 'simpleclient_common', version: "${prometheusVersion}"
|
|
|
|
|
|
implementation group: 'com.belerweb', name: 'pinyin4j', version: "${pinyin4jVersion}"
|
2022-03-01 19:24:05 +08:00
|
|
|
|
implementation group: 'org.jsoup', name: 'jsoup', version: "${jsoupVersion}"
|
2021-08-31 16:01:02 +08:00
|
|
|
|
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'io.netty', name: 'netty-all', version: "${nettyVersion}"
|
2021-07-31 20:48:48 +08:00
|
|
|
|
//阿里云
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'com.aliyun', name: 'aliyun-java-sdk-core', version: "${aliyunjavasdkcoreVersion}"
|
2021-07-31 20:48:48 +08:00
|
|
|
|
//腾讯云
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'com.tencentcloudapi', name: 'tencentcloud-sdk-java', version: "${tencentcloudsdkjavaVersion}"
|
2021-04-22 08:59:01 +08:00
|
|
|
|
//json
|
2022-02-23 14:54:14 +08:00
|
|
|
|
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: "${jacksonVersion}"
|
|
|
|
|
|
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: "${jacksonVersion}"
|
|
|
|
|
|
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: "${jacksonVersion}"
|
|
|
|
|
|
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jdk8', version: "${jacksonVersion}"
|
|
|
|
|
|
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: "${jacksonVersion}"
|
|
|
|
|
|
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.jackson.module', name: 'jackson-module-parameter-names', version: "${jacksonVersion}"
|
|
|
|
|
|
implementation group: 'com.fasterxml.jackson.module', name: 'jackson-module-jaxb-annotations', version: "${jacksonVersion}"
|
|
|
|
|
|
implementation group: 'com.fasterxml.jackson.module', name: 'jackson-module-jakarta-xmlbind-annotations', version: "${jacksonVersion}"
|
|
|
|
|
|
implementation group: 'com.fasterxml', name: 'classmate', version: "${classmateVersion}"
|
|
|
|
|
|
implementation group: 'com.fasterxml.woodstox', name: 'woodstox-core', version: "${woodstoxVersion}"
|
|
|
|
|
|
implementation group: 'com.alibaba', name: 'fastjson', version: "${fastjsonVersion}"
|
2021-07-31 20:48:48 +08:00
|
|
|
|
//docs
|
2022-02-23 14:54:14 +08:00
|
|
|
|
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}"
|
2021-12-14 12:38:06 +08:00
|
|
|
|
//springdoc
|
|
|
|
|
|
implementation group: 'io.github.classgraph', name: 'classgraph', version: '4.8.137'
|
|
|
|
|
|
implementation group: 'org.springdoc', name: 'springdoc-openapi-common', version: "${springdocVersion}"
|
|
|
|
|
|
implementation group: 'org.springdoc', name: 'springdoc-openapi-webmvc-core', version: "${springdocVersion}"
|
|
|
|
|
|
implementation group: 'org.springdoc', name: 'springdoc-openapi-ui', version: "${springdocVersion}"
|
|
|
|
|
|
implementation group: 'org.webjars', name: 'webjars-locator-core', version: '0.48'
|
|
|
|
|
|
implementation group: 'org.webjars', name: 'webjars-locator', version: '0.42'
|
|
|
|
|
|
implementation group: 'org.webjars', name: 'swagger-ui', version: '4.1.3'
|
2021-07-31 20:48:48 +08:00
|
|
|
|
//knife4j
|
2021-12-14 12:38:06 +08:00
|
|
|
|
implementation group: 'com.github.xiaoymin', name: 'knife4j-springdoc-ui', version: "${knife4jVersion}"
|
2021-07-31 20:48:48 +08:00
|
|
|
|
|
|
|
|
|
|
//local jars
|
|
|
|
|
|
implementation fileTree(dir: "${rootDir}/maxkey-lib/", include: '*.jar')
|
2019-05-25 23:39:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2019-04-29 23:53:10 +08:00
|
|
|
|
jar {
|
|
|
|
|
|
|
2021-11-21 18:50:41 +08:00
|
|
|
|
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
|
|
|
|
|
|
)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
tasks.register("buildRelease",Copy) {
|
|
|
|
|
|
dependsOn assemble
|
|
|
|
|
|
//项目名 项目所在的group version 版本号
|
|
|
|
|
|
println "subproject " + project.name + ", group " + project.group +" , version " + project.version
|
|
|
|
|
|
|
|
|
|
|
|
//copy
|
|
|
|
|
|
into "$rootDir/build/maxkey-jars/"
|
|
|
|
|
|
from "$buildDir/libs/"
|
|
|
|
|
|
include '*.jar'
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
tasks.register("copyLibJars",Copy) {
|
|
|
|
|
|
if (libjarsmapper["${project.name}"] != null){
|
|
|
|
|
|
into "$rootDir/build/MaxKey-v${project.version}GA/"+libjarsmapper["${project.name}"]
|
|
|
|
|
|
from "$buildDir/libs/"
|
|
|
|
|
|
include '*.jar'
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
assemble.configure { finalizedBy buildRelease,copyLibJars }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//copy Dep Jars to /build/maxkey-depjars,only maxkey-common deps
|
|
|
|
|
|
project('maxkey-common') {
|
|
|
|
|
|
task createReleaseDir(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()){
|
|
|
|
|
|
print("create "+path+"\n")
|
|
|
|
|
|
dir.mkdirs();
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
task copyDepJars (type: Copy){
|
|
|
|
|
|
dependsOn assemble
|
|
|
|
|
|
println "copy Dep Jars to $rootDir/build/MaxKey-v${project.version}GA/lib"
|
|
|
|
|
|
//copy runtime
|
|
|
|
|
|
from configurations.runtimeClasspath
|
|
|
|
|
|
into "$rootDir/build/MaxKey-v${project.version}GA/lib";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
build.configure { finalizedBy copyDepJars }
|
|
|
|
|
|
}
|
2021-11-21 18:35:52 +08:00
|
|
|
|
|
2021-09-08 16:52:40 +08:00
|
|
|
|
tasks.register("buildRelease") {
|
2021-11-21 18:50:41 +08:00
|
|
|
|
dependsOn 'copyShellScript','copyWindowsShellScript'
|
|
|
|
|
|
|
|
|
|
|
|
//项目名 项目所在的group version 版本号
|
|
|
|
|
|
println "Root project " + project.name + ", group " + project.group +" , version " + project.version
|
|
|
|
|
|
//项目的绝对路径 to 项目的build文件绝对路径
|
|
|
|
|
|
println "Root project projectDir " + project.projectDir +" to " + project.buildDir
|
2021-02-23 12:42:49 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2021-11-21 18:50:41 +08:00
|
|
|
|
tasks.register("copyShellScript",Copy) {
|
|
|
|
|
|
println "project copyMaxKeyShellScript .";
|
|
|
|
|
|
|
|
|
|
|
|
from "$rootDir/shellscript/"
|
|
|
|
|
|
into "$rootDir/build/MaxKey-v${project.version}GA/shellscript/";
|
|
|
|
|
|
}
|
2021-02-23 12:42:49 +08:00
|
|
|
|
|
2021-11-21 18:50:41 +08:00
|
|
|
|
tasks.register("copyWindowsShellScript",Copy) {
|
|
|
|
|
|
println "project copyMaxKeyWindowsShellScript .";
|
|
|
|
|
|
from "$rootDir/shellscript/windows"
|
|
|
|
|
|
into "$rootDir/build/MaxKey-v${project.version}GA/";
|
2020-11-18 23:48:22 +08:00
|
|
|
|
}
|
2021-11-21 18:50:41 +08:00
|
|
|
|
|
|
|
|
|
|
build.configure { finalizedBy buildRelease }
|