mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-07 01:18:27 +08:00
构建方式优化
This commit is contained in:
parent
485ce6023a
commit
32b0f69c50
@ -33,30 +33,30 @@ task clearBuild(){
|
|||||||
delete "$rootDir/maxkey-webs/maxkey-web-openapi/build.gradle"
|
delete "$rootDir/maxkey-webs/maxkey-web-openapi/build.gradle"
|
||||||
}
|
}
|
||||||
|
|
||||||
task configStd(dependsOn:['clearBuild']) {
|
task configTradition(dependsOn:['clearBuild']) {
|
||||||
doLast {
|
doLast {
|
||||||
copy {
|
copy {
|
||||||
from "$rootDir/maxkey-webs/maxkey-web-openapi/config/build_standard.gradle"
|
from "$rootDir/maxkey-webs/maxkey-web-openapi/config/build_tradition.gradle"
|
||||||
into "$rootDir/maxkey-webs/maxkey-web-openapi/"
|
into "$rootDir/maxkey-webs/maxkey-web-openapi/"
|
||||||
rename { String fileName -> 'build.gradle' }
|
rename { String fileName -> 'build.gradle' }
|
||||||
}
|
}
|
||||||
copy {
|
copy {
|
||||||
from "$rootDir/maxkey-webs/maxkey-web-mgt/config/build_standard.gradle"
|
from "$rootDir/maxkey-webs/maxkey-web-mgt/config/build_tradition.gradle"
|
||||||
into "$rootDir/maxkey-webs/maxkey-web-mgt/"
|
into "$rootDir/maxkey-webs/maxkey-web-mgt/"
|
||||||
rename { String fileName -> 'build.gradle' }
|
rename { String fileName -> 'build.gradle' }
|
||||||
}
|
}
|
||||||
copy {
|
copy {
|
||||||
from "$rootDir/maxkey-webs/maxkey-web-maxkey/config/build_standard.gradle"
|
from "$rootDir/maxkey-webs/maxkey-web-maxkey/config/build_tradition.gradle"
|
||||||
into "$rootDir/maxkey-webs/maxkey-web-maxkey/"
|
into "$rootDir/maxkey-webs/maxkey-web-maxkey/"
|
||||||
rename { String fileName -> 'build.gradle' }
|
rename { String fileName -> 'build.gradle' }
|
||||||
}
|
}
|
||||||
copy {
|
copy {
|
||||||
from "$rootDir/config/build_standard.gradle"
|
from "$rootDir/config/build_tradition.gradle"
|
||||||
into "$rootDir/"
|
into "$rootDir/"
|
||||||
rename { String fileName -> 'build.gradle' }
|
rename { String fileName -> 'build.gradle' }
|
||||||
}
|
}
|
||||||
|
|
||||||
println 'Standard Build MaxKey .'
|
println 'Tradition Build MaxKey .'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -91,32 +91,32 @@ task configDocker(dependsOn:['clearBuild']) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
task configJar(dependsOn:['clearBuild']) {
|
task configStandard(dependsOn:['clearBuild']) {
|
||||||
doLast {
|
doLast {
|
||||||
copy {
|
copy {
|
||||||
from "$rootDir/maxkey-webs/maxkey-web-openapi/config/build_jar.gradle"
|
from "$rootDir/maxkey-webs/maxkey-web-openapi/config/build_standard.gradle"
|
||||||
into "$rootDir/maxkey-webs/maxkey-web-openapi/"
|
into "$rootDir/maxkey-webs/maxkey-web-openapi/"
|
||||||
rename { String fileName -> 'build.gradle' }
|
rename { String fileName -> 'build.gradle' }
|
||||||
}
|
}
|
||||||
copy {
|
copy {
|
||||||
from "$rootDir/maxkey-webs/maxkey-web-mgt/config/build_jar.gradle"
|
from "$rootDir/maxkey-webs/maxkey-web-mgt/config/build_standard.gradle"
|
||||||
into "$rootDir/maxkey-webs/maxkey-web-mgt/"
|
into "$rootDir/maxkey-webs/maxkey-web-mgt/"
|
||||||
rename { String fileName -> 'build.gradle' }
|
rename { String fileName -> 'build.gradle' }
|
||||||
}
|
}
|
||||||
|
|
||||||
copy {
|
copy {
|
||||||
from "$rootDir/maxkey-webs/maxkey-web-maxkey/config/build_jar.gradle"
|
from "$rootDir/maxkey-webs/maxkey-web-maxkey/config/build_standard.gradle"
|
||||||
into "$rootDir/maxkey-webs/maxkey-web-maxkey/"
|
into "$rootDir/maxkey-webs/maxkey-web-maxkey/"
|
||||||
rename { String fileName -> 'build.gradle' }
|
rename { String fileName -> 'build.gradle' }
|
||||||
}
|
}
|
||||||
|
|
||||||
copy {
|
copy {
|
||||||
from "$rootDir/config/build_jar.gradle"
|
from "$rootDir/config/build_standard.gradle"
|
||||||
into "$rootDir/"
|
into "$rootDir/"
|
||||||
rename { String fileName -> 'build.gradle' }
|
rename { String fileName -> 'build.gradle' }
|
||||||
}
|
}
|
||||||
|
|
||||||
println 'Java Jar Build MaxKey .'
|
println 'Standard Build MaxKey .'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -25,42 +25,6 @@ ext {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def libjarsmapper=[
|
|
||||||
'maxkey-authentication-captcha' :'lib',
|
|
||||||
'maxkey-authentication-core' :'lib',
|
|
||||||
'maxkey-authentication-ip2region' :'lib',
|
|
||||||
'maxkey-authentication-otp' :'lib',
|
|
||||||
'maxkey-authentication-provider' :'lib',
|
|
||||||
'maxkey-authentication-sms' :'lib',
|
|
||||||
'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-web-mgt' :'maxkey_mgt',
|
|
||||||
'maxkey-synchronizer' :'maxkey_mgt',
|
|
||||||
'maxkey-synchronizer-activedirectory' :'maxkey_mgt',
|
|
||||||
'maxkey-synchronizer-common' :'maxkey_mgt',
|
|
||||||
'maxkey-synchronizer-jdbc' :'maxkey_mgt',
|
|
||||||
'maxkey-synchronizer-ldap' :'maxkey_mgt',
|
|
||||||
'maxkey-synchronizer-dingtalk' :'maxkey_mgt',
|
|
||||||
'maxkey-synchronizer-workweixin' :'maxkey_mgt',
|
|
||||||
'maxkey-synchronizer-reorgdept' :'maxkey_mgt',
|
|
||||||
'maxkey-web-openapi' :'maxkey_openapi',
|
|
||||||
'maxkey-web-api-rest' :'maxkey_openapi',
|
|
||||||
'maxkey-web-api-scim' :'maxkey_openapi',
|
|
||||||
]
|
|
||||||
|
|
||||||
configurations.all {
|
configurations.all {
|
||||||
transitive = false// 为本依赖关闭依赖传递特性
|
transitive = false// 为本依赖关闭依赖传递特性
|
||||||
}
|
}
|
||||||
@ -105,15 +69,23 @@ repositories {
|
|||||||
// Use 'jcenter' for resolving your dependencies.
|
// Use 'jcenter' for resolving your dependencies.
|
||||||
// You can declare any Maven/Ivy/file repository here.
|
// You can declare any Maven/Ivy/file repository here.
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
jcenter()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// In this section you declare the dependencies for your production and test code
|
|
||||||
dependencies {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
subprojects {
|
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 {
|
processResources {
|
||||||
from ('src/main/resources') {
|
from ('src/main/resources') {
|
||||||
include 'src/main/resources/*.*'
|
include 'src/main/resources/*.*'
|
||||||
@ -126,6 +98,7 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
maven { url "https://maven.aliyun.com/repository/central"}
|
maven { url "https://maven.aliyun.com/repository/central"}
|
||||||
@ -459,80 +432,26 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("buildRelease",Copy) {
|
task buildRelease() {
|
||||||
dependsOn assemble
|
dependsOn assemble
|
||||||
//项目名 项目所在的group version 版本号
|
//项目名
|
||||||
println "subproject " + project.name + ", group " + project.group +" , version " + project.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) {
|
assemble.configure { finalizedBy buildRelease }
|
||||||
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 }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("buildRelease") {
|
tasks.register("buildRelease") {
|
||||||
dependsOn 'copyShellScript','copyWindowsShellScript'
|
|
||||||
|
|
||||||
//项目名 项目所在的group version 版本号
|
//项目名 项目所在的group version 版本号
|
||||||
println "Root project " + project.name + ", group " + project.group +" , version " + project.version
|
println "Root project " + project.name + ", group " + project.group +" , version " + project.version
|
||||||
//项目的绝对路径 to 项目的build文件绝对路径
|
//项目的绝对路径 to 项目的build文件绝对路径
|
||||||
println "Root project projectDir " + project.projectDir +" to " + project.buildDir
|
println "Root project projectDir " + project.projectDir +" to " + project.buildDir
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("copyShellScript",Copy) {
|
build.configure { finalizedBy buildRelease }
|
||||||
println "project copyMaxKeyShellScript .";
|
|
||||||
|
// In this section you declare the dependencies for your production and test code
|
||||||
|
dependencies {
|
||||||
|
|
||||||
from "$rootDir/shellscript/"
|
|
||||||
into "$rootDir/build/MaxKey-v${project.version}GA/shellscript/";
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.register("copyWindowsShellScript",Copy) {
|
|
||||||
println "project copyMaxKeyWindowsShellScript .";
|
|
||||||
from "$rootDir/shellscript/windows"
|
|
||||||
into "$rootDir/build/MaxKey-v${project.version}GA/";
|
|
||||||
}
|
|
||||||
|
|
||||||
build.configure {
|
|
||||||
finalizedBy buildRelease
|
|
||||||
|
|
||||||
println ""
|
|
||||||
println "Gradle version is ${GradleVersion.current().version}"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2023] [MaxKey of copyright http://www.maxkey.top]
|
* Copyright [2024] [MaxKey of copyright http://www.maxkey.top]
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -25,6 +25,45 @@ ext {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def libjarsmapper=[
|
||||||
|
'maxkey-authentication-core' :'lib',
|
||||||
|
'maxkey-authentication-provider' :'lib',
|
||||||
|
'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-starter-captcha' :'lib',
|
||||||
|
'maxkey-starter-ip2location' :'lib',
|
||||||
|
'maxkey-starter-otp' :'lib',
|
||||||
|
'maxkey-starter-sms' :'lib',
|
||||||
|
'maxkey-starter-web' :'lib',
|
||||||
|
|
||||||
|
'maxkey-authentication-social' :'maxkey',
|
||||||
|
'maxkey-web-maxkey' :'maxkey',
|
||||||
|
|
||||||
|
'maxkey-web-mgt' :'maxkey_mgt',
|
||||||
|
'maxkey-synchronizer' :'maxkey_mgt',
|
||||||
|
'maxkey-synchronizer-activedirectory' :'maxkey_mgt',
|
||||||
|
'maxkey-synchronizer-common' :'maxkey_mgt',
|
||||||
|
'maxkey-synchronizer-jdbc' :'maxkey_mgt',
|
||||||
|
'maxkey-synchronizer-ldap' :'maxkey_mgt',
|
||||||
|
'maxkey-synchronizer-dingtalk' :'maxkey_mgt',
|
||||||
|
'maxkey-synchronizer-workweixin' :'maxkey_mgt',
|
||||||
|
'maxkey-synchronizer-reorgdept' :'maxkey_mgt',
|
||||||
|
|
||||||
|
'maxkey-web-openapi' :'maxkey_openapi',
|
||||||
|
'maxkey-web-api-rest' :'maxkey_openapi',
|
||||||
|
'maxkey-web-api-scim' :'maxkey_openapi',
|
||||||
|
]
|
||||||
|
|
||||||
configurations.all {
|
configurations.all {
|
||||||
transitive = false// 为本依赖关闭依赖传递特性
|
transitive = false// 为本依赖关闭依赖传递特性
|
||||||
}
|
}
|
||||||
@ -69,23 +108,15 @@ repositories {
|
|||||||
// Use 'jcenter' for resolving your dependencies.
|
// Use 'jcenter' for resolving your dependencies.
|
||||||
// You can declare any Maven/Ivy/file repository here.
|
// You can declare any Maven/Ivy/file repository here.
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
jcenter()
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// In this section you declare the dependencies for your production and test code
|
||||||
|
dependencies {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
subprojects {
|
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 {
|
processResources {
|
||||||
from ('src/main/resources') {
|
from ('src/main/resources') {
|
||||||
include 'src/main/resources/*.*'
|
include 'src/main/resources/*.*'
|
||||||
@ -98,7 +129,6 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
maven { url "https://maven.aliyun.com/repository/central"}
|
maven { url "https://maven.aliyun.com/repository/central"}
|
||||||
@ -432,26 +462,80 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task buildRelease() {
|
tasks.register("buildRelease",Copy) {
|
||||||
dependsOn assemble
|
dependsOn assemble
|
||||||
//项目名
|
//项目名 项目所在的group version 版本号
|
||||||
println "subproject " + project.name + ", group " + project.group +" , version " + project.version
|
println "subproject " + project.name + ", group " + project.group +" , version " + project.version
|
||||||
|
|
||||||
|
//copy
|
||||||
|
into "$rootDir/build/maxkey-jars/"
|
||||||
|
from "$buildDir/libs/"
|
||||||
|
include '*.jar'
|
||||||
}
|
}
|
||||||
|
|
||||||
assemble.configure { finalizedBy buildRelease }
|
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 }
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("buildRelease") {
|
tasks.register("buildRelease") {
|
||||||
|
dependsOn 'copyShellScript','copyWindowsShellScript'
|
||||||
|
|
||||||
//项目名 项目所在的group version 版本号
|
//项目名 项目所在的group version 版本号
|
||||||
println "Root project " + project.name + ", group " + project.group +" , version " + project.version
|
println "Root project " + project.name + ", group " + project.group +" , version " + project.version
|
||||||
//项目的绝对路径 to 项目的build文件绝对路径
|
//项目的绝对路径 to 项目的build文件绝对路径
|
||||||
println "Root project projectDir " + project.projectDir +" to " + project.buildDir
|
println "Root project projectDir " + project.projectDir +" to " + project.buildDir
|
||||||
}
|
}
|
||||||
|
|
||||||
build.configure { finalizedBy buildRelease }
|
tasks.register("copyShellScript",Copy) {
|
||||||
|
println "project copyMaxKeyShellScript .";
|
||||||
// In this section you declare the dependencies for your production and test code
|
|
||||||
dependencies {
|
|
||||||
|
|
||||||
|
from "$rootDir/shellscript/"
|
||||||
|
into "$rootDir/build/MaxKey-v${project.version}GA/shellscript/";
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("copyWindowsShellScript",Copy) {
|
||||||
|
println "project copyMaxKeyWindowsShellScript .";
|
||||||
|
from "$rootDir/shellscript/windows"
|
||||||
|
into "$rootDir/build/MaxKey-v${project.version}GA/";
|
||||||
|
}
|
||||||
|
|
||||||
|
build.configure {
|
||||||
|
finalizedBy buildRelease
|
||||||
|
|
||||||
|
println ""
|
||||||
|
println "Gradle version is ${GradleVersion.current().version}"
|
||||||
}
|
}
|
||||||
@ -53,13 +53,15 @@ dependencies {
|
|||||||
implementation project(":maxkey-core")
|
implementation project(":maxkey-core")
|
||||||
implementation project(":maxkey-persistence")
|
implementation project(":maxkey-persistence")
|
||||||
|
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-captcha")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-ip2location")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-otp")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-sms")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-web")
|
||||||
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-social")
|
implementation project(":maxkey-authentications:maxkey-authentication-social")
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-captcha")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-ip2location")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-otp")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-sms")
|
|
||||||
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-authorize")
|
implementation project(":maxkey-protocols:maxkey-protocol-authorize")
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-cas")
|
implementation project(":maxkey-protocols:maxkey-protocol-cas")
|
||||||
|
|||||||
@ -1,58 +0,0 @@
|
|||||||
buildscript {
|
|
||||||
repositories {
|
|
||||||
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
|
|
||||||
}
|
|
||||||
dependencies {
|
|
||||||
//springboot jar
|
|
||||||
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id "io.spring.dependency-management" version "1.0.11.RELEASE"
|
|
||||||
id 'org.springframework.boot' version "${springBootVersion}"
|
|
||||||
}
|
|
||||||
|
|
||||||
apply plugin: 'io.spring.dependency-management'
|
|
||||||
|
|
||||||
description = "maxkey-web-maxkey"
|
|
||||||
|
|
||||||
bootJar {
|
|
||||||
dependsOn jar
|
|
||||||
archiveBaseName = 'maxkey-boot'
|
|
||||||
version = "${project.version}-ga"
|
|
||||||
mainClass = 'org.dromara.maxkey.MaxKeyApplication'
|
|
||||||
manifest {
|
|
||||||
attributes(
|
|
||||||
"Implementation-Title": project.name,
|
|
||||||
"Implementation-Vendor": project.vendor,
|
|
||||||
"Created-By": project.author,
|
|
||||||
"Implementation-Date": java.time.ZonedDateTime.now(),
|
|
||||||
"Implementation-Version": project.version
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":maxkey-common")
|
|
||||||
implementation project(":maxkey-core")
|
|
||||||
implementation project(":maxkey-persistence")
|
|
||||||
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-social")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-captcha")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-ip2location")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-otp")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-sms")
|
|
||||||
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-authorize")
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-cas")
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-extendapi")
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-formbased")
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-tokenbased")
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-jwt")
|
|
||||||
}
|
|
||||||
@ -1,20 +1,53 @@
|
|||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
//springboot jar
|
||||||
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id 'java'
|
||||||
|
id "io.spring.dependency-management" version "1.0.11.RELEASE"
|
||||||
|
id 'org.springframework.boot' version "${springBootVersion}"
|
||||||
|
}
|
||||||
|
|
||||||
|
apply plugin: 'io.spring.dependency-management'
|
||||||
|
|
||||||
description = "maxkey-web-maxkey"
|
description = "maxkey-web-maxkey"
|
||||||
|
|
||||||
//add support for Java
|
bootJar {
|
||||||
apply plugin: 'java'
|
dependsOn jar
|
||||||
|
archiveBaseName = 'maxkey-boot'
|
||||||
|
version = "${project.version}-ga"
|
||||||
|
mainClass = 'org.dromara.maxkey.MaxKeyApplication'
|
||||||
|
manifest {
|
||||||
|
attributes(
|
||||||
|
"Implementation-Title": project.name,
|
||||||
|
"Implementation-Vendor": project.vendor,
|
||||||
|
"Created-By": project.author,
|
||||||
|
"Implementation-Date": java.time.ZonedDateTime.now(),
|
||||||
|
"Implementation-Version": project.version
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(":maxkey-common")
|
implementation project(":maxkey-common")
|
||||||
implementation project(":maxkey-core")
|
implementation project(":maxkey-core")
|
||||||
implementation project(":maxkey-persistence")
|
implementation project(":maxkey-persistence")
|
||||||
|
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-captcha")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-ip2location")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-otp")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-sms")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-web")
|
||||||
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-social")
|
implementation project(":maxkey-authentications:maxkey-authentication-social")
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-captcha")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-ip2location")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-otp")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-sms")
|
|
||||||
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-authorize")
|
implementation project(":maxkey-protocols:maxkey-protocol-authorize")
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-cas")
|
implementation project(":maxkey-protocols:maxkey-protocol-cas")
|
||||||
@ -24,5 +57,4 @@ dependencies {
|
|||||||
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-jwt")
|
implementation project(":maxkey-protocols:maxkey-protocol-jwt")
|
||||||
|
|
||||||
}
|
}
|
||||||
30
maxkey-webs/maxkey-web-maxkey/config/build_tradition.gradle
Normal file
30
maxkey-webs/maxkey-web-maxkey/config/build_tradition.gradle
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
description = "maxkey-web-maxkey"
|
||||||
|
|
||||||
|
//add support for Java
|
||||||
|
apply plugin: 'java'
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation project(":maxkey-common")
|
||||||
|
implementation project(":maxkey-core")
|
||||||
|
implementation project(":maxkey-persistence")
|
||||||
|
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-captcha")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-ip2location")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-otp")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-sms")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-web")
|
||||||
|
|
||||||
|
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
||||||
|
implementation project(":maxkey-authentications:maxkey-authentication-social")
|
||||||
|
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
||||||
|
|
||||||
|
implementation project(":maxkey-protocols:maxkey-protocol-authorize")
|
||||||
|
implementation project(":maxkey-protocols:maxkey-protocol-cas")
|
||||||
|
implementation project(":maxkey-protocols:maxkey-protocol-extendapi")
|
||||||
|
implementation project(":maxkey-protocols:maxkey-protocol-formbased")
|
||||||
|
implementation project(":maxkey-protocols:maxkey-protocol-tokenbased")
|
||||||
|
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
||||||
|
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
||||||
|
implementation project(":maxkey-protocols:maxkey-protocol-jwt")
|
||||||
|
|
||||||
|
}
|
||||||
@ -53,12 +53,14 @@ dependencies {
|
|||||||
implementation project(":maxkey-core")
|
implementation project(":maxkey-core")
|
||||||
implementation project(":maxkey-persistence")
|
implementation project(":maxkey-persistence")
|
||||||
|
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-captcha")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-ip2location")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-otp")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-sms")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-web")
|
||||||
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-captcha")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-ip2location")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-otp")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-sms")
|
|
||||||
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
||||||
|
|||||||
@ -1,65 +0,0 @@
|
|||||||
buildscript {
|
|
||||||
repositories {
|
|
||||||
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
|
|
||||||
}
|
|
||||||
dependencies {
|
|
||||||
//springboot jar
|
|
||||||
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'org.springframework.boot' version "${springBootVersion}"
|
|
||||||
id "io.spring.dependency-management" version "1.0.11.RELEASE"
|
|
||||||
}
|
|
||||||
|
|
||||||
description = "maxkey-web-mgt"
|
|
||||||
|
|
||||||
//springboot jar
|
|
||||||
apply plugin: 'io.spring.dependency-management'
|
|
||||||
|
|
||||||
//add support for Java
|
|
||||||
apply plugin: 'java'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bootJar {
|
|
||||||
dependsOn jar
|
|
||||||
archiveBaseName = 'maxkey-mgt-boot'
|
|
||||||
version = "${project.version}-ga"
|
|
||||||
mainClass = 'org.dromara.maxkey.MaxKeyMgtApplication'
|
|
||||||
manifest {
|
|
||||||
attributes(
|
|
||||||
"Implementation-Title": project.name,
|
|
||||||
"Implementation-Vendor": project.vendor,
|
|
||||||
"Created-By": project.author,
|
|
||||||
"Implementation-Date": java.time.ZonedDateTime.now(),
|
|
||||||
"Implementation-Version": project.version
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":maxkey-common")
|
|
||||||
implementation project(":maxkey-core")
|
|
||||||
implementation project(":maxkey-persistence")
|
|
||||||
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-captcha")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-ip2location")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-otp")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-sms")
|
|
||||||
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
|
||||||
|
|
||||||
//synchronizers
|
|
||||||
implementation project(":maxkey-synchronizers:maxkey-synchronizer")
|
|
||||||
implementation project(":maxkey-synchronizers:maxkey-synchronizer-activedirectory")
|
|
||||||
implementation project(":maxkey-synchronizers:maxkey-synchronizer-feishu")
|
|
||||||
implementation project(":maxkey-synchronizers:maxkey-synchronizer-jdbc")
|
|
||||||
implementation project(":maxkey-synchronizers:maxkey-synchronizer-ldap")
|
|
||||||
implementation project(":maxkey-synchronizers:maxkey-synchronizer-workweixin")
|
|
||||||
implementation project(":maxkey-synchronizers:maxkey-synchronizer-dingtalk")
|
|
||||||
}
|
|
||||||
@ -1,19 +1,57 @@
|
|||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
//springboot jar
|
||||||
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id 'org.springframework.boot' version "${springBootVersion}"
|
||||||
|
id "io.spring.dependency-management" version "1.0.11.RELEASE"
|
||||||
|
}
|
||||||
|
|
||||||
description = "maxkey-web-mgt"
|
description = "maxkey-web-mgt"
|
||||||
|
|
||||||
|
//springboot jar
|
||||||
|
apply plugin: 'io.spring.dependency-management'
|
||||||
|
|
||||||
//add support for Java
|
//add support for Java
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
bootJar {
|
||||||
|
dependsOn jar
|
||||||
|
archiveBaseName = 'maxkey-mgt-boot'
|
||||||
|
version = "${project.version}-ga"
|
||||||
|
mainClass = 'org.dromara.maxkey.MaxKeyMgtApplication'
|
||||||
|
manifest {
|
||||||
|
attributes(
|
||||||
|
"Implementation-Title": project.name,
|
||||||
|
"Implementation-Vendor": project.vendor,
|
||||||
|
"Created-By": project.author,
|
||||||
|
"Implementation-Date": java.time.ZonedDateTime.now(),
|
||||||
|
"Implementation-Version": project.version
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(":maxkey-common")
|
implementation project(":maxkey-common")
|
||||||
implementation project(":maxkey-core")
|
implementation project(":maxkey-core")
|
||||||
implementation project(":maxkey-persistence")
|
implementation project(":maxkey-persistence")
|
||||||
|
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-captcha")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-ip2location")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-otp")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-sms")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-web")
|
||||||
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-captcha")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-ip2location")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-otp")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-sms")
|
|
||||||
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
||||||
|
|||||||
31
maxkey-webs/maxkey-web-mgt/config/build_tradition.gradle
Normal file
31
maxkey-webs/maxkey-web-mgt/config/build_tradition.gradle
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
description = "maxkey-web-mgt"
|
||||||
|
|
||||||
|
//add support for Java
|
||||||
|
apply plugin: 'java'
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation project(":maxkey-common")
|
||||||
|
implementation project(":maxkey-core")
|
||||||
|
implementation project(":maxkey-persistence")
|
||||||
|
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-captcha")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-ip2location")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-otp")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-sms")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-web")
|
||||||
|
|
||||||
|
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
||||||
|
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
||||||
|
|
||||||
|
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
||||||
|
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
||||||
|
|
||||||
|
//synchronizers
|
||||||
|
implementation project(":maxkey-synchronizers:maxkey-synchronizer")
|
||||||
|
implementation project(":maxkey-synchronizers:maxkey-synchronizer-activedirectory")
|
||||||
|
implementation project(":maxkey-synchronizers:maxkey-synchronizer-feishu")
|
||||||
|
implementation project(":maxkey-synchronizers:maxkey-synchronizer-jdbc")
|
||||||
|
implementation project(":maxkey-synchronizers:maxkey-synchronizer-ldap")
|
||||||
|
implementation project(":maxkey-synchronizers:maxkey-synchronizer-workweixin")
|
||||||
|
implementation project(":maxkey-synchronizers:maxkey-synchronizer-dingtalk")
|
||||||
|
}
|
||||||
@ -53,12 +53,14 @@ dependencies {
|
|||||||
implementation project(":maxkey-core")
|
implementation project(":maxkey-core")
|
||||||
implementation project(":maxkey-persistence")
|
implementation project(":maxkey-persistence")
|
||||||
|
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-captcha")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-ip2location")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-otp")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-sms")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-web")
|
||||||
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-captcha")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-ip2location")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-otp")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-sms")
|
|
||||||
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
||||||
|
|||||||
@ -1,60 +0,0 @@
|
|||||||
buildscript {
|
|
||||||
repositories {
|
|
||||||
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
|
|
||||||
}
|
|
||||||
dependencies {
|
|
||||||
//springboot jar
|
|
||||||
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'org.springframework.boot' version "${springBootVersion}"
|
|
||||||
id "io.spring.dependency-management" version "1.0.11.RELEASE"
|
|
||||||
}
|
|
||||||
|
|
||||||
description = "maxkey-web-openapi"
|
|
||||||
|
|
||||||
//springboot jar
|
|
||||||
apply plugin: 'io.spring.dependency-management'
|
|
||||||
|
|
||||||
//add support for Java
|
|
||||||
apply plugin: 'java'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bootJar {
|
|
||||||
dependsOn jar
|
|
||||||
archiveBaseName = 'maxkey-openapi-boot'
|
|
||||||
version = "${project.version}-ga"
|
|
||||||
mainClass = 'org.dromara.maxkey.MaxKeyOpenApiApplication'
|
|
||||||
manifest {
|
|
||||||
attributes(
|
|
||||||
"Implementation-Title": project.name,
|
|
||||||
"Implementation-Vendor": project.vendor,
|
|
||||||
"Created-By": project.author,
|
|
||||||
"Implementation-Date": java.time.ZonedDateTime.now(),
|
|
||||||
"Implementation-Version": project.version
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":maxkey-common")
|
|
||||||
implementation project(":maxkey-core")
|
|
||||||
implementation project(":maxkey-persistence")
|
|
||||||
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-captcha")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-ip2location")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-otp")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-sms")
|
|
||||||
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
|
||||||
|
|
||||||
//webapis
|
|
||||||
implementation project(":maxkey-web-apis:maxkey-web-api-scim")
|
|
||||||
implementation project(":maxkey-web-apis:maxkey-web-api-rest")
|
|
||||||
}
|
|
||||||
@ -1,19 +1,57 @@
|
|||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
//springboot jar
|
||||||
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id 'org.springframework.boot' version "${springBootVersion}"
|
||||||
|
id "io.spring.dependency-management" version "1.0.11.RELEASE"
|
||||||
|
}
|
||||||
|
|
||||||
description = "maxkey-web-openapi"
|
description = "maxkey-web-openapi"
|
||||||
|
|
||||||
|
//springboot jar
|
||||||
|
apply plugin: 'io.spring.dependency-management'
|
||||||
|
|
||||||
//add support for Java
|
//add support for Java
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
bootJar {
|
||||||
|
dependsOn jar
|
||||||
|
archiveBaseName = 'maxkey-openapi-boot'
|
||||||
|
version = "${project.version}-ga"
|
||||||
|
mainClass = 'org.dromara.maxkey.MaxKeyOpenApiApplication'
|
||||||
|
manifest {
|
||||||
|
attributes(
|
||||||
|
"Implementation-Title": project.name,
|
||||||
|
"Implementation-Vendor": project.vendor,
|
||||||
|
"Created-By": project.author,
|
||||||
|
"Implementation-Date": java.time.ZonedDateTime.now(),
|
||||||
|
"Implementation-Version": project.version
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(":maxkey-common")
|
implementation project(":maxkey-common")
|
||||||
implementation project(":maxkey-core")
|
implementation project(":maxkey-core")
|
||||||
implementation project(":maxkey-persistence")
|
implementation project(":maxkey-persistence")
|
||||||
|
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-captcha")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-ip2location")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-otp")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-sms")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-web")
|
||||||
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-captcha")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-ip2location")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-otp")
|
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
||||||
implementation project(":maxkey-authentications:maxkey-authentication-sms")
|
|
||||||
|
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
||||||
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
||||||
@ -21,5 +59,4 @@ dependencies {
|
|||||||
//webapis
|
//webapis
|
||||||
implementation project(":maxkey-web-apis:maxkey-web-api-scim")
|
implementation project(":maxkey-web-apis:maxkey-web-api-scim")
|
||||||
implementation project(":maxkey-web-apis:maxkey-web-api-rest")
|
implementation project(":maxkey-web-apis:maxkey-web-api-rest")
|
||||||
|
|
||||||
}
|
}
|
||||||
27
maxkey-webs/maxkey-web-openapi/config/build_tradition.gradle
Normal file
27
maxkey-webs/maxkey-web-openapi/config/build_tradition.gradle
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
description = "maxkey-web-openapi"
|
||||||
|
|
||||||
|
//add support for Java
|
||||||
|
apply plugin: 'java'
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation project(":maxkey-common")
|
||||||
|
implementation project(":maxkey-core")
|
||||||
|
implementation project(":maxkey-persistence")
|
||||||
|
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-captcha")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-ip2location")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-otp")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-sms")
|
||||||
|
implementation project(":maxkey-starter:maxkey-starter-web")
|
||||||
|
|
||||||
|
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
||||||
|
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
||||||
|
|
||||||
|
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
||||||
|
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
||||||
|
|
||||||
|
//webapis
|
||||||
|
implementation project(":maxkey-web-apis:maxkey-web-api-scim")
|
||||||
|
implementation project(":maxkey-web-apis:maxkey-web-api-rest")
|
||||||
|
|
||||||
|
}
|
||||||
@ -3,8 +3,6 @@ call setEnvVars.bat
|
|||||||
set START_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
|
set START_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
|
||||||
echo start time %START_TIME%
|
echo start time %START_TIME%
|
||||||
|
|
||||||
call %GRADLE_HOME%/bin/gradle configStd -b build_cnf.gradle
|
call %GRADLE_HOME%/bin/gradle configStandard -b build_cnf.gradle
|
||||||
|
|
||||||
|
|
||||||
#pause
|
|
||||||
pause
|
pause
|
||||||
@ -3,6 +3,8 @@ call setEnvVars.bat
|
|||||||
set START_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
|
set START_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
|
||||||
echo start time %START_TIME%
|
echo start time %START_TIME%
|
||||||
|
|
||||||
call %GRADLE_HOME%/bin/gradle configJar -b build_cnf.gradle
|
call %GRADLE_HOME%/bin/gradle configTradition -b build_cnf.gradle
|
||||||
|
|
||||||
|
|
||||||
|
#pause
|
||||||
pause
|
pause
|
||||||
Loading…
x
Reference in New Issue
Block a user