gradle build

上级 89a23148
......@@ -27,20 +27,19 @@ ext {
task clearBuildGradle(){
delete "$rootDir/build.gradle"
delete "$rootDir/release.bat"
delete "$rootDir/maxkey-web-manage/build.gradle"
delete "$rootDir/maxkey-web-maxkey/build.gradle"
delete "$rootDir/maxkey-webs/maxkey-web-mgt/build.gradle"
delete "$rootDir/maxkey-webs/maxkey-web-maxkey/build.gradle"
}
task configBuildStd(dependsOn:['clearBuildGradle']) {
copy {
from "$rootDir/maxkey-web-manage/config/build_standard.gradle"
into "$rootDir/maxkey-web-manage/"
from "$rootDir/maxkey-webs/maxkey-web-mgt/config/build_standard.gradle"
into "$rootDir/maxkey-webs/maxkey-web-mgt/"
rename { String fileName -> 'build.gradle' }
}
copy {
from "$rootDir/maxkey-web-maxkey/config/build_standard.gradle"
into "$rootDir/maxkey-web-maxkey/"
from "$rootDir/maxkey-webs/maxkey-web-maxkey/config/build_standard.gradle"
into "$rootDir/maxkey-webs/maxkey-web-maxkey/"
rename { String fileName -> 'build.gradle' }
}
copy {
......@@ -49,13 +48,53 @@ task configBuildStd(dependsOn:['clearBuildGradle']) {
rename { String fileName -> 'build.gradle' }
}
println 'Standard Build MaxKey .'
}
task configBuildDocker(dependsOn:['clearBuildGradle']) {
copy {
from "$rootDir/config/release_standard.bat"
from "$rootDir/maxkey-webs/maxkey-web-mgt/config/build_docker.gradle"
into "$rootDir/maxkey-webs/maxkey-web-mgt/"
rename { String fileName -> 'build.gradle' }
}
copy {
from "$rootDir/maxkey-webs/maxkey-web-maxkey/config/build_docker.gradle"
into "$rootDir/maxkey-webs/maxkey-web-maxkey/"
rename { String fileName -> 'build.gradle' }
}
copy {
from "$rootDir/config/build_docker.gradle"
into "$rootDir/"
rename { String fileName -> 'release.bat' }
rename { String fileName -> 'build.gradle' }
}
println 'Standard Build MaxKey .'
println 'Docker Build MaxKey .'
}
task configBuildJar(dependsOn:['clearBuildGradle']) {
copy {
from "$rootDir/maxkey-webs/maxkey-web-mgt/config/build_jar.gradle"
into "$rootDir/maxkey-webs/maxkey-web-mgt/"
rename { String fileName -> 'build.gradle' }
}
copy {
from "$rootDir/maxkey-webs/maxkey-web-maxkey/config/build_jar.gradle"
into "$rootDir/maxkey-webs/maxkey-web-maxkey/"
rename { String fileName -> 'build.gradle' }
}
copy {
from "$rootDir/config/build_jar.gradle"
into "$rootDir/"
rename { String fileName -> 'build.gradle' }
}
println 'Java Jar Build MaxKey .'
}
// In this section you declare the dependencies for your production and test code
......
/*
* 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
*/
defaultTasks "configBuildDocker"
//Version define
ext {
}
task clearBuildGradle(){
delete "$rootDir/build.gradle"
delete "$rootDir/release.bat"
delete "$rootDir/maxkey-web-manage/build.gradle"
delete "$rootDir/maxkey-web-maxkey/build.gradle"
}
task configBuildDocker(dependsOn:['clearBuildGradle']) {
copy {
from "$rootDir/maxkey-web-manage/config/build_docker.gradle"
into "$rootDir/maxkey-web-manage/"
rename { String fileName -> 'build.gradle' }
}
copy {
from "$rootDir/maxkey-web-maxkey/config/build_docker.gradle"
into "$rootDir/maxkey-web-maxkey/"
rename { String fileName -> 'build.gradle' }
}
copy {
from "$rootDir/config/build_docker.gradle"
into "$rootDir/"
rename { String fileName -> 'build.gradle' }
}
copy {
from "$rootDir/config/release_docker.bat"
into "$rootDir/"
rename { String fileName -> 'release.bat' }
}
println 'Docker Build MaxKey .'
}
// In this section you declare the dependencies for your production and test code
dependencies {
}
/*
* 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
*/
defaultTasks "configBuildJar"
//Version define
ext {
}
task clearBuildGradle(){
delete "$rootDir/build.gradle"
delete "$rootDir/release.bat"
delete "$rootDir/maxkey-web-manage/build.gradle"
delete "$rootDir/maxkey-web-maxkey/build.gradle"
}
task configBuildJar(dependsOn:['clearBuildGradle']) {
copy {
from "$rootDir/maxkey-web-manage/config/build_jar.gradle"
into "$rootDir/maxkey-web-manage/"
rename { String fileName -> 'build.gradle' }
}
copy {
from "$rootDir/maxkey-web-maxkey/config/build_jar.gradle"
into "$rootDir/maxkey-web-maxkey/"
rename { String fileName -> 'build.gradle' }
}
copy {
from "$rootDir/config/build_jar.gradle"
into "$rootDir/"
rename { String fileName -> 'build.gradle' }
}
copy {
from "$rootDir/config/release_jar.bat"
into "$rootDir/"
rename { String fileName -> 'release.bat' }
}
println 'Java Jar Build MaxKey .'
}
// In this section you declare the dependencies for your production and test code
dependencies {
}
此差异已折叠。
此差异已折叠。
此差异已折叠。
call setEnvVars.bat
set START_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
echo start time %START_TIME%
call %JAVA_HOME%/bin/java -version
call %GRADLE_HOME%/bin/gradle -version
call %GRADLE_HOME%/bin/gradle -q projects
echo start clean . . .
call %GRADLE_HOME%/bin/gradle clean
echo start clean complete .
call %GRADLE_HOME%/bin/gradle buildRelease
call %GRADLE_HOME%/bin/gradle jib
cd build
rd /q /s libs
rd /q /s tmp
cd ..
set END_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
echo Build Release start at %START_TIME% complete at %END_TIME%.
pause
\ No newline at end of file
call setEnvVars.bat
set START_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
echo start time %START_TIME%
call %JAVA_HOME%/bin/java -version
call %GRADLE_HOME%/bin/gradle -version
call %GRADLE_HOME%/bin/gradle -q projects
echo start clean . . .
call %GRADLE_HOME%/bin/gradle clean
echo start clean complete .
call %GRADLE_HOME%/bin/gradle buildRelease
cd build
rd /q /s libs
rd /q /s tmp
cd ..
set END_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
echo Build Release start at %START_TIME% complete at %END_TIME%.
pause
\ No newline at end of file
call setEnvVars.bat
set START_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
echo start time %START_TIME%
call %JAVA_HOME%/bin/java -version
call %GRADLE_HOME%/bin/gradle -version
call %GRADLE_HOME%/bin/gradle -q projects
echo start clean . . .
call %GRADLE_HOME%/bin/gradle clean
echo start clean complete .
call %GRADLE_HOME%/bin/gradle buildRelease
call %GRADLE_HOME%/bin/gradle copyDepJars
call %GRADLE_HOME%/bin/gradle buildReleaseCopy
cd build
rd /q /s libs
rd /q /s tmp
cd ..
set END_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
echo Build Release start at %START_TIME% complete at %END_TIME%.
pause
\ No newline at end of file
......@@ -48,7 +48,6 @@ dependencies {
implementation project(":maxkey-protocols:maxkey-protocol-authorize")
implementation project(":maxkey-protocols:maxkey-protocol-cas")
implementation project(":maxkey-protocols:maxkey-protocol-desktop")
implementation project(":maxkey-protocols:maxkey-protocol-extendapi")
implementation project(":maxkey-protocols:maxkey-protocol-formbased")
implementation project(":maxkey-protocols:maxkey-protocol-tokenbased")
......@@ -56,4 +55,6 @@ dependencies {
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
implementation project(":maxkey-protocols:maxkey-protocol-jwt")
implementation project(":maxkey-webs:maxkey-web-resources")
}
......@@ -47,11 +47,12 @@ dependencies {
implementation project(":maxkey-protocols:maxkey-protocol-authorize")
implementation project(":maxkey-protocols:maxkey-protocol-cas")
implementation project(":maxkey-protocols:maxkey-protocol-desktop")
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")
implementation project(":maxkey-webs:maxkey-web-resources")
}
\ No newline at end of file
......@@ -15,11 +15,12 @@ dependencies {
implementation project(":maxkey-protocols:maxkey-protocol-authorize")
implementation project(":maxkey-protocols:maxkey-protocol-cas")
implementation project(":maxkey-protocols:maxkey-protocol-desktop")
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")
implementation project(":maxkey-webs:maxkey-web-resources")
}
......@@ -44,10 +44,19 @@ dependencies {
implementation project(":maxkey-authentications:maxkey-authentication-core")
implementation project(":maxkey-authentications:maxkey-authentication-captcha")
implementation project(":maxkey-authentications:maxkey-authentication-otp")
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
//identity
implementation project(":maxkey-identitys:maxkey-identity-scim")
implementation project(":maxkey-identitys:maxkey-identity-rest")
implementation project(":maxkey-identitys:maxkey-identity-rest")
implementation project(":maxkey-identitys:maxkey-synchronizers")
implementation project(":maxkey-identitys:maxkey-synchronizers-activedirectory")
implementation project(":maxkey-identitys:maxkey-synchronizers-ldap")
implementation project(":maxkey-identitys:maxkey-synchronizers-workweixin")
implementation project(":maxkey-identitys:maxkey-synchronizers-dingding")
implementation project(":maxkey-webs:maxkey-web-resources")
}
\ No newline at end of file
......@@ -47,9 +47,18 @@ dependencies {
implementation project(":maxkey-authentications:maxkey-authentication-core")
implementation project(":maxkey-authentications:maxkey-authentication-captcha")
implementation project(":maxkey-authentications:maxkey-authentication-otp")
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
//identity
implementation project(":maxkey-identitys:maxkey-identity-scim")
implementation project(":maxkey-identitys:maxkey-identity-rest")
implementation project(":maxkey-identitys:maxkey-identity-rest")
implementation project(":maxkey-identitys:maxkey-synchronizers")
implementation project(":maxkey-identitys:maxkey-synchronizers-activedirectory")
implementation project(":maxkey-identitys:maxkey-synchronizers-ldap")
implementation project(":maxkey-identitys:maxkey-synchronizers-workweixin")
implementation project(":maxkey-identitys:maxkey-synchronizers-dingding")
implementation project(":maxkey-webs:maxkey-web-resources")
}
......@@ -14,6 +14,15 @@ dependencies {
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
//identity
implementation project(":maxkey-identitys:maxkey-identity-scim")
implementation project(":maxkey-identitys:maxkey-identity-rest")
implementation project(":maxkey-identitys:maxkey-synchronizers")
implementation project(":maxkey-identitys:maxkey-synchronizers-activedirectory")
implementation project(":maxkey-identitys:maxkey-synchronizers-ldap")
implementation project(":maxkey-identitys:maxkey-synchronizers-workweixin")
implementation project(":maxkey-identitys:maxkey-synchronizers-dingding")
implementation project(":maxkey-webs:maxkey-web-resources")
}
\ No newline at end of file
......@@ -6,6 +6,6 @@ call %JAVA_HOME%/bin/java -version
call %GRADLE_HOME%/bin/gradle -version
call %GRADLE_HOME%/bin/gradle -b build_cnf_docker.gradle
call %GRADLE_HOME%/bin/gradle configBuildDocker -b build_cnf.gradle
pause
\ No newline at end of file
......@@ -6,6 +6,6 @@ call %JAVA_HOME%/bin/java -version
call %GRADLE_HOME%/bin/gradle -version
call %GRADLE_HOME%/bin/gradle -b build_cnf_jar.gradle
call %GRADLE_HOME%/bin/gradle configBuildJar -b build_cnf.gradle
pause
\ No newline at end of file
......@@ -6,6 +6,6 @@ call %JAVA_HOME%/bin/java -version
call %GRADLE_HOME%/bin/gradle -version
call %GRADLE_HOME%/bin/gradle -b build_cnf_standard.gradle
call %GRADLE_HOME%/bin/gradle configBuildStd -b build_cnf.gradle
pause
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册