Skip to main content

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>) with Logger.config(Supplier<String>).
  • org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelConfigToMethodRecipe: Replace calls to java.util.logging.Logger.log(Level.CONFIG, String) with Logger.config(String).
  • org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelFineSupplierToMethodRecipe: Replace calls to java.util.logging.Logger.log(Level.FINE, Supplier<String>) with Logger.fine(Supplier<String>).
  • org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelFineToMethodRecipe: Replace calls to java.util.logging.Logger.log(Level.FINE, String) with Logger.fine(String).
  • org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelFinerSupplierToMethodRecipe: Replace calls to java.util.logging.Logger.log(Level.FINER, Supplier<String>) with Logger.finer(Supplier<String>).
  • org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelFinerToMethodRecipe: Replace calls to java.util.logging.Logger.log(Level.FINER, String) with Logger.finer(String).
  • org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelFinestSupplierToMethodRecipe: Replace calls to java.util.logging.Logger.log(Level.FINEST, Supplier<String>) with Logger.finest(Supplier<String>).
  • org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelFinestToMethodRecipe: Replace calls to java.util.logging.Logger.log(Level.FINEST, String) with Logger.finest(String).
  • org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelInfoSupplierToMethodRecipe: Replace calls to java.util.logging.Logger.log(Level.INFO, Supplier<String>) with Logger.info(Supplier<String>).
  • org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelInfoToMethodRecipe: Replace calls to java.util.logging.Logger.log(Level.INFO, String) with Logger.info(String).
  • org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelSevereSupplierToMethodRecipe: Replace calls to java.util.logging.Logger.log(Level.SEVERE, Supplier<String>) with Logger.severe(Supplier<String>).
  • org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelSevereToMethodRecipe: Replace calls to java.util.logging.Logger.log(Level.SEVERE, String) with Logger.severe(String).
  • org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelWarningSupplierToMethodRecipe: Replace calls to java.util.logging.Logger.log(Level.WARNING, Supplier<String>) with Logger.warning(Supplier<String>).
  • org.openrewrite.java.logging.jul.LoggerLevelArgumentToMethodRecipes$LogLevelWarningToMethodRecipe: Replace calls to java.util.logging.Logger.log(Level.WARNING, String) with Logger.warning(String).
  • org.openrewrite.java.logging.slf4j.JulGetLoggerToLoggerFactoryRecipes: Replace calls to Logger.getLogger with LoggerFactory.getLogger.
  • org.openrewrite.java.logging.slf4j.JulGetLoggerToLoggerFactoryRecipes$GetLoggerClassCanonicalNameToLoggerFactoryRecipe: Replace calls to java.util.logging.Logger.getLogger(Some.class.getCanonicalName()) with org.slf4j.LoggerFactory.getLogger(Some.class).
  • org.openrewrite.java.logging.slf4j.JulGetLoggerToLoggerFactoryRecipes$GetLoggerClassNameToLoggerFactoryRecipe: Replace calls to java.util.logging.Logger.getLogger(Some.class.getName()) with org.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) with org.slf4j.Logger.isTraceEnabled().
  • org.openrewrite.java.logging.slf4j.JulIsLoggableToIsEnabledRecipes$LoggerIsLoggableLevelConfigRecipe: Replace calls to java.util.logging.Logger.isLoggable(Level.CONFIG) with org.slf4j.Logger.isInfoEnabled().
  • org.openrewrite.java.logging.slf4j.JulIsLoggableToIsEnabledRecipes$LoggerIsLoggableLevelFineRecipe: Replace calls to java.util.logging.Logger.isLoggable(Level.FINE) with org.slf4j.Logger.isDebugEnabled().
  • org.openrewrite.java.logging.slf4j.JulIsLoggableToIsEnabledRecipes$LoggerIsLoggableLevelFinerRecipe: Replace calls to java.util.logging.Logger.isLoggable(Level.FINER) with org.slf4j.Logger.isTraceEnabled().
  • org.openrewrite.java.logging.slf4j.JulIsLoggableToIsEnabledRecipes$LoggerIsLoggableLevelFinestRecipe: Replace calls to java.util.logging.Logger.isLoggable(Level.FINEST) with org.slf4j.Logger.isTraceEnabled().
  • org.openrewrite.java.logging.slf4j.JulIsLoggableToIsEnabledRecipes$LoggerIsLoggableLevelInfoRecipe: Replace calls to java.util.logging.Logger.isLoggable(Level.INFO) with org.slf4j.Logger.isInfoEnabled().
  • org.openrewrite.java.logging.slf4j.JulIsLoggableToIsEnabledRecipes$LoggerIsLoggableLevelSevereRecipe: Replace calls to java.util.logging.Logger.isLoggable(Level.SEVERE) with org.slf4j.Logger.isErrorEnabled().
  • org.openrewrite.java.logging.slf4j.JulIsLoggableToIsEnabledRecipes$LoggerIsLoggableLevelWarningRecipe: Replace calls to java.util.logging.Logger.isLoggable(Level.WARNING) with org.slf4j.Logger.isWarnEnabled().
  • org.openrewrite.java.logging.slf4j.JulLevelAllToTraceRecipe: Replace java.util.logging.Logger#log(Level.ALL, String) with org.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 }
  • 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 }
  • org.openrewrite.xml.search.FindTags was changed:
    • Old Options:
      • xpath: { type: String, required: true }
    • New Options:
      • xPath: { type: String, required: true }