diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3a248c..0eede76 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: build: strategy: matrix: - java: [ '11', '15', '17' ] + java: [ '11', '17', '21' ] os: [ 'ubuntu-20.04', 'windows-latest' ] runs-on: ${{ matrix.os }} steps: diff --git a/.gitignore b/.gitignore index 6797333..2812848 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,7 @@ hs_err_pid* # compilation target/ + +# mvn release files +*.releaseBackup +release.properties diff --git a/LICENSE b/LICENSE index 3c4ba2d..4a3064e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Spotify AB +Copyright (c) 2022-2023 Spotify AB Copyright (c) 2016-2022 Coveo Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/pom.xml b/pom.xml index 720858d..8e325e2 100644 --- a/pom.xml +++ b/pom.xml @@ -1,282 +1,224 @@ - - 4.0.0 + + 4.0.0 - com.spotify.fmt - fmt-maven-plugin - 2.21-SNAPSHOT - maven-plugin + + com.spotify + foss-root + 16 + - ${project.groupId}:${project.artifactId} + com.spotify.fmt + fmt-maven-plugin + 2.21-SNAPSHOT + maven-plugin - Maven Plugin that formats a project's Java Code following google-java-format - http://github.com/spotify/fmt-maven-plugin + ${project.groupId}:${project.artifactId} - - - MIT License - http://www.opensource.org/licenses/mit-license.php - - + Maven Plugin that formats a project's Java Code following google-java-format + + http://github.com/spotify/fmt-maven-plugin - - - Klara Ward - Spotify - http://github.com/spotify - - - Pierre-Alexandre St-Jean - Coveo - http://github.com/coveo - - - Guillaume Simard - Coveo - http://github.com/coveo - - - Martin Laporte - Coveo - http://github.com/coveo - - - Andy Emond - Coveo - http://github.com/coveo - - + + + MIT License + http://www.opensource.org/licenses/mit-license.php + + - - scm:git:git@github.com:spotify/fmt-maven-plugin.git - scm:git:git@github.com:spotify/fmt-maven-plugin.git - http://github.com/spotify/fmt-maven-plugin - HEAD - + + + Caesar Ralf + Spotify + http://github.com/spotify + + + Klara Ward + Spotify + http://github.com/spotify + + + Pierre-Alexandre St-Jean + Coveo + http://github.com/coveo + + + Guillaume Simard + Coveo + http://github.com/coveo + + + Martin Laporte + Coveo + http://github.com/coveo + + + Andy Emond + Coveo + http://github.com/coveo + + - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - + + scm:git:git@github.com:spotify/fmt-maven-plugin.git + scm:git:git@github.com:spotify/fmt-maven-plugin.git + http://github.com/spotify/fmt-maven-plugin + HEAD + - - UTF-8 - 1682579930 - + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + - - - org.apache.maven - maven-plugin-api - 3.9.0 - - - org.apache.maven.plugin-tools - maven-plugin-annotations - 3.8.2 - provided - - - com.google.googlejavaformat - google-java-format - 1.15.0 - + + 11 + ${maven.compiler.release} + ${maven.compiler.release} + UTF-8 + 1682579930 + - - io.norberg - auto-matter - 0.26.2 - provided - + + + org.apache.maven + maven-plugin-api + 3.9.3 + + + org.apache.maven.plugin-tools + maven-plugin-annotations + 3.8.2 + provided + + + com.google.googlejavaformat + google-java-format + 1.17.0 + - - junit - junit - 4.13.1 - test - - - org.apache.maven.plugin-testing - maven-plugin-testing-harness - 3.3.0 - test - - - org.apache.maven - maven-core - 3.9.0 - test - - - org.apache.maven - maven-compat - 3.9.0 - test - - - com.google.truth - truth - 0.28 - test - - - org.mockito - mockito-core - 4.3.1 - test - - + + io.norberg + auto-matter + 0.26.2 + provided + - - - - org.apache.maven.plugins - maven-invoker-plugin - 3.2.2 - - true - verify - - - - integration-test - - install - run - - - src/test/resources - - - - - - org.apache.maven.plugins - maven-plugin-plugin - 3.6.0 - - fmt - true - - - - mojo-descriptor - - descriptor - - - - help-goal - - helpmojo - - - - - - com.spotify.fmt - fmt-maven-plugin - 2.19 - - - - format - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.7.0 - - 9 - 9 - - - - - - - org.apache.maven.plugins - maven-jar-plugin - 3.2.2 - - - org.apache.maven.plugins - maven-release-plugin - 3.0.0-M6 - - release - - - - - + + junit + junit + 4.13.1 + test + + + org.apache.maven.plugin-testing + maven-plugin-testing-harness + 3.3.0 + test + + + org.apache.maven + maven-core + 3.9.3 + test + + + org.apache.maven + maven-compat + 3.9.3 + test + + + com.google.truth + truth + 0.28 + test + + + org.mockito + mockito-core + 4.3.1 + test + + - - - release - - - - org.apache.maven.plugins - maven-source-plugin - 3.2.1 - - - attach-sources - - jar-no-fork - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.9.1 - - - attach-javadocs - - jar - - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.6 - true - - ossrh - https://oss.sonatype.org/ - true - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.6 - - - sign-artifacts - verify - - sign - - - - - - - - + + + + org.codehaus.mojo + license-maven-plugin + + mit + LICENSE + + + + org.apache.maven.plugins + maven-invoker-plugin + 3.2.2 + + true + verify + + + + integration-test + + install + run + + + src/test/resources + + + + + + org.apache.maven.plugins + maven-plugin-plugin + 3.6.0 + + fmt + true + + + + mojo-descriptor + + descriptor + + + + help-goal + + helpmojo + + + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.2.2 + + + org.apache.maven.plugins + maven-release-plugin + + @{project.version} + + + + + diff --git a/src/main/java/com/spotify/fmt/AbstractFMT.java b/src/main/java/com/spotify/fmt/AbstractFMT.java index f0c6797..e8730ee 100644 --- a/src/main/java/com/spotify/fmt/AbstractFMT.java +++ b/src/main/java/com/spotify/fmt/AbstractFMT.java @@ -1,3 +1,29 @@ +/*- + * -\-\- + * com.spotify.fmt:fmt-maven-plugin + * -- + * Copyright (C) 2016 - 2023 Spotify AB + * -- + * 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. + * -/-/- + */ + package com.spotify.fmt; import com.google.common.annotations.VisibleForTesting; diff --git a/src/main/java/com/spotify/fmt/Check.java b/src/main/java/com/spotify/fmt/Check.java index 3cb6b81..81598a8 100644 --- a/src/main/java/com/spotify/fmt/Check.java +++ b/src/main/java/com/spotify/fmt/Check.java @@ -1,3 +1,29 @@ +/*- + * -\-\- + * com.spotify.fmt:fmt-maven-plugin + * -- + * Copyright (C) 2016 - 2023 Spotify AB + * -- + * 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. + * -/-/- + */ + package com.spotify.fmt; import static java.lang.Math.max; diff --git a/src/main/java/com/spotify/fmt/FMT.java b/src/main/java/com/spotify/fmt/FMT.java index b7743c2..b71f3ec 100644 --- a/src/main/java/com/spotify/fmt/FMT.java +++ b/src/main/java/com/spotify/fmt/FMT.java @@ -1,3 +1,29 @@ +/*- + * -\-\- + * com.spotify.fmt:fmt-maven-plugin + * -- + * Copyright (C) 2016 - 2023 Spotify AB + * -- + * 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. + * -/-/- + */ + package com.spotify.fmt; import org.apache.maven.plugins.annotations.LifecyclePhase; diff --git a/src/main/java/com/spotify/fmt/ForkingExecutor.java b/src/main/java/com/spotify/fmt/ForkingExecutor.java index e16ff72..fe3e353 100644 --- a/src/main/java/com/spotify/fmt/ForkingExecutor.java +++ b/src/main/java/com/spotify/fmt/ForkingExecutor.java @@ -1,3 +1,29 @@ +/*- + * -\-\- + * com.spotify.fmt:fmt-maven-plugin + * -- + * Copyright (C) 2016 - 2023 Spotify AB + * -- + * 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. + * -/-/- + */ + package com.spotify.fmt; import java.io.BufferedReader; diff --git a/src/main/java/com/spotify/fmt/Formatter.java b/src/main/java/com/spotify/fmt/Formatter.java index 721a8b6..2626a39 100644 --- a/src/main/java/com/spotify/fmt/Formatter.java +++ b/src/main/java/com/spotify/fmt/Formatter.java @@ -1,3 +1,29 @@ +/*- + * -\-\- + * com.spotify.fmt:fmt-maven-plugin + * -- + * Copyright (C) 2016 - 2023 Spotify AB + * -- + * 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. + * -/-/- + */ + package com.spotify.fmt; import com.google.common.base.Charsets; diff --git a/src/main/java/com/spotify/fmt/FormatterException.java b/src/main/java/com/spotify/fmt/FormatterException.java index e20c483..f824c77 100644 --- a/src/main/java/com/spotify/fmt/FormatterException.java +++ b/src/main/java/com/spotify/fmt/FormatterException.java @@ -1,3 +1,29 @@ +/*- + * -\-\- + * com.spotify.fmt:fmt-maven-plugin + * -- + * Copyright (C) 2016 - 2023 Spotify AB + * -- + * 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. + * -/-/- + */ + package com.spotify.fmt; public class FormatterException extends RuntimeException { diff --git a/src/main/java/com/spotify/fmt/FormattingConfiguration.java b/src/main/java/com/spotify/fmt/FormattingConfiguration.java index d3b538f..b81a937 100644 --- a/src/main/java/com/spotify/fmt/FormattingConfiguration.java +++ b/src/main/java/com/spotify/fmt/FormattingConfiguration.java @@ -1,3 +1,29 @@ +/*- + * -\-\- + * com.spotify.fmt:fmt-maven-plugin + * -- + * Copyright (C) 2016 - 2023 Spotify AB + * -- + * 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. + * -/-/- + */ + package com.spotify.fmt; import io.norberg.automatter.AutoMatter; diff --git a/src/main/java/com/spotify/fmt/FormattingResult.java b/src/main/java/com/spotify/fmt/FormattingResult.java index d79fd63..a11c365 100644 --- a/src/main/java/com/spotify/fmt/FormattingResult.java +++ b/src/main/java/com/spotify/fmt/FormattingResult.java @@ -1,3 +1,29 @@ +/*- + * -\-\- + * com.spotify.fmt:fmt-maven-plugin + * -- + * Copyright (C) 2016 - 2023 Spotify AB + * -- + * 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. + * -/-/- + */ + package com.spotify.fmt; import io.norberg.automatter.AutoMatter; diff --git a/src/main/java/com/spotify/fmt/Logger.java b/src/main/java/com/spotify/fmt/Logger.java index 9d270b7..bc9b0b8 100644 --- a/src/main/java/com/spotify/fmt/Logger.java +++ b/src/main/java/com/spotify/fmt/Logger.java @@ -1,3 +1,29 @@ +/*- + * -\-\- + * com.spotify.fmt:fmt-maven-plugin + * -- + * Copyright (C) 2016 - 2023 Spotify AB + * -- + * 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. + * -/-/- + */ + package com.spotify.fmt; import org.apache.maven.plugin.logging.SystemStreamLog; diff --git a/src/main/java/com/spotify/fmt/Logging.java b/src/main/java/com/spotify/fmt/Logging.java index 4df8c78..7c760a6 100644 --- a/src/main/java/com/spotify/fmt/Logging.java +++ b/src/main/java/com/spotify/fmt/Logging.java @@ -1,3 +1,29 @@ +/*- + * -\-\- + * com.spotify.fmt:fmt-maven-plugin + * -- + * Copyright (C) 2016 - 2023 Spotify AB + * -- + * 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. + * -/-/- + */ + package com.spotify.fmt; import org.apache.maven.plugin.logging.Log; diff --git a/src/main/java/com/spotify/fmt/SerializableCallable.java b/src/main/java/com/spotify/fmt/SerializableCallable.java index 00f6c84..da991a5 100644 --- a/src/main/java/com/spotify/fmt/SerializableCallable.java +++ b/src/main/java/com/spotify/fmt/SerializableCallable.java @@ -1,3 +1,29 @@ +/*- + * -\-\- + * com.spotify.fmt:fmt-maven-plugin + * -- + * Copyright (C) 2016 - 2023 Spotify AB + * -- + * 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. + * -/-/- + */ + package com.spotify.fmt; import java.io.Serializable; diff --git a/src/main/java/com/spotify/fmt/Serialization.java b/src/main/java/com/spotify/fmt/Serialization.java index 01a1ce4..1ea2a55 100644 --- a/src/main/java/com/spotify/fmt/Serialization.java +++ b/src/main/java/com/spotify/fmt/Serialization.java @@ -1,3 +1,29 @@ +/*- + * -\-\- + * com.spotify.fmt:fmt-maven-plugin + * -- + * Copyright (C) 2016 - 2023 Spotify AB + * -- + * 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. + * -/-/- + */ + package com.spotify.fmt; import static java.nio.file.StandardOpenOption.CREATE_NEW; diff --git a/src/main/java/com/spotify/fmt/SerializationException.java b/src/main/java/com/spotify/fmt/SerializationException.java index 3262e9e..60aa5df 100644 --- a/src/main/java/com/spotify/fmt/SerializationException.java +++ b/src/main/java/com/spotify/fmt/SerializationException.java @@ -1,3 +1,29 @@ +/*- + * -\-\- + * com.spotify.fmt:fmt-maven-plugin + * -- + * Copyright (C) 2016 - 2023 Spotify AB + * -- + * 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. + * -/-/- + */ + package com.spotify.fmt; class SerializationException extends Exception { diff --git a/src/test/java/com/spotify/fmt/FMTTest.java b/src/test/java/com/spotify/fmt/FMTTest.java index a31cf08..79c69ab 100644 --- a/src/test/java/com/spotify/fmt/FMTTest.java +++ b/src/test/java/com/spotify/fmt/FMTTest.java @@ -1,3 +1,29 @@ +/*- + * -\-\- + * com.spotify.fmt:fmt-maven-plugin + * -- + * Copyright (C) 2016 - 2023 Spotify AB + * -- + * 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. + * -/-/- + */ + package com.spotify.fmt; import static com.google.common.truth.Truth.assertThat; diff --git a/src/test/java/com/spotify/fmt/ForkingExecutorTest.java b/src/test/java/com/spotify/fmt/ForkingExecutorTest.java index 265e07b..9d1a975 100644 --- a/src/test/java/com/spotify/fmt/ForkingExecutorTest.java +++ b/src/test/java/com/spotify/fmt/ForkingExecutorTest.java @@ -1,3 +1,29 @@ +/*- + * -\-\- + * com.spotify.fmt:fmt-maven-plugin + * -- + * Copyright (C) 2016 - 2023 Spotify AB + * -- + * 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. + * -/-/- + */ + package com.spotify.fmt; import static com.google.common.truth.Truth.assertThat;