Skip to content

Commit

Permalink
Store MIT template locally and manually define year
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienvermeille committed Aug 18, 2024
1 parent 9f8101c commit 698d9f8
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .licenses/MIT.template.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License
Copyright © ${year} ${owner}

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<maven-javadoc-plugin.version>3.8.0</maven-javadoc-plugin.version>
<maven-jacoco-plugin.version>0.8.12</maven-jacoco-plugin.version>
<maven-fmt-plugin.version>2.23</maven-fmt-plugin.version>
<maven-license-plugin.version>4.4</maven-license-plugin.version>
<maven-license-plugin.version>4.5</maven-license-plugin.version>
<maven-ayoy-license-verifier.version>1.2.0</maven-ayoy-license-verifier.version>
</properties>

Expand Down Expand Up @@ -200,7 +200,7 @@
<exclude>src/test/resources/**</exclude>
<exclude>src/main/resources/**</exclude>
</excludes>
<header>com/mycila/maven/plugin/license/templates/MIT.txt</header>
<header>${stylesniffer.root}/.licenses/MIT.template.txt</header>
</licenseSet>
</licenseSets>
<properties>
Expand All @@ -209,6 +209,7 @@
<java>JAVAPKG_STYLE</java>
</mapping>
<owner>Sebastien Vermeille</owner>
<year>2024</year>
</properties>
</configuration>
</plugin>
Expand Down
3 changes: 3 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
#
# The MIT License
# Copyright © 2024 Sebastien Vermeille
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Expand Down
3 changes: 3 additions & 0 deletions scripts/codestyle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
#
# The MIT License
# Copyright © 2024 Sebastien Vermeille
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Expand Down
3 changes: 3 additions & 0 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
#
# The MIT License
# Copyright © 2024 Sebastien Vermeille
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Expand Down

0 comments on commit 698d9f8

Please sign in to comment.