diff --git a/src/main/resources/META-INF/rewrite/apache-httpclient-5.yml b/src/main/resources/META-INF/rewrite/apache-httpclient-5.yml index ce9a35c..3f551db 100644 --- a/src/main/resources/META-INF/rewrite/apache-httpclient-5.yml +++ b/src/main/resources/META-INF/rewrite/apache-httpclient-5.yml @@ -380,10 +380,6 @@ recipeList: oldPackageName: org.apache.http.cookie newPackageName: org.apache.hc.client5.http.cookie - - org.openrewrite.java.ChangePackage: - oldPackageName: org.apache.http.cookie - newPackageName: org.apache.hc.client5.http.cookie - - org.openrewrite.java.ChangePackage: oldPackageName: org.apache.http.annotation newPackageName: org.apache.hc.core5.annotation @@ -717,9 +713,6 @@ recipeList: comment: "No generic migration for classes in the `org.apache.http.params` package exists, please migrate manually" typePattern: org.apache.http.params..* # Fixing specific mappings - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: org.apache.hc.core5.http.RequestLine - newFullyQualifiedTypeName: org.apache.hc.core5.http.message.RequestLine - org.openrewrite.java.ChangeType: oldFullyQualifiedTypeName: org.apache.hc.core5.http.RequestLine newFullyQualifiedTypeName: org.apache.hc.core5.http.message.RequestLine diff --git a/src/main/resources/META-INF/rewrite/apache-poi-3-17.yml b/src/main/resources/META-INF/rewrite/apache-poi-3-17.yml index 9ff0b4e..da732cf 100644 --- a/src/main/resources/META-INF/rewrite/apache-poi-3-17.yml +++ b/src/main/resources/META-INF/rewrite/apache-poi-3-17.yml @@ -86,9 +86,6 @@ recipeList: - org.openrewrite.java.ReplaceConstantWithAnotherConstant: existingFullyQualifiedConstantName: org.apache.poi.ss.usermodel.CellStyle.ALIGN_CENTER_SELECTION fullyQualifiedConstantName: org.apache.poi.ss.usermodel.HorizontalAlignment.CENTER_SELECTION - - org.openrewrite.java.ReplaceConstantWithAnotherConstant: - existingFullyQualifiedConstantName: org.apache.poi.ss.usermodel.CellStyle.ALIGN_CENTER_SELECTION - fullyQualifiedConstantName: org.apache.poi.ss.usermodel.HorizontalAlignment.CENTER_SELECTION - org.openrewrite.java.ReplaceConstantWithAnotherConstant: existingFullyQualifiedConstantName: org.apache.poi.ss.usermodel.CellStyle.BORDER_NONE fullyQualifiedConstantName: org.apache.poi.ss.usermodel.BorderStyle.NONE diff --git a/src/main/resources/META-INF/rewrite/recipes.csv b/src/main/resources/META-INF/rewrite/recipes.csv index 7880a05..62acc9e 100644 --- a/src/main/resources/META-INF/rewrite/recipes.csv +++ b/src/main/resources/META-INF/rewrite/recipes.csv @@ -1,5 +1,5 @@ ecosystem,packageName,name,displayName,description,recipeCount,category1,category2,category3,category1Description,category2Description,category3Description,options -maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.ApacheBestPractices,Apache best practices,"Apply best practices to code that uses [Apache](https://apache.org/) libraries. This migrates Apache Commons, [HttpClient](https://hc.apache.org/) and [POI](https://poi.apache.org/) off their end-of-life major versions, replaces deprecated APIs with their supported replacements, and prefers the Java standard library where it now offers an equivalent.",583,,,Apache,,,Recipes to perform [Apache](https://apache.org/) project migration tasks., +maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.ApacheBestPractices,Apache best practices,"Apply best practices to code that uses [Apache](https://apache.org/) libraries. This migrates Apache Commons, [HttpClient](https://hc.apache.org/) and [POI](https://poi.apache.org/) off their end-of-life major versions, replaces deprecated APIs with their supported replacements, and prefers the Java standard library where it now offers an equivalent.",580,,,Apache,,,Recipes to perform [Apache](https://apache.org/) project migration tasks., maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.commons.ApacheCommonsBestPractices,Apache Commons best practices,"Apply best practices to code that uses [Apache Commons](https://commons.apache.org/) libraries: migrate off the end-of-life Commons Lang 2.x, Commons Collections 3.x and Commons Math 2.x major versions, correct the `commons-io` coordinates, replace deprecated APIs with their supported replacements, make character encodings explicit, and prefer the Java standard library where it now offers an equivalent.",244,,Apache Commons,Apache,,Recipes for [Apache Commons](https://commons.apache.org/) library upgrades and migrations.,Recipes to perform [Apache](https://apache.org/) project migration tasks., maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.commons.PreferJavaStandardLibrary,Prefer the Java standard library instead of Apache Commons,"Prefer the Java standard library instead of Apache Commons. These recipes replace various Apache Commons utilities with their JDK equivalents, where available in Java 11+.",50,,Apache Commons,Apache,,Recipes for [Apache Commons](https://commons.apache.org/) library upgrades and migrations.,Recipes to perform [Apache](https://apache.org/) project migration tasks., maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.commons.codec.ApacheBase64ToJavaBase64,Prefer `java.util.Base64`,Prefer the Java standard library's `java.util.Base64` over third-party usage of apache's `apache.commons.codec.binary.Base64`.,1,Commons Codec,Apache Commons,Apache,Recipes for [Apache Commons Codec](https://commons.apache.org/proper/commons-codec/) migrations.,Recipes for [Apache Commons](https://commons.apache.org/) library upgrades and migrations.,Recipes to perform [Apache](https://apache.org/) project migration tasks., @@ -77,9 +77,9 @@ maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.httpclient5.O maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.httpclient5.RemoveByteBufferAllocators,Remove ByteBufferAllocator implementations,"In Apache Http Client 5.x migration, both implementations of `ByteBufferAllocator` have been removed. This recipe will remove usage of said classes in favour of direct static calls to `ByteBuffer`.",1,,HttpClient 5,Apache,,Recipes for migrating to [Apache HttpClient 5.x](https://hc.apache.org/httpcomponents-client-5.4.x/).,Recipes to perform [Apache](https://apache.org/) project migration tasks., maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.httpclient5.StatusLine,Migrate to ApacheHttpClient 5.x deprecated methods from 4.x,Migrates deprecated methods to their equivalent ones in 5.x.,6,,HttpClient 5,Apache,,Recipes for migrating to [Apache HttpClient 5.x](https://hc.apache.org/httpcomponents-client-5.4.x/).,Recipes to perform [Apache](https://apache.org/) project migration tasks., maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.httpclient5.UpgradeApacheHttpClientDependencies,Migrate from org.apache.httpcomponents to ApacheHttpClient 5.x dependencies,Adopt `org.apache.httpcomponents.client5:httpclient5` from `org.apache.httpcomponents`.,6,,HttpClient 5,Apache,,Recipes for migrating to [Apache HttpClient 5.x](https://hc.apache.org/httpcomponents-client-5.4.x/).,Recipes to perform [Apache](https://apache.org/) project migration tasks., -maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5,Migrate to ApacheHttpClient 5.x,"Migrate applications to the latest Apache HttpClient 5.x release. This recipe will modify an application's build files, make changes to deprecated/preferred APIs, and migrate configuration settings that have changes between versions.",261,,HttpClient 5,Apache,,Recipes for migrating to [Apache HttpClient 5.x](https://hc.apache.org/httpcomponents-client-5.4.x/).,Recipes to perform [Apache](https://apache.org/) project migration tasks., +maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5,Migrate to ApacheHttpClient 5.x,"Migrate applications to the latest Apache HttpClient 5.x release. This recipe will modify an application's build files, make changes to deprecated/preferred APIs, and migrate configuration settings that have changes between versions.",259,,HttpClient 5,Apache,,Recipes for migrating to [Apache HttpClient 5.x](https://hc.apache.org/httpcomponents-client-5.4.x/).,Recipes to perform [Apache](https://apache.org/) project migration tasks., maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_AsyncClientClassMapping,Migrate Apache HttpAsyncClient 4.x classes to HttpClient 5.x,Migrates classes from Apache HttpAsyncClient 4.x `httpasyncclient` to their equivalents in HttpClient 5.x.,11,,HttpClient 5,Apache,,Recipes for migrating to [Apache HttpClient 5.x](https://hc.apache.org/httpcomponents-client-5.4.x/).,Recipes to perform [Apache](https://apache.org/) project migration tasks., -maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_ClassMapping,Migrate to ApacheHttpClient 5.x Classes Namespace from 4.x,Mapping of all the compatible classes of ApacheHttpClient 5.x from 4.x.,144,,HttpClient 5,Apache,,Recipes for migrating to [Apache HttpClient 5.x](https://hc.apache.org/httpcomponents-client-5.4.x/).,Recipes to perform [Apache](https://apache.org/) project migration tasks., +maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_ClassMapping,Migrate to ApacheHttpClient 5.x Classes Namespace from 4.x,Mapping of all the compatible classes of ApacheHttpClient 5.x from 4.x.,142,,HttpClient 5,Apache,,Recipes for migrating to [Apache HttpClient 5.x](https://hc.apache.org/httpcomponents-client-5.4.x/).,Recipes to perform [Apache](https://apache.org/) project migration tasks., maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_DeprecatedMethods,Migrate to ApacheHttpClient 5.x deprecated methods from 4.x,Migrates deprecated methods to their equivalent ones in 5.x.,7,,HttpClient 5,Apache,,Recipes for migrating to [Apache HttpClient 5.x](https://hc.apache.org/httpcomponents-client-5.4.x/).,Recipes to perform [Apache](https://apache.org/) project migration tasks., maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_TimeUnit,Adds `TimeUnit` to timeouts and duration methods,Apache HttpClient 5.x Timeout and duration methods need an extra the TimeUnit argument. This recipe uses milliseconds as a default unit.,6,,HttpClient 5,Apache,,Recipes for migrating to [Apache HttpClient 5.x](https://hc.apache.org/httpcomponents-client-5.4.x/).,Recipes to perform [Apache](https://apache.org/) project migration tasks., maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.httpclient5.UpgradeApacheHttpCoreNioDependencies,Migrate from httpcore-nio to ApacheHttpClient 5.x core dependency,Adopt `org.apache.httpcomponents.core5:httpcore5` from `org.apache.httpcomponents:httpcore-nio`.,3,,HttpClient 5,Apache,,Recipes for migrating to [Apache HttpClient 5.x](https://hc.apache.org/httpcomponents-client-5.4.x/).,Recipes to perform [Apache](https://apache.org/) project migration tasks., @@ -106,9 +106,9 @@ maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.maven.shared. maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.maven.shared.MavenSharedStringUtilsRecipes,`MavenSharedStringUtils` Refaster recipes,Refaster template recipes for `org.openrewrite.apache.maven.shared.MavenSharedStringUtils`.,15,Maven Shared Utils,Maven,Apache,Recipes for replacing [Maven Shared Utils](https://maven.apache.org/shared/maven-shared-utils/) APIs with Java standard library equivalents.,,Recipes to perform [Apache](https://apache.org/) project migration tasks., maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.poi.ReplaceSetBoldweightWithSetBold,Replace `Font.setBoldweight(short)` with `Font.setBold(boolean)`,Replace `Font.setBoldweight(short)` or equivalent with `Font.setBold(boolean)`.,1,,Apache POI,Apache,,Recipes for [Apache POI](https://poi.apache.org/) spreadsheet library.,Recipes to perform [Apache](https://apache.org/) project migration tasks., maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.poi.ReplaceSetCellType,Apache POI use `Cell.setCellType(CellType)`,"`Cell.setCellType()` can be configured with either an integer or a the `CellType` enumeration. It is clearer and less error-prone to use the `CellType` enumeration, so this recipe converts all `setCellType()` calls to use it.",1,,Apache POI,Apache,,Recipes for [Apache POI](https://poi.apache.org/) spreadsheet library.,Recipes to perform [Apache](https://apache.org/) project migration tasks., -maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.poi.UpgradeApachePoi_3_17,Migrates to Apache POI 3.17,Migrates to the last Apache POI 3.x release. This recipe modifies build files and makes changes to deprecated/preferred APIs that have changed between versions.,64,,Apache POI,Apache,,Recipes for [Apache POI](https://poi.apache.org/) spreadsheet library.,Recipes to perform [Apache](https://apache.org/) project migration tasks., -maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.poi.UpgradeApachePoi_4_1,Migrates to Apache POI 4.1.2,Migrates to the last Apache POI 4.x release. This recipe modifies build files and makes changes to deprecated/preferred APIs that have changed between versions.,72,,Apache POI,Apache,,Recipes for [Apache POI](https://poi.apache.org/) spreadsheet library.,Recipes to perform [Apache](https://apache.org/) project migration tasks., -maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.poi.UpgradeApachePoi_5,Migrates to Apache POI 5.x,Migrates to the latest Apache POI 5.x release. This recipe modifies build files to account for artifact renames and upgrades dependency versions. It also chains the 4.1 recipe to handle all prior API migrations.,77,,Apache POI,Apache,,Recipes for [Apache POI](https://poi.apache.org/) spreadsheet library.,Recipes to perform [Apache](https://apache.org/) project migration tasks., +maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.poi.UpgradeApachePoi_3_17,Migrates to Apache POI 3.17,Migrates to the last Apache POI 3.x release. This recipe modifies build files and makes changes to deprecated/preferred APIs that have changed between versions.,63,,Apache POI,Apache,,Recipes for [Apache POI](https://poi.apache.org/) spreadsheet library.,Recipes to perform [Apache](https://apache.org/) project migration tasks., +maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.poi.UpgradeApachePoi_4_1,Migrates to Apache POI 4.1.2,Migrates to the last Apache POI 4.x release. This recipe modifies build files and makes changes to deprecated/preferred APIs that have changed between versions.,71,,Apache POI,Apache,,Recipes for [Apache POI](https://poi.apache.org/) spreadsheet library.,Recipes to perform [Apache](https://apache.org/) project migration tasks., +maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.apache.poi.UpgradeApachePoi_5,Migrates to Apache POI 5.x,Migrates to the latest Apache POI 5.x release. This recipe modifies build files to account for artifact renames and upgrades dependency versions. It also chains the 4.1 recipe to handle all prior API migrations.,76,,Apache POI,Apache,,Recipes for [Apache POI](https://poi.apache.org/) spreadsheet library.,Recipes to perform [Apache](https://apache.org/) project migration tasks., maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.codehaus.plexus.AbstractLogEnabledToSlf4j,Migrate from Plexus `AbstractLogEnabled` to SLF4J,Introduce a SLF4J `Logger` field and replace calls to `getLogger()` with calls to the field.,1,,Plexus,Codehaus,,Recipes for replacing [Plexus](https://codehaus-plexus.github.io/) utilities with Java standard library and SLF4J equivalents.,, maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.codehaus.plexus.PlexusFileUtilsRecipes$DeleteDirectoryFileRecipe,Replace `FileUtils.deleteDirectory(File)` with JDK provided API,Replace Plexus `FileUtils.deleteDirectory(File directory)` with JDK provided API.,1,,Plexus,Codehaus,,Recipes for replacing [Plexus](https://codehaus-plexus.github.io/) utilities with Java standard library and SLF4J equivalents.,, maven,org.openrewrite.recipe:rewrite-apache,org.openrewrite.codehaus.plexus.PlexusFileUtilsRecipes$DeleteDirectoryStringRecipe,Replace `FileUtils.deleteDirectory(String)` with JDK provided API,Replace Plexus `FileUtils.deleteDirectory(String directory)` with JDK provided API.,1,,Plexus,Codehaus,,Recipes for replacing [Plexus](https://codehaus-plexus.github.io/) utilities with Java standard library and SLF4J equivalents.,,