Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
B
beam
管理
动态
成员
计划
Wiki
代码
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
锁定的文件
部署
发布
模型注册表
分析
贡献者分析
仓库分析
洞察
模型实验
效能分析
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
oss-mirrors
beam
提交
57c200e3
提交
57c200e3
编辑于
6 years ago
作者:
Luke Cwik
浏览文件
操作
下载
补丁
差异文件
[BEAM-3993] Remove duplicate definitions between .gitignore and build.gradle
Move rat specific functions into rat closure.
上级
b97ccd10
No related branches found
No related tags found
无相关合并请求
变更
2
隐藏空白变更内容
行内
左右并排
显示
2 个更改的文件
.gitignore
+4
-1
4 个添加, 1 个删除
.gitignore
build.gradle
+8
-72
8 个添加, 72 个删除
build.gradle
有
12 个添加
和
73 个删除
.gitignore
+
4
−
1
浏览文件 @
57c200e3
...
...
@@ -8,6 +8,7 @@
# Ignore files generated by the Gradle build process.
**/.gradle/**/*
**/.gogradle/**/*
**/gogradle.lock
**/build/**/*
**/vendor/**/*
**/.gradletasknamecache
...
...
@@ -22,7 +23,9 @@ sdks/java/maven-archetypes/examples/src/main/resources/archetype-resources/src/
sdks/java/maven-archetypes/examples-java8/src/main/resources/archetype-resources/src/
# Ignore files generated by the Python build process.
**/*.py[cod]
**/*.pyc
**/*.pyo
**/*.pyd
**/*.egg-info/
**/.eggs/
**/nose-*.egg/
...
...
此差异已折叠。
点击以展开。
build.gradle
+
8
−
72
浏览文件 @
57c200e3
...
...
@@ -68,71 +68,8 @@ apply plugin: "base"
// Apply one top level rat plugin to perform any required license enforcement analysis
apply
plugin:
"org.nosphere.apache.rat"
def
findIgnoresForRat
=
{
rat
{
def
exclusions
=
[
// Ignore any offline repositories the user may have created.
"**/${offlineRepositoryRoot}/**/*"
,
// Exclude files generated by the Gradle build process
"**/.gradle/**/*"
,
"**/.gogradle/**/*"
,
"**/gogradle.lock"
,
"**/build/**/*"
,
"**/vendor/**/*"
,
"**/.gradletasknamecache"
,
// .gitignore: Ignore files generated by the Maven build process
"**/target/**/*"
,
"**/bin/**/*"
,
"**/dependency-reduced-pom.xml"
,
// .gitignore: Ignore files generated by the Python build process
"**/*.pyc"
,
"**/*.pyo"
,
"**/*.pyd"
,
"**/*.egg-info/**/*"
,
"**/.eggs/**/*"
,
"**/nose-*.egg/**/*"
,
"**/.tox/**/*"
,
"**/dist/**/*"
,
"**/distribute-*/**/*"
,
"**/env/**/*"
,
"sdks/python/**/*.c"
,
"sdks/python/**/*.so"
,
"sdks/python/**/*.egg"
,
"sdks/python/LICENSE"
,
"sdks/python/NOTICE"
,
"sdks/python/README.md"
,
"sdks/python/apache_beam/portability/api/*pb2*.*"
,
// .gitignore: Ignore IntelliJ files.
"**/.idea/**/*"
,
"**/*.iml"
,
"**/*.ipr"
,
"**/*.iws"
,
"**/out/**/*"
,
// .gitignore: Ignore Eclipse files.
"**/.classpath"
,
"**/.project"
,
"**/.factorypath"
,
"**/.checkstyle"
,
"**/.fbExcludeFilterFile"
,
"**/.apt_generated/**/*"
,
"**/.settings/**/*"
,
// .gitignore: Ignore Visual Studio Code files.
"**/.vscode/**/*"
,
// .gitignore: Hotspot VM leaves this log in a non-target directory when java crashes
"**/hs_err_pid*.log"
,
// .gitignore: Ignore files that end with "~", since they
// are most likely auto-save files produced by a text editor.
"**/*~"
,
// .gitignore: Ignore MacOSX files.
"**/.DS_Store/**/*"
,
// Ignore files we track but do not distribute
".github/**/*"
,
...
...
@@ -142,6 +79,7 @@ def findIgnoresForRat = {
"**/test/**/.placeholder"
,
// Default eclipse excludes neglect subprojects
// Proto/grpc generated wrappers
"**/apache_beam/portability/api/*_pb2*.py"
,
"**/go/pkg/beam/**/*.pb.go"
,
...
...
@@ -153,23 +91,21 @@ def findIgnoresForRat = {
"**/apache_beam/testing/data/vcf/*"
,
]
// merge with .gitignore as maven plugin does but gradle/ant one doesn't
def
gitIgnore
=
new
File
(
project
.
rootDir
,
'.gitignore'
)
// Add .gitignore excludes to the Apache Rat exclusion list. We re-create the behavior
// of the Apache Maven Rat plugin since the Apache Ant Rat plugin doesn't do this
// automatically.
def
gitIgnore
=
project
(
':'
).
file
(
'.gitignore'
)
if
(
gitIgnore
.
exists
())
{
def
gitIgnoreExcludes
=
gitIgnore
.
readLines
().
findAll
{
!
it
.
isEmpty
()
&&
!
it
.
startsWith
(
'#'
)
}
logger
.
info
(
'
Adding {
}
git
i
gnore
s e
xclu
sions to rat'
,
git
I
gnore
E
xclu
des
.
size
())
println
"
Adding
$
{git
I
gnore
E
xclu
des.size()} .
git
i
gnore
e
xclu
sions to Apache Rat"
exclusions
.
addAll
(
gitIgnoreExcludes
)
}
exclusions
}
rat
{
plainOutput
=
true
xmlOutput
=
false
htmlOutput
=
false
failOnError
=
true
excludes
=
findIgnoresForRat
()
excludes
=
exclusions
}
check
.
dependsOn
rat
...
...
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录