From 06e090bade9da0847f063ad96ba191733436052a Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Mon, 15 Jul 2024 13:55:11 +0200 Subject: [PATCH] Add category & drop yaml recipes --- .../resources/META-INF/rewrite/rewrite.yml | 32 ------------------- .../META-INF/rewrite/stringutils.yml | 31 ------------------ src/main/resources/logback.xml | 30 ----------------- .../resources/META-INF/rewrite/category.yml | 22 +++++++++++++ 4 files changed, 22 insertions(+), 93 deletions(-) delete mode 100644 src/main/resources/META-INF/rewrite/rewrite.yml delete mode 100644 src/main/resources/META-INF/rewrite/stringutils.yml delete mode 100644 src/main/resources/logback.xml create mode 100644 src/main/resources/src/main/resources/META-INF/rewrite/category.yml diff --git a/src/main/resources/META-INF/rewrite/rewrite.yml b/src/main/resources/META-INF/rewrite/rewrite.yml deleted file mode 100644 index 4120624..0000000 --- a/src/main/resources/META-INF/rewrite/rewrite.yml +++ /dev/null @@ -1,32 +0,0 @@ -# -# Copyright 2024 the original author or authors. -#

-# 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 -#

-# https://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. -# - -# Include any Declarative YAML format recipes here, as per: -# https://docs.openrewrite.org/reference/yaml-format-reference -# These are most easily composed through the Yaml recipe builder at: -# https://app.moderne.io/recipes/builder - -# Notice how we can have multiple recipes in the same file, separated by `---` -# You can also have multiple files in `src/main/resources/META-INF/rewrite`, each containing one or more recipes. ---- -type: specs.openrewrite.org/v1beta/recipe -name: com.yourorg.UseOpenRewriteNullable -displayName: Prefer OpenRewrite Nullable -description: Replaces JetBrains Nullable with OpenRewrite Nullable. -recipeList: - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: org.jetbrains.annotations.Nullable - newFullyQualifiedTypeName: org.openrewrite.internal.lang.Nullable diff --git a/src/main/resources/META-INF/rewrite/stringutils.yml b/src/main/resources/META-INF/rewrite/stringutils.yml deleted file mode 100644 index e00e129..0000000 --- a/src/main/resources/META-INF/rewrite/stringutils.yml +++ /dev/null @@ -1,31 +0,0 @@ -# -# Copyright 2024 the original author or authors. -#

-# 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 -#

-# https://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. -# - ---- -type: specs.openrewrite.org/v1beta/recipe -name: com.yourorg.UseApacheStringUtils -displayName: Use Apache `StringUtils` -description: Replace Spring string utilities with Apache string utilities -recipeList: - - org.openrewrite.java.dependencies.AddDependency: - groupId: org.apache.commons - artifactId: commons-lang3 - version: latest.release - onlyIfUsing: org.springframework.util.StringUtils - configuration: implementation - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: org.springframework.util.StringUtils - newFullyQualifiedTypeName: org.apache.commons.lang3.StringUtils diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml deleted file mode 100644 index 4a2bc3e..0000000 --- a/src/main/resources/logback.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - %d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n - - - - - - - \ No newline at end of file diff --git a/src/main/resources/src/main/resources/META-INF/rewrite/category.yml b/src/main/resources/src/main/resources/META-INF/rewrite/category.yml new file mode 100644 index 0000000..ffc4968 --- /dev/null +++ b/src/main/resources/src/main/resources/META-INF/rewrite/category.yml @@ -0,0 +1,22 @@ +# +# Copyright 2024 the original author or authors. +#

+# 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 +#

+# https://www.jackson.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. +# + +--- +type: specs.openrewrite.org/v1beta/category +name: Docker +packageName: org.openrewrite.docker +description: Recipes to perform [Docker](https://docker.com/) migration tasks. +---