Skip to content

Commit

Permalink
Merge pull request #424 from grails/jamesfredley/fix-GrailsApplicatio…
Browse files Browse the repository at this point in the history
…nBuilder

switch from Micronaut to Spring ClassUtils
  • Loading branch information
codeconsole authored Sep 25, 2024
2 parents 54c9519 + c7706e6 commit b02ae64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class GrailsApplicationBuilder {
def configuredEnvironment = context.getEnvironment()
def beanFactory = context.getBeanFactory()
def beanExcludes = [ConversionService, Environment, PropertyResolver, ConfigurableEnvironment]
def objectMapper = io.micronaut.core.reflect.ClassUtils.forName('com.fasterxml.jackson.databind.ObjectMapper', context.getClassLoader()).orElse(null)
def objectMapper = ClassUtils.forName('com.fasterxml.jackson.databind.ObjectMapper', context.getClassLoader())
if (objectMapper) {
beanExcludes.add(objectMapper)
}
Expand Down

0 comments on commit b02ae64

Please sign in to comment.