From 406bf34a3147886dbe3cf76af3316c3b482f9056 Mon Sep 17 00:00:00 2001 From: traceyyoshima Date: Tue, 1 Jun 2021 10:51:26 -0700 Subject: [PATCH] Fixes #20. Moved add-jdeprscan plugin back into add-plugins to mimic previous designs of declarative recipes. Added more detail in the description and display names of AddMavenJarPlugin to suppress illegal reflective access warnings. --- .../META-INF/rewrite/add-jdeprscan-plugin.yml | 29 ------------------- .../META-INF/rewrite/add-plugins.yml | 18 ++++++++++-- 2 files changed, 16 insertions(+), 31 deletions(-) delete mode 100644 src/main/resources/META-INF/rewrite/add-jdeprscan-plugin.yml diff --git a/src/main/resources/META-INF/rewrite/add-jdeprscan-plugin.yml b/src/main/resources/META-INF/rewrite/add-jdeprscan-plugin.yml deleted file mode 100644 index 075e743e0e..0000000000 --- a/src/main/resources/META-INF/rewrite/add-jdeprscan-plugin.yml +++ /dev/null @@ -1,29 +0,0 @@ -# -# Copyright 2020 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: org.openrewrite.maven.migrate.AddJDeprScanPlugin -displayName: Add the Maven JDeprScan plugin to pom. -description: Adds the Maven JDeprScan plugin to the maven pom. The JDeprScan plugin is used to scan the class files for uses of deprecated API elements. -recipeList: - - org.openrewrite.maven.AddPlugin: - groupId: org.apache.maven.plugins - artifactId: maven-jdeprscan-plugin - version: 3.0.0-alpha-1 - configuration: |- - - 11 - diff --git a/src/main/resources/META-INF/rewrite/add-plugins.yml b/src/main/resources/META-INF/rewrite/add-plugins.yml index 49dd406427..261e400d7b 100644 --- a/src/main/resources/META-INF/rewrite/add-plugins.yml +++ b/src/main/resources/META-INF/rewrite/add-plugins.yml @@ -15,9 +15,23 @@ # --- type: specs.openrewrite.org/v1beta/recipe +name: org.openrewrite.maven.migrate.AddJDeprScanPlugin +displayName: Add the Maven JDeprScan plugin to pom. +description: Adds the Maven JDeprScan plugin to the maven pom. The JDeprScan plugin is used to scan the class files for uses of deprecated API elements. +recipeList: + - org.openrewrite.maven.AddPlugin: + groupId: org.apache.maven.plugins + artifactId: maven-jdeprscan-plugin + version: 3.0.0-alpha-1 + configuration: |- + + 11 + +--- +type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.maven.migrate.AddMavenJarPlugin -displayName: Add Maven jar plugin -description: Add Maven jar plugin as part of the migration from Java 8 to 11. +displayName: Add Maven plugin to suppress Illegal Reflective Access Warnings. +description: Adds a maven jar plugin that is configured to suppress illegal reflective access warnings. The default behavior of the Java runtime is to log a warning the first time an illegal access call is made, and not log subsequent calls. The warning, while valid, produces noise in an organizations logging infrastructure, and may be suppressed by adding this plugin. recipeList: - org.openrewrite.maven.AddPlugin: groupId: org.apache.maven.plugins