All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.rewrite.htmlunit-3.yml Maven / Gradle / Ivy

There is a newer version: 0.19.0
Show newest version
#
# Copyright 2023 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.jenkins.UpgradeHtmlUnit_3_3_0 displayName: Migrate to HtmlUnit 3.x description: >- Automates the HtmlUnit [migration guide](https://htmlunit.sourceforge.io/migration.html) from 2.x to 3.x. This change was brought in by [parent 4.66](https://github.com/jenkinsci/plugin-pom/releases/tag/plugin-4.66). recipeList: - org.openrewrite.java.ChangePackage: oldPackageName: com.gargoylesoftware.htmlunit newPackageName: org.htmlunit recursive: true - org.openrewrite.java.ChangeMethodName: methodPattern: org.htmlunit.html.HtmlInput getValueAttribute() newMethodName: getValue ignoreDefinition: true matchOverrides: true - org.openrewrite.java.ChangeMethodName: methodPattern: org.htmlunit.html.HtmlInput setValueAttribute(String) newMethodName: setValue ignoreDefinition: true matchOverrides: true # TODO match if the first attribute is a literal # - org.openrewrite.java.ChangeMethodName: # methodPattern: org.htmlunit.html.HtmlInput setAttribute("value", String) # newMethodName: setValue # ignoreDefinition: true # matchOverrides: true





© 2015 - 2025 Weber Informatics LLC | Privacy Policy