Skip to content

Commit

Permalink
Fixes #20. Moved add-jdeprscan plugin back into add-plugins to mimic …
Browse files Browse the repository at this point in the history
…previous designs of declarative recipes. Added more detail in the description and display names of AddMavenJarPlugin to suppress illegal reflective access warnings.
  • Loading branch information
traceyyoshima committed Jun 1, 2021
1 parent 6371dec commit 406bf34
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 31 deletions.
29 changes: 0 additions & 29 deletions src/main/resources/META-INF/rewrite/add-jdeprscan-plugin.yml

This file was deleted.

18 changes: 16 additions & 2 deletions src/main/resources/META-INF/rewrite/add-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
<configuration>
<release>11</release>
</configuration>
---
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
Expand Down

0 comments on commit 406bf34

Please sign in to comment.