Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
yujianwangzivayy
MaxKey
提交
6e835689
MaxKey
项目概览
yujianwangzivayy
/
MaxKey
与 Fork 源项目一致
Fork自
MaxKey单点登录官方(MaxKeyTop) / MaxKey
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
MaxKey
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6e835689
编写于
11月 18, 2020
作者:
MaxKey单点登录官方
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
buildRelease
上级
1723068b
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
40 addition
and
57 deletion
+40
-57
build.gradle
build.gradle
+36
-50
release.bat
release.bat
+4
-7
未找到文件。
build.gradle
浏览文件 @
6e835689
...
...
@@ -25,7 +25,7 @@ allprojects {
configurations
.
all
{
transitive
=
false
// 为本依赖关闭依赖传递特性
}
//
JAVA
Version
//
java
Version
sourceCompatibility
=
1.8
targetCompatibility
=
1.8
compileJava
.
options
.
encoding
=
'UTF-8'
...
...
@@ -73,27 +73,12 @@ repositories {
}
subprojects
{
//apply plugin: 'org.springframework.boot'
//apply plugin: 'io.spring.dependency-management'
//项目名
println
project
.
name
//项目相对路径
println
project
.
path
//项目描述
println
project
.
description
//项目的绝对路径
println
project
.
projectDir
//项目的build文件绝对路径
println
project
.
buildDir
//项目所在的group
println
project
.
group
//项目的版本号
println
project
.
version
//项目的ant对象
println
project
.
ant
sourceSets
{
main
{
java
{
...
...
@@ -161,8 +146,8 @@ subprojects {
compile
group:
'org.apache.poi'
,
name:
'poi-ooxml'
,
version:
"${poiVersion}"
compile
group:
'org.apache.poi'
,
name:
'poi-ooxml-schemas'
,
version:
"${poiVersion}"
compile
group:
'org.apache.poi'
,
name:
'poi-scratchpad'
,
version:
"${poiVersion}"
compile
group:
'org.apache.commons'
,
name:
'not-yet-commons-ssl'
,
version:
'0.3.9'
//compile group: 'org.apache.commons', name: 'not-yet-commons-ssl', version: '0.3.9'
//logs
compile
group:
'org.apache.logging.log4j'
,
name:
'log4j-1.2-api'
,
version:
"${log4jVersion}"
compile
group:
'org.apache.logging.log4j'
,
name:
'log4j-api'
,
version:
"${log4jVersion}"
...
...
@@ -326,35 +311,16 @@ subprojects {
def
currentTime
=
java
.
time
.
ZonedDateTime
.
now
()
manifest
{
attributes
(
"Implementation-Title"
:
project
.
name
,
attributes
(
"Implementation-Title"
:
project
.
name
,
"Implementation-Vendor"
:
project
.
vendor
,
"Created-By"
:
project
.
author
,
"Implementation-Date"
:
currentTime
,
"Implementation-Version"
:
project
.
version
)
"Implementation-Version"
:
project
.
version
)
}
}
task
checkenv
{
println
'check env for project '
//项目名
println
project
.
name
//项目相对路径
println
project
.
path
//项目描述
println
project
.
description
//项目的绝对路径
println
project
.
projectDir
//项目的build文件绝对路径
println
"buildDir "
+
project
.
buildDir
//项目所在的group
println
project
.
group
//项目的版本号
println
project
.
version
//项目的ant对象
println
project
.
ant
}
task
copyjar2Release
(
type:
Copy
)
{
println
"$buildDir/libs/ to $rootDir/build/maxkey-jars/"
into
"$rootDir/build/maxkey-jars/"
...
...
@@ -362,11 +328,6 @@ subprojects {
include
'*.jar'
}
task
copyDepJars
(
type:
Copy
){
from
configurations
.
runtime
into
"$rootDir/build/maxkey-depjars"
}
task
copydemoWar2Release
(
type:
Copy
)
{
into
"$rootDir/build/demowar/"
from
"$buildDir/libs/"
...
...
@@ -384,11 +345,36 @@ subprojects {
from
"$buildDir/libs/"
}
task
buildRelease
(
dependsOn:
[
'build'
,
'jar'
,
'copyjar2Release'
,
'copyDepJars'
])
{
println
'Build MaxKey '
+
project
.
name
+
' complete .'
task
buildRelease
(
dependsOn:
[
'build'
,
'jar'
,
'copyjar2Release'
])
{
//项目名
println
"project "
+
project
.
name
+
" environment ..."
}
}
//copy Dep Jars to /build/maxkey-depjars
project
(
'maxkey-core'
)
{
task
copyDepJars
(
type:
Copy
){
println
"copy Dep Jars to $rootDir/build/maxkey-depjars"
from
configurations
.
runtime
into
"$rootDir/build/maxkey-depjars"
}
}
task
buildRelease
(
dependsOn:
[
'build'
])
{
//项目名
println
"project "
+
project
.
name
+
" environment ..."
//项目所在的group version 版本号
println
"project group "
+
project
.
group
+
" , version "
+
project
.
version
//项目相对路径
println
"project path "
+
project
.
path
//项目的绝对路径
println
"project projectDir "
+
project
.
projectDir
//项目的build文件绝对路径
println
"project buildDir "
+
project
.
buildDir
println
'Build MaxKey '
+
project
.
name
+
' '
}
// In this section you declare the dependencies for your production and test code
dependencies
{
...
...
release.bat
浏览文件 @
6e835689
...
...
@@ -2,24 +2,21 @@ 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
checkenv
call
%GRADLE_HOME%
/bin/gradle
call
%GRADLE_HOME%
/bin/gradle
war
call
%GRADLE_HOME%
/bin/gradle
buildRelease
call
%GRADLE_HOME%
/bin/gradle
copyDepJars
cd
build
rd
/q /s
libs
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录