Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
thythm
ribbon
提交
2b31d36a
R
ribbon
项目概览
thythm
/
ribbon
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
ribbon
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
2b31d36a
编写于
9月 06, 2012
作者:
J
Justin Ryan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Changes needed for release plugin
上级
1954d730
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
13 deletion
+14
-13
.gitignore
.gitignore
+2
-2
gradle/convention.gradle
gradle/convention.gradle
+5
-1
gradle/maven.gradle
gradle/maven.gradle
+0
-5
gradle/release.gradle
gradle/release.gradle
+7
-5
未找到文件。
.gitignore
浏览文件 @
2b31d36a
...
...
@@ -44,8 +44,8 @@ Thumbs.db
*/target
/build
*/build
#
#
#
IntelliJ specific files/directories
# IntelliJ specific files/directories
out
.idea
*.ipr
...
...
gradle/convention.gradle
浏览文件 @
2b31d36a
...
...
@@ -10,7 +10,7 @@ subprojects { project ->
sourceCompatibility
=
1.6
// GRADLE-2087 workaround, perform after java plugin
status
=
version
.
contains
(
'-SNAPSHOT'
)?
'snapshot'
:
'release'
status
=
rootProject
.
status
task
sourcesJar
(
type:
Jar
,
dependsOn:
classes
)
{
classifier
=
'sources'
...
...
@@ -22,6 +22,10 @@ subprojects { project ->
from
javadoc
.
destinationDir
}
// Ensure output is on a new line
javadoc
.
doFirst
{
println
""
}
artifacts
{
archives
sourcesJar
archives
javadocJar
...
...
gradle/maven.gradle
浏览文件 @
2b31d36a
...
...
@@ -29,11 +29,6 @@ subprojects {
// Closure to configure all the POM with extra info, common to all projects
pom
.
project
{
parent
{
groupId
'org.sonatype.oss'
artifactId
'oss-parent'
version
'7'
}
licenses
{
license
{
name
'The Apache Software License, Version 2.0'
...
...
gradle/release.gradle
浏览文件 @
2b31d36a
apply
plugin:
'release'
// Ignore release plugin's task because it calls out via GradleBuild. This is a good place to put an email to send out
...
...
@@ -25,6 +24,8 @@ task uploadArtifactory(type: GradleBuild) {
startParameter
.
getExcludedTaskNames
().
add
(
'check'
)
tasks
=
[
'build'
,
'artifactoryPublish'
]
}
task
releaseArtifactory
(
dependsOn:
[
checkSnapshotDependencies
,
uploadArtifactory
])
task
buildWithArtifactory
(
type:
GradleBuild
)
{
startParameter
=
project
.
gradle
.
startParameter
.
newInstance
()
...
...
@@ -34,11 +35,11 @@ task buildWithArtifactory(type: GradleBuild) {
}
// Ensure upload happens before taggging but after all pre-checks
upload
Artifactory
.
dependsOn
checkSnapshotDependencies
createReleaseTag
.
dependsOn
upload
Artifactory
release
Artifactory
.
dependsOn
checkSnapshotDependencies
createReleaseTag
.
dependsOn
release
Artifactory
gradle
.
taskGraph
.
whenReady
{
taskGraph
->
if
(
taskGraph
.
hasTask
(
uploadArtifactory
)
&&
!
taskGraph
.
hasTask
(
':release'
)
)
{
throw
new
GradleException
(
'"release" task has to be run before uploading to Artifactory'
)
if
(
taskGraph
.
hasTask
(
uploadArtifactory
)
&&
rootProject
.
status
==
'release'
&&
!
taskGraph
.
hasTask
(
':release'
)
)
{
throw
new
GradleException
(
'"release" task has to be run before uploading
a release
to Artifactory'
)
}
}
subprojects
.
each
{
project
->
...
...
@@ -61,5 +62,6 @@ release {
failOnPublishNeeded
=
true
failOnUnversionedFiles
=
true
failOnUpdateNeeded
=
true
includeProjectNameInTag
=
true
requireBranch
=
null
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录