From d3fdc47aa420cc29c8c29655008039e5ee747263 Mon Sep 17 00:00:00 2001 From: Yeregorix Date: Sun, 14 Apr 2024 21:13:33 +0200 Subject: [PATCH] Add spotless license header --- HEADER | 22 +++++++++++++ LICENSE | 2 +- build.gradle | 31 ++++++------------- settings.gradle | 22 ------------- .../smoofyuniverse/autopickup/AutoPickup.java | 2 +- .../config/world/BlockPickupConfig.java | 2 +- .../config/world/EntityPickupConfig.java | 2 +- .../autopickup/config/world/PickupConfig.java | 2 +- .../autopickup/config/world/WorldConfig.java | 2 +- .../autopickup/event/DropListener.java | 2 +- .../autopickup/handler/BlockDropHandler.java | 2 +- .../autopickup/handler/DropHandler.java | 2 +- .../autopickup/handler/EntityDropHandler.java | 2 +- .../autopickup/message/ActionBarMessage.java | 2 +- .../autopickup/message/ChatMessage.java | 2 +- .../autopickup/message/EmptyMessage.java | 2 +- .../autopickup/message/Message.java | 2 +- .../autopickup/message/SubtitleMessage.java | 2 +- .../autopickup/message/TitleMessage.java | 2 +- .../autopickup/util/IOUtil.java | 2 +- .../autopickup/util/RegistryUtil.java | 2 +- 21 files changed, 49 insertions(+), 62 deletions(-) create mode 100644 HEADER diff --git a/HEADER b/HEADER new file mode 100644 index 0000000..5be60f5 --- /dev/null +++ b/HEADER @@ -0,0 +1,22 @@ +/* + * Copyright (c) $YEAR Hugo Dupanloup (Yeregorix) + * + * 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. + */ + diff --git a/LICENSE b/LICENSE index a4a3cc2..f06e774 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) +Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/build.gradle b/build.gradle index eb5bf17..7cb55a4 100644 --- a/build.gradle +++ b/build.gradle @@ -1,28 +1,7 @@ -/* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) - * - * 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. - */ - plugins { id 'java-library' id 'com.github.johnrengelman.shadow' version '8.1.1' + id 'com.diffplug.spotless' version '6.25.0' } group 'net.smoofyuniverse' @@ -96,3 +75,11 @@ tasks.register('setupForgeServer', Copy) { from shadowJar } + +spotless { + ratchetFrom 'origin/master' + + java { + licenseHeaderFile(rootProject.file('HEADER')) + } +} diff --git a/settings.gradle b/settings.gradle index 870336a..d7457ae 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,24 +1,2 @@ -/* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) - * - * 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. - */ - rootProject.name = 'AutoPickup' diff --git a/src/main/java/net/smoofyuniverse/autopickup/AutoPickup.java b/src/main/java/net/smoofyuniverse/autopickup/AutoPickup.java index 3677441..cafffd5 100644 --- a/src/main/java/net/smoofyuniverse/autopickup/AutoPickup.java +++ b/src/main/java/net/smoofyuniverse/autopickup/AutoPickup.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) + * Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/java/net/smoofyuniverse/autopickup/config/world/BlockPickupConfig.java b/src/main/java/net/smoofyuniverse/autopickup/config/world/BlockPickupConfig.java index b2b23b0..d4041b2 100644 --- a/src/main/java/net/smoofyuniverse/autopickup/config/world/BlockPickupConfig.java +++ b/src/main/java/net/smoofyuniverse/autopickup/config/world/BlockPickupConfig.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) + * Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/java/net/smoofyuniverse/autopickup/config/world/EntityPickupConfig.java b/src/main/java/net/smoofyuniverse/autopickup/config/world/EntityPickupConfig.java index 89d63c0..358aa95 100644 --- a/src/main/java/net/smoofyuniverse/autopickup/config/world/EntityPickupConfig.java +++ b/src/main/java/net/smoofyuniverse/autopickup/config/world/EntityPickupConfig.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) + * Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/java/net/smoofyuniverse/autopickup/config/world/PickupConfig.java b/src/main/java/net/smoofyuniverse/autopickup/config/world/PickupConfig.java index 61d3a78..c7a7b91 100644 --- a/src/main/java/net/smoofyuniverse/autopickup/config/world/PickupConfig.java +++ b/src/main/java/net/smoofyuniverse/autopickup/config/world/PickupConfig.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) + * Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/java/net/smoofyuniverse/autopickup/config/world/WorldConfig.java b/src/main/java/net/smoofyuniverse/autopickup/config/world/WorldConfig.java index 11cf9e1..8a6aa87 100644 --- a/src/main/java/net/smoofyuniverse/autopickup/config/world/WorldConfig.java +++ b/src/main/java/net/smoofyuniverse/autopickup/config/world/WorldConfig.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) + * Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/java/net/smoofyuniverse/autopickup/event/DropListener.java b/src/main/java/net/smoofyuniverse/autopickup/event/DropListener.java index 5f6a16d..d81acdb 100644 --- a/src/main/java/net/smoofyuniverse/autopickup/event/DropListener.java +++ b/src/main/java/net/smoofyuniverse/autopickup/event/DropListener.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) + * Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/java/net/smoofyuniverse/autopickup/handler/BlockDropHandler.java b/src/main/java/net/smoofyuniverse/autopickup/handler/BlockDropHandler.java index b351e67..9c05914 100644 --- a/src/main/java/net/smoofyuniverse/autopickup/handler/BlockDropHandler.java +++ b/src/main/java/net/smoofyuniverse/autopickup/handler/BlockDropHandler.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) + * Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/java/net/smoofyuniverse/autopickup/handler/DropHandler.java b/src/main/java/net/smoofyuniverse/autopickup/handler/DropHandler.java index 40ced7c..06f7aeb 100644 --- a/src/main/java/net/smoofyuniverse/autopickup/handler/DropHandler.java +++ b/src/main/java/net/smoofyuniverse/autopickup/handler/DropHandler.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) + * Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/java/net/smoofyuniverse/autopickup/handler/EntityDropHandler.java b/src/main/java/net/smoofyuniverse/autopickup/handler/EntityDropHandler.java index 4d3dab7..446fa63 100644 --- a/src/main/java/net/smoofyuniverse/autopickup/handler/EntityDropHandler.java +++ b/src/main/java/net/smoofyuniverse/autopickup/handler/EntityDropHandler.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) + * Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/java/net/smoofyuniverse/autopickup/message/ActionBarMessage.java b/src/main/java/net/smoofyuniverse/autopickup/message/ActionBarMessage.java index 64314e6..41c2661 100644 --- a/src/main/java/net/smoofyuniverse/autopickup/message/ActionBarMessage.java +++ b/src/main/java/net/smoofyuniverse/autopickup/message/ActionBarMessage.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) + * Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/java/net/smoofyuniverse/autopickup/message/ChatMessage.java b/src/main/java/net/smoofyuniverse/autopickup/message/ChatMessage.java index 2cecf64..372fc36 100644 --- a/src/main/java/net/smoofyuniverse/autopickup/message/ChatMessage.java +++ b/src/main/java/net/smoofyuniverse/autopickup/message/ChatMessage.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) + * Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/java/net/smoofyuniverse/autopickup/message/EmptyMessage.java b/src/main/java/net/smoofyuniverse/autopickup/message/EmptyMessage.java index 54e0465..aa67656 100644 --- a/src/main/java/net/smoofyuniverse/autopickup/message/EmptyMessage.java +++ b/src/main/java/net/smoofyuniverse/autopickup/message/EmptyMessage.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) + * Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/java/net/smoofyuniverse/autopickup/message/Message.java b/src/main/java/net/smoofyuniverse/autopickup/message/Message.java index b98315d..e2c85e5 100644 --- a/src/main/java/net/smoofyuniverse/autopickup/message/Message.java +++ b/src/main/java/net/smoofyuniverse/autopickup/message/Message.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) + * Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/java/net/smoofyuniverse/autopickup/message/SubtitleMessage.java b/src/main/java/net/smoofyuniverse/autopickup/message/SubtitleMessage.java index 798f42e..359e65e 100644 --- a/src/main/java/net/smoofyuniverse/autopickup/message/SubtitleMessage.java +++ b/src/main/java/net/smoofyuniverse/autopickup/message/SubtitleMessage.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) + * Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/java/net/smoofyuniverse/autopickup/message/TitleMessage.java b/src/main/java/net/smoofyuniverse/autopickup/message/TitleMessage.java index bc81220..5000cb8 100644 --- a/src/main/java/net/smoofyuniverse/autopickup/message/TitleMessage.java +++ b/src/main/java/net/smoofyuniverse/autopickup/message/TitleMessage.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) + * Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/java/net/smoofyuniverse/autopickup/util/IOUtil.java b/src/main/java/net/smoofyuniverse/autopickup/util/IOUtil.java index b2723e4..bfa05a1 100644 --- a/src/main/java/net/smoofyuniverse/autopickup/util/IOUtil.java +++ b/src/main/java/net/smoofyuniverse/autopickup/util/IOUtil.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) + * Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/java/net/smoofyuniverse/autopickup/util/RegistryUtil.java b/src/main/java/net/smoofyuniverse/autopickup/util/RegistryUtil.java index 4049a9f..e30ec1b 100644 --- a/src/main/java/net/smoofyuniverse/autopickup/util/RegistryUtil.java +++ b/src/main/java/net/smoofyuniverse/autopickup/util/RegistryUtil.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Hugo Dupanloup (Yeregorix) + * Copyright (c) 2018-2024 Hugo Dupanloup (Yeregorix) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal