Skip to content

Commit 2c20d79

Browse files
committed
chore: Replace license headers with SPDX identifiers
1 parent 15e1455 commit 2c20d79

97 files changed

Lines changed: 191 additions & 1259 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.idea/copyright/apache_2026.xml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/scopes/toolfetch.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -174,28 +174,3 @@
174174
of your accepting any such warranty or additional liability.
175175

176176
END OF TERMS AND CONDITIONS
177-
178-
APPENDIX: How to apply the Apache License to your work.
179-
180-
To apply the Apache License to your work, attach the following
181-
boilerplate notice, with the fields enclosed by brackets "[]"
182-
replaced with your own identifying information. (Don't include
183-
the brackets!) The text should be enclosed in the appropriate
184-
comment syntax for the file format. We also recommend that a
185-
file or class name and description of purpose be included on the
186-
same "printed page" as the copyright notice for easier
187-
identification within third-party archives.
188-
189-
© 2026-2026 JDHeim.com
190-
191-
Licensed under the Apache License, Version 2.0 (the "License");
192-
you may not use this project except in compliance with the License.
193-
You may obtain a copy of the License at
194-
195-
https://www.apache.org/licenses/LICENSE-2.0
196-
197-
Unless required by applicable law or agreed to in writing, software
198-
distributed under the License is distributed on an "AS IS" BASIS,
199-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200-
See the License for the specific language governing permissions and
201-
limitations under the License.

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ToolFetch
2-
Copyright 2026-2026 JDHeim.com
2+
Copyright 2026 JDHeim.com
33

44
This product includes software developed at
55
The Apache Software Foundation (https://www.apache.org).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,6 @@ Thank you for being amazing!
300300

301301
## ©️ License
302302

303-
© 2026-2026 JDHeim.com
303+
Copyright 2026 JDHeim.com
304304

305305
This project is licensed under the Apache License, Version 2.0. See the [LICENSE](LICENSE) file for full license terms.

jreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ project:
2323
stereotype: 'CLI'
2424
inceptionYear: '2026'
2525
license: 'Apache-2.0'
26-
copyright: '© 2026-2026 JDHeim.com'
26+
copyright: 'Copyright 2026 JDHeim.com'
2727
links:
2828
homepage: 'https://github.com/jdheim/toolfetch'
2929
languages:

pom.xml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
~ © 2026-2026 JDHeim.com
4-
~
5-
~ Licensed under the Apache License, Version 2.0 (the "License");
6-
~ you may not use this file except in compliance with the License.
7-
~ You may obtain a copy of the License at
8-
~
9-
~ https://www.apache.org/licenses/LICENSE-2.0
10-
~
11-
~ Unless required by applicable law or agreed to in writing, software
12-
~ distributed under the License is distributed on an "AS IS" BASIS,
13-
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
~ See the License for the specific language governing permissions and
15-
~ limitations under the License.
3+
~ Copyright 2026 JDHeim.com
4+
~ SPDX-License-Identifier: Apache-2.0
165
-->
176
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
187
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

scripts/build.sh

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,8 @@
22
# BUILDS PROJECT
33

44
#
5-
# © 2026-2026 JDHeim.com
6-
#
7-
# Licensed under the Apache License, Version 2.0 (the "License");
8-
# you may not use this file except in compliance with the License.
9-
# You may obtain a copy of the License at
10-
#
11-
# https://www.apache.org/licenses/LICENSE-2.0
12-
#
13-
# Unless required by applicable law or agreed to in writing, software
14-
# distributed under the License is distributed on an "AS IS" BASIS,
15-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
# See the License for the specific language governing permissions and
17-
# limitations under the License.
5+
# Copyright 2026 JDHeim.com
6+
# SPDX-License-Identifier: Apache-2.0
187
#
198

209
[[ -f "$(dirname "${BASH_SOURCE[0]}")/common/functions.sh" ]] && . "$(dirname "${BASH_SOURCE[0]}")/common/functions.sh"
@@ -38,7 +27,6 @@ main() {
3827
cd ..
3928
readOptions "$@"
4029
scripts/common/updateVersion.sh "$(getProjectVersion)"
41-
scripts/common/updateCopyright.sh
4230
build
4331
}
4432

scripts/common/functions.sh

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,8 @@
22
# COMMON FUNCTIONS
33

44
#
5-
# © 2026-2026 JDHeim.com
6-
#
7-
# Licensed under the Apache License, Version 2.0 (the "License");
8-
# you may not use this file except in compliance with the License.
9-
# You may obtain a copy of the License at
10-
#
11-
# https://www.apache.org/licenses/LICENSE-2.0
12-
#
13-
# Unless required by applicable law or agreed to in writing, software
14-
# distributed under the License is distributed on an "AS IS" BASIS,
15-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
# See the License for the specific language governing permissions and
17-
# limitations under the License.
5+
# Copyright 2026 JDHeim.com
6+
# SPDX-License-Identifier: Apache-2.0
187
#
198

209
set -o errexit # ABORT ON NON-ZERO EXIT STATUS
@@ -43,6 +32,7 @@ run() {
4332
echo -e "${INFO} \e[1m$\e[0m $*"; "$@"
4433
}
4534

35+
## trim "string"
4636
trim() {
4737
local string="${1}"
4838
string="${string#"${string%%[![:space:]]*}"}"
@@ -87,28 +77,7 @@ updatePropertyInXmlFile() {
8777
fi
8878
}
8979

90-
## updateCopyrightInFile "README.md"
91-
updateCopyrightInFile() {
92-
local file="${1}"
93-
local oldValue newValue
94-
copyrightsStartYear="$(grep -E "© [0-9]{4}-[0-9]{4} JDHeim.com" "${file}" | sed -E 's/.*([0-9]{4})-.*/\1/')"
95-
oldValue="$(grep -E "© [0-9]{4}-[0-9]{4} JDHeim.com" "${file}" | sed -E 's/.*-([0-9]{4}).*/\1/')"
96-
newValue="$(date +%Y)"
97-
if [[ "${oldValue}" != "${newValue}" ]]; then
98-
echo -e "${INFO} Updating ${file}: ${copyrightsStartYear}-${oldValue} -> ${copyrightsStartYear}-${newValue}"
99-
sed -i "s/\(©\).*\(JDHeim.com\)/\1 ${copyrightsStartYear}-${newValue} \2/" "${file}"
100-
isUpdated=true
101-
fi
102-
}
103-
104-
## findAndUpdateCopyright "*.md"
105-
findAndUpdateCopyright() {
106-
local name="${1}"
107-
for file in $(grep -ERil --include="${name}" --exclude-dir={target} "© [0-9]{4}-[0-9]{4} JDHeim.com"); do
108-
updateCopyrightInFile "${file}"
109-
done
110-
}
111-
80+
## githubStepSummary "${exitCode}" "${logFile}" "^[[]INFO[]] Check for updates complete"
11281
githubStepSummary() {
11382
local exitCode=${1}
11483
local logFile="${2}"

scripts/common/sonarQube.sh

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,8 @@
22
# MANAGES SONARQUBE CONTAINER
33

44
#
5-
# © 2026-2026 JDHeim.com
6-
#
7-
# Licensed under the Apache License, Version 2.0 (the "License");
8-
# you may not use this file except in compliance with the License.
9-
# You may obtain a copy of the License at
10-
#
11-
# https://www.apache.org/licenses/LICENSE-2.0
12-
#
13-
# Unless required by applicable law or agreed to in writing, software
14-
# distributed under the License is distributed on an "AS IS" BASIS,
15-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
# See the License for the specific language governing permissions and
17-
# limitations under the License.
5+
# Copyright 2026 JDHeim.com
6+
# SPDX-License-Identifier: Apache-2.0
187
#
198

209
[[ -f "$(dirname "${BASH_SOURCE[0]}")/functions.sh" ]] && . "$(dirname "${BASH_SOURCE[0]}")/functions.sh"

0 commit comments

Comments
 (0)