You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Robert Muir (Jira)" <ji...@apache.org> on 2020/01/27 17:05:00 UTC
[jira] [Commented] (LUCENE-9182) add apache license headers to all
.gradle files and enforce in rat task
[ https://issues.apache.org/jira/browse/LUCENE-9182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17024505#comment-17024505 ]
Robert Muir commented on LUCENE-9182:
-------------------------------------
the only interesting changes are to the rat task itself. the rest i auto-gen'd
{code}
diff --git a/gradle/validation/rat-sources.gradle b/gradle/validation/rat-sources.gradle
index c50bd5005e0..82875bab1c4 100644
--- a/gradle/validation/rat-sources.gradle
+++ b/gradle/validation/rat-sources.gradle
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -40,6 +57,7 @@ configure(rootProject) {
rat {
includes += [
"buildSrc/**/*.java",
+ "gradle/**/*.gradle",
"lucene/tools/forbiddenApis/**",
"lucene/tools/prettify/**",
]
@@ -119,6 +137,7 @@ configure(project(":solr:webapp")) {
class RatTask extends DefaultTask {
@Input
List<String> includes = [
+ "*.gradle",
"*.xml",
"src/tools/**"
]
@@ -131,7 +150,6 @@ class RatTask extends DefaultTask {
"**/TODO",
"**/*.txt",
"**/*.iml",
- "**/*.gradle",
"build/**"
]
{code}
> add apache license headers to all .gradle files and enforce in rat task
> -----------------------------------------------------------------------
>
> Key: LUCENE-9182
> URL: https://issues.apache.org/jira/browse/LUCENE-9182
> Project: Lucene - Core
> Issue Type: Task
> Reporter: Robert Muir
> Assignee: Robert Muir
> Priority: Major
> Attachments: LUCENE-9182.patch
>
>
> Currently rat is ignoring the problem, let's fix it.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org