diff --git a/src/main/resources/META-INF/rewrite/lombok.yml b/src/main/resources/META-INF/rewrite/lombok.yml index 554b8c427..4dd3207b5 100644 --- a/src/main/resources/META-INF/rewrite/lombok.yml +++ b/src/main/resources/META-INF/rewrite/lombok.yml @@ -43,3 +43,16 @@ recipeList: oldFullyQualifiedTypeName: lombok.experimental.val newFullyQualifiedTypeName: lombok.val - org.openrewrite.java.migrate.lombok.LombokValToFinalVar + +--- +type: specs.openrewrite.org/v1beta/recipe +name: org.openrewrite.java.migrate.lombok.log.UseLombokLogAnnotations +displayName: Use Lombok logger annotations instead of explicit fields +description: >- + Applies all recipes that replace logger declarations with class level annotations. +recipeList: + - org.openrewrite.java.migrate.lombok.log.UseCommonsLog + - org.openrewrite.java.migrate.lombok.log.UseJBossLog + - org.openrewrite.java.migrate.lombok.log.UseLog + - org.openrewrite.java.migrate.lombok.log.UseLog4j2 + - org.openrewrite.java.migrate.lombok.log.UseSlf4j diff --git a/src/main/resources/META-INF/rewrite/use-lombok-log-catchall.yml b/src/main/resources/META-INF/rewrite/use-lombok-log-catchall.yml deleted file mode 100644 index 68b384ebf..000000000 --- a/src/main/resources/META-INF/rewrite/use-lombok-log-catchall.yml +++ /dev/null @@ -1,30 +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: io.github.timoa.lombok.log.ConvertAnyLog -displayName: Use lomboks log annotation instead of defining the field yourself -description: >- - Applies all recipes that replace logger declarations with class level annotations. - If you know which logger framework is in use you can simply use the specific recipe. - If, for some reason you need to cover all frameworks you can use this recipe. -recipeList: - - org.openrewrite.java.migrate.lombok.log.UseSlf4j - - org.openrewrite.java.migrate.lombok.log.UseCommonsLog - - org.openrewrite.java.migrate.lombok.log.UseLog4j2 - - org.openrewrite.java.migrate.lombok.log.UseJBossLog - - org.openrewrite.java.migrate.lombok.log.UseLog