From de15a8804612f046921119fbfe9888ed2876562d Mon Sep 17 00:00:00 2001 From: Baron Roberts Date: Thu, 13 Jun 2024 21:57:49 -0700 Subject: [PATCH] Use SPDX license header. --- dev/checkstyle/header.txt | 13 +------------ .../gradle/plugins/versioning/VersioningPlugin.java | 13 +------------ .../gradle/plugins/versioning/package-info.java | 13 +------------ .../gradle/plugins/versioning/PluginApplyTest.java | 13 +------------ .../gradle/plugins/versioning/PluginIntegTest.java | 13 +------------ 5 files changed, 5 insertions(+), 60 deletions(-) diff --git a/dev/checkstyle/header.txt b/dev/checkstyle/header.txt index c448c3c..4e65388 100644 --- a/dev/checkstyle/header.txt +++ b/dev/checkstyle/header.txt @@ -1,14 +1,3 @@ ^/\*$ ^ \* Copyright [\d]{4}((,[\s]*[\d]{4})*|(-[\d]{4})?) C Thing Software$ -^ \*$ -^ \* Licensed 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\.$ +^ \* PDX-License-Identifier: Apache-2.0$ diff --git a/src/main/java/org/cthing/gradle/plugins/versioning/VersioningPlugin.java b/src/main/java/org/cthing/gradle/plugins/versioning/VersioningPlugin.java index 9c7355a..8e9c883 100644 --- a/src/main/java/org/cthing/gradle/plugins/versioning/VersioningPlugin.java +++ b/src/main/java/org/cthing/gradle/plugins/versioning/VersioningPlugin.java @@ -1,17 +1,6 @@ /* * Copyright 2024 C Thing Software - * - * Licensed 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. + * PDX-License-Identifier: Apache-2.0 */ package org.cthing.gradle.plugins.versioning; diff --git a/src/main/java/org/cthing/gradle/plugins/versioning/package-info.java b/src/main/java/org/cthing/gradle/plugins/versioning/package-info.java index 240a11d..4ca24d7 100644 --- a/src/main/java/org/cthing/gradle/plugins/versioning/package-info.java +++ b/src/main/java/org/cthing/gradle/plugins/versioning/package-info.java @@ -1,17 +1,6 @@ /* * Copyright 2024 C Thing Software - * - * Licensed 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. + * PDX-License-Identifier: Apache-2.0 */ /** diff --git a/src/test/java/org/cthing/gradle/plugins/versioning/PluginApplyTest.java b/src/test/java/org/cthing/gradle/plugins/versioning/PluginApplyTest.java index 9f29c6f..270cbf5 100644 --- a/src/test/java/org/cthing/gradle/plugins/versioning/PluginApplyTest.java +++ b/src/test/java/org/cthing/gradle/plugins/versioning/PluginApplyTest.java @@ -1,17 +1,6 @@ /* * Copyright 2024 C Thing Software - * - * Licensed 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. + * PDX-License-Identifier: Apache-2.0 */ package org.cthing.gradle.plugins.versioning; diff --git a/src/test/java/org/cthing/gradle/plugins/versioning/PluginIntegTest.java b/src/test/java/org/cthing/gradle/plugins/versioning/PluginIntegTest.java index b4e7ce0..37f7c3b 100644 --- a/src/test/java/org/cthing/gradle/plugins/versioning/PluginIntegTest.java +++ b/src/test/java/org/cthing/gradle/plugins/versioning/PluginIntegTest.java @@ -1,17 +1,6 @@ /* * Copyright 2024 C Thing Software - * - * Licensed 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. + * PDX-License-Identifier: Apache-2.0 */ package org.cthing.gradle.plugins.versioning;