Migrate to HtmlUnit 3.x

MSAL

Automates the HtmlUnit migration guide from 2.x to 3.x.

org.openrewrite.java.testing.htmlunit.UpgradeHtmlUnit_3
mod run . --recipe=org.openrewrite.java.testing.htmlunit.UpgradeHtmlUnit_3

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change Gradle or Maven dependency net.sourceforge.htmlunit:*
  2. Change Gradle or Maven dependency com.gargoylesoftware:HTMLUnit
  3. Change Gradle or Maven dependency org.seleniumhq.selenium:htmlunit-driver
  4. Rename package name com.gargoylesoftware.htmlunit to org.htmlunit
  5. Change method name org.htmlunit.html.HtmlInput getValueAttribute() to getValue
  6. Change method name org.htmlunit.html.HtmlInput setValueAttribute(String) to setValue