You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2021/12/21 05:48:33 UTC
[groovy] 02/02: fix license headers
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch groovy10259
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit aaaee30ce0fce7eb9585bab7c535cef9c598f55c
Author: Paul King <pa...@asert.com.au>
AuthorDate: Tue Dec 21 15:48:11 2021 +1000
fix license headers
---
buildSrc/src/main/groovy/Services.groovy | 18 +++++++++++++++++
.../main/groovy/org.apache.groovy-common.gradle | 3 ++-
src/main/java/groovy/lang/NamedValue.java | 18 +++++++++++++++++
.../groovy/runtime/StreamGroovyMethods.java | 18 +++++++++++++++++
.../groovy/transform/TransformWithPriority.java | 23 ++++++++++++++++++++++
.../transform/tailrec/VariableAccessReplacer.java | 18 +++++++++++++++++
.../runtime/m12n/TestLocalDateTimeExtension.java | 18 +++++++++++++++++
.../org/codehaus/groovy/tools/GrapeUtilTest.java | 18 +++++++++++++++++
8 files changed, 133 insertions(+), 1 deletion(-)
diff --git a/buildSrc/src/main/groovy/Services.groovy b/buildSrc/src/main/groovy/Services.groovy
index f678855..b177e9a 100644
--- a/buildSrc/src/main/groovy/Services.groovy
+++ b/buildSrc/src/main/groovy/Services.groovy
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
import org.gradle.api.component.SoftwareComponentFactory
import javax.inject.Inject
diff --git a/buildSrc/src/main/groovy/org.apache.groovy-common.gradle b/buildSrc/src/main/groovy/org.apache.groovy-common.gradle
index e234b9a..a02da6f 100644
--- a/buildSrc/src/main/groovy/org.apache.groovy-common.gradle
+++ b/buildSrc/src/main/groovy/org.apache.groovy-common.gradle
@@ -72,6 +72,7 @@ tasks.named('rat') {
'.classpath',
'.project',
'.settings/**',
- 'bin/**'
+ 'bin/**',
+ '.jqwik-database'
]
}
diff --git a/src/main/java/groovy/lang/NamedValue.java b/src/main/java/groovy/lang/NamedValue.java
index 4135c0a..b2b11a4 100644
--- a/src/main/java/groovy/lang/NamedValue.java
+++ b/src/main/java/groovy/lang/NamedValue.java
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
package groovy.lang;
import org.apache.groovy.lang.annotation.Incubating;
diff --git a/src/main/java/org/codehaus/groovy/runtime/StreamGroovyMethods.java b/src/main/java/org/codehaus/groovy/runtime/StreamGroovyMethods.java
index c9066f1..2dd1df2 100644
--- a/src/main/java/org/codehaus/groovy/runtime/StreamGroovyMethods.java
+++ b/src/main/java/org/codehaus/groovy/runtime/StreamGroovyMethods.java
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
package org.codehaus.groovy.runtime;
import java.lang.reflect.Array;
diff --git a/src/main/java/org/codehaus/groovy/transform/TransformWithPriority.java b/src/main/java/org/codehaus/groovy/transform/TransformWithPriority.java
index e134750..404b2e6 100644
--- a/src/main/java/org/codehaus/groovy/transform/TransformWithPriority.java
+++ b/src/main/java/org/codehaus/groovy/transform/TransformWithPriority.java
@@ -1,5 +1,28 @@
+/*
+ * 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.
+ */
package org.codehaus.groovy.transform;
+/**
+ * AST transforms may optionally implement this interface and return a priority value.
+ * Transforms within the same phase will be executed from greater to lower values of priority.
+ * The default priority is zero.
+ */
public interface TransformWithPriority {
int priority();
}
diff --git a/src/main/java/org/codehaus/groovy/transform/tailrec/VariableAccessReplacer.java b/src/main/java/org/codehaus/groovy/transform/tailrec/VariableAccessReplacer.java
index d8b0c8a..e185da2 100644
--- a/src/main/java/org/codehaus/groovy/transform/tailrec/VariableAccessReplacer.java
+++ b/src/main/java/org/codehaus/groovy/transform/tailrec/VariableAccessReplacer.java
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
package org.codehaus.groovy.transform.tailrec;
import groovy.lang.Closure;
diff --git a/src/test/org/codehaus/groovy/runtime/m12n/TestLocalDateTimeExtension.java b/src/test/org/codehaus/groovy/runtime/m12n/TestLocalDateTimeExtension.java
index fe3567f..f85f0ef 100644
--- a/src/test/org/codehaus/groovy/runtime/m12n/TestLocalDateTimeExtension.java
+++ b/src/test/org/codehaus/groovy/runtime/m12n/TestLocalDateTimeExtension.java
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
package org.codehaus.groovy.runtime.m12n;
import java.time.LocalDate;
diff --git a/src/test/org/codehaus/groovy/tools/GrapeUtilTest.java b/src/test/org/codehaus/groovy/tools/GrapeUtilTest.java
index eb3dd2f..6596f66 100644
--- a/src/test/org/codehaus/groovy/tools/GrapeUtilTest.java
+++ b/src/test/org/codehaus/groovy/tools/GrapeUtilTest.java
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
package org.codehaus.groovy.tools;
import junit.framework.TestCase;