8.28.1 release (2024-06-19)
info
This changelog only shows what recipes have been added, removed, or changed. OpenRewrite may do releases that do not include these types of changes. To see these changes, please go to the releases page.
New Recipes
- io.quarkus.updates.camel.camel40.UsePluginHelperForContextGetters:
- io.quarkus.updates.camel.customRecipes.MoveGetterToPluginHelper: Move getter from context to PluginHelper
- io.quarkus.updates.core.quarkus39.GraalSDK:
- io.quarkus.updates.core.quarkus39.SyncHibernateJpaModelgenVersionWithBOM:
- org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes: Replace calls to
Logger.log(Level, String)
with the corresponding method calls. - org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelConfigSupplierToMethodRecipe: Replace calls to
java.util.logging.Logger.log(Level.CONFIG, Supplier<String>)
withLogger.config(Supplier<String>)
. - org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelConfigToMethodRecipe: Replace calls to
java.util.logging.Logger.log(Level.CONFIG, String)
withLogger.config(String)
. - org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelFineSupplierToMethodRecipe: Replace calls to
java.util.logging.Logger.log(Level.FINE, Supplier<String>)
withLogger.fine(Supplier<String>)
. - org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelFineToMethodRecipe: Replace calls to
java.util.logging.Logger.log(Level.FINE, String)
withLogger.fine(String)
. - org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelFinerSupplierToMethodRecipe: Replace calls to
java.util.logging.Logger.log(Level.FINER, Supplier<String>)
withLogger.finer(Supplier<String>)
. - org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelFinerToMethodRecipe: Replace calls to
java.util.logging.Logger.log(Level.FINER, String)
withLogger.finer(String)
. - org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelFinestSupplierToMethodRecipe: Replace calls to
java.util.logging.Logger.log(Level.FINEST, Supplier<String>)
withLogger.finest(Supplier<String>)
. - org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelFinestToMethodRecipe: Replace calls to
java.util.logging.Logger.log(Level.FINEST, String)
withLogger.finest(String)
. - org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelInfoSupplierToMethodRecipe: Replace calls to
java.util.logging.Logger.log(Level.INFO, Supplier<String>)
withLogger.info(Supplier<String>)
. - org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelInfoToMethodRecipe: Replace calls to
java.util.logging.Logger.log(Level.INFO, String)
withLogger.info(String)
. - org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelSevereSupplierToMethodRecipe: Replace calls to
java.util.logging.Logger.log(Level.SEVERE, Supplier<String>)
withLogger.severe(Supplier<String>)
. - org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelSevereToMethodRecipe: Replace calls to
java.util.logging.Logger.log(Level.SEVERE, String)
withLogger.severe(String)
. - org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelWarningSupplierToMethodRecipe: Replace calls to
java.util.logging.Logger.log(Level.WARNING, Supplier<String>)
withLogger.warning(Supplier<String>)
. - org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelWarningToMethodRecipe: Replace calls to
java.util.logging.Logger.log(Level.WARNING, String)
withLogger.warning(String)
. - org.openrewrite.java.logging.slf4j.JulGetLoggerToLoggerFactoryRecipes: Replace calls to
Logger.getLogger
withLoggerFactory.getLogger
. - org.openrewrite.java.logging.slf4j.JulGetLoggerToLoggerFactoryRecipes$GetLoggerClassCanonicalNameToLoggerFactoryRecipe: Replace calls to
java.util.logging.Logger.getLogger(Some.class.getCanonicalName())
withorg.slf4j.LoggerFactory.getLogger(Some.class)
. - org.openrewrite.java.logging.slf4j.JulGetLoggerToLoggerFactoryRecipes$GetLoggerClassNameToLoggerFactoryRecipe: Replace calls to
java.util.logging.Logger.getLogger(Some.class.getName())
withorg.slf4j.LoggerFactory.getLogger(Some.class)
. - org.openrewrite.java.logging.slf4j.JulIsLoggableToIsEnabledRecipes: Replace calls to
Logger.isLoggable(Level)
with the corresponding SLF4J method calls. - org.openrewrite.java.logging.slf4j.JulIsLoggableToIsEnabledRecipes$LoggerIsLoggableLevelAllRecipe: Replace calls to
java.util.logging.Logger.isLoggable(Level.ALL)
withorg.slf4j.Logger.isTraceEnabled()
. - org.openrewrite.java.logging.slf4j.JulIsLoggableToIsEnabledRecipes$LoggerIsLoggableLevelConfigRecipe: Replace calls to
java.util.logging.Logger.isLoggable(Level.CONFIG)
withorg.slf4j.Logger.isInfoEnabled()
. - org.openrewrite.java.logging.slf4j.JulIsLoggableToIsEnabledRecipes$LoggerIsLoggableLevelFineRecipe: Replace calls to
java.util.logging.Logger.isLoggable(Level.FINE)
withorg.slf4j.Logger.isDebugEnabled()
. - org.openrewrite.java.logging.slf4j.JulIsLoggableToIsEnabledRecipes$LoggerIsLoggableLevelFinerRecipe: Replace calls to
java.util.logging.Logger.isLoggable(Level.FINER)
withorg.slf4j.Logger.isTraceEnabled()
. - org.openrewrite.java.logging.slf4j.JulIsLoggableToIsEnabledRecipes$LoggerIsLoggableLevelFinestRecipe: Replace calls to
java.util.logging.Logger.isLoggable(Level.FINEST)
withorg.slf4j.Logger.isTraceEnabled()
. - org.openrewrite.java.logging.slf4j.JulIsLoggableToIsEnabledRecipes$LoggerIsLoggableLevelInfoRecipe: Replace calls to
java.util.logging.Logger.isLoggable(Level.INFO)
withorg.slf4j.Logger.isInfoEnabled()
. - org.openrewrite.java.logging.slf4j.JulIsLoggableToIsEnabledRecipes$LoggerIsLoggableLevelSevereRecipe: Replace calls to
java.util.logging.Logger.isLoggable(Level.SEVERE)
withorg.slf4j.Logger.isErrorEnabled()
. - org.openrewrite.java.logging.slf4j.JulIsLoggableToIsEnabledRecipes$LoggerIsLoggableLevelWarningRecipe: Replace calls to
java.util.logging.Logger.isLoggable(Level.WARNING)
withorg.slf4j.Logger.isWarnEnabled()
. - org.openrewrite.java.logging.slf4j.JulLevelAllToTraceRecipe: Replace
java.util.logging.Logger#log(Level.ALL, String)
withorg.slf4j.Logger#trace(String)
. - org.openrewrite.java.logging.slf4j.JulToSlf4j: Migrates usage of Java Util Logging (JUL) to using SLF4J directly.
- org.openrewrite.java.migrate.IBMJDKtoOracleJDK: This recipe will apply changes commonly needed when upgrading Java versions. The solutions provided in this list are solutions necessary for migrating from IBM Runtimes to Oracle Runtimes.
- org.openrewrite.java.migrate.Krb5LoginModuleClass: Do not use the
com.ibm.security.auth.module.Krb5LoginModule
class. - org.openrewrite.java.migrate.RemovedPolicy: The
javax.security.auth.Policy
class is not available from Java SE 11 onwards. - org.openrewrite.java.recipes.BlankLinesAroundFieldsWithAnnotations: Fields with annotations should have a blank line before them to clearly separate them from the field above. If another field follows, it should also have a blank line after so that the field with the annotation has space on either side of it, visually distinguishing it from its neighbors.
- org.openrewrite.java.spring.boot3.RelocateLauncherClasses: Relocate classes that have been moved to different packages in Spring Boot 3.2.
- org.openrewrite.java.testing.assertj.IsEqualToEmptyString: Adopt idiomatic AssertJ assertion for empty Strings.
Changed Recipes
- org.openrewrite.gradle.ChangeDependencyClassifier was changed:
- Old Options:
artifactId: { type: String, required: true }
configuration: { type: String, required: false }
groupId: { type: String, required: true }
newClassifier: { type: String, required: true }
- New Options:
artifactId: { type: String, required: true }
configuration: { type: String, required: false }
groupId: { type: String, required: true }
newClassifier: { type: String, required: false }
- Old Options:
- org.openrewrite.maven.AddRepository was changed:
- Old Options:
id: { type: String, required: true }
layout: { type: String, required: false }
releasesChecksumPolicy: { type: String, required: false }
releasesEnabled: { type: Boolean, required: false }
releasesUpdatePolicy: { type: String, required: false }
repoName: { type: String, required: false }
snapshotsChecksumPolicy: { type: String, required: false }
snapshotsEnabled: { type: Boolean, required: false }
snapshotsUpdatePolicy: { type: String, required: false }
url: { type: String, required: true }
- New Options:
id: { type: String, required: true }
layout: { type: String, required: false }
releasesChecksumPolicy: { type: String, required: false }
releasesEnabled: { type: Boolean, required: false }
releasesUpdatePolicy: { type: String, required: false }
repoName: { type: String, required: false }
snapshotsChecksumPolicy: { type: String, required: false }
snapshotsEnabled: { type: Boolean, required: false }
snapshotsUpdatePolicy: { type: String, required: false }
type: { type: Type, required: false }
url: { type: String, required: true }
- Old Options:
- org.openrewrite.xml.search.FindTags was changed:
- Old Options:
xpath: { type: String, required: true }
- New Options:
xPath: { type: String, required: true }
- Old Options: