Skip to content

Commit 732d30f

Browse files
committed
Merge remote-tracking branch 'upstream/8.0.x' into 8.0.x-hibernate7
# Conflicts: # grails-data-mongodb/core/src/test/groovy/org/apache/grails/data/mongo/core/GrailsDataMongoTckManager.groovy # grails-data-mongodb/core/src/test/groovy/org/grails/datastore/gorm/mongo/BeforeUpdatePropertyPersistenceSpec.groovy # grails-datamapping-core-test/src/test/groovy/org/grails/datastore/gorm/CustomAutoTimestampSpec.groovy # grails-datamapping-core-test/src/test/groovy/org/grails/datastore/gorm/NestedCriteriaWithNamedQuerySpec.groovy # grails-datamapping-core/src/main/groovy/org/grails/datastore/gorm/GormStaticApi.groovy # grails-datamapping-core/src/main/groovy/org/grails/datastore/gorm/query/NamedCriteriaProxy.groovy # grails-datamapping-tck/src/main/groovy/org/apache/grails/data/testing/tck/tests/NamedQuerySpec.groovy # grails-test-suite-uber/src/test/groovy/grails/compiler/DomainClassWithInnerClassUsingStaticCompilationSpec.groovy
2 parents c800469 + 43ec72f commit 732d30f

File tree

133 files changed

+1098
-5106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+1098
-5106
lines changed

grails-async/plugin/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ dependencies {
3737

3838
api project(':grails-async-core')
3939
api project(':grails-core')
40-
api project(':grails-events-compat')
4140
api project(':grails-events-core')
4241
api project(':grails-web-common')
4342
api 'org.apache.groovy:groovy'

grails-converters/src/main/groovy/grails/web/JSONBuilder.groovy

Lines changed: 0 additions & 175 deletions
This file was deleted.

grails-converters/src/main/groovy/org/grails/web/converters/configuration/ConvertersConfigurationInitializer.java

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,10 @@ private void initJSONConfiguration() {
9595
marshallers.add(new org.grails.web.converters.marshaller.json.ByteArrayMarshaller());
9696
marshallers.add(new org.grails.web.converters.marshaller.json.CollectionMarshaller());
9797
marshallers.add(new org.grails.web.converters.marshaller.json.MapMarshaller());
98+
marshallers.add(new org.grails.web.converters.marshaller.json.SimpleEnumMarshaller());
9899

99100
Config grailsConfig = getGrailsConfig();
100101

101-
// Register enum marshaller - defaults to legacy for backward compatibility (will change in Grails 8.0)
102-
String jsonEnumFormat = grailsConfig.getProperty("grails.converters.json.enum.format", String.class, "default");
103-
if ("simple".equals(jsonEnumFormat)) {
104-
marshallers.add(new org.grails.web.converters.marshaller.json.SimpleEnumMarshaller());
105-
} else {
106-
marshallers.add(new org.grails.web.converters.marshaller.json.EnumMarshaller());
107-
}
108-
109102
marshallers.add(new org.grails.web.converters.marshaller.ProxyUnwrappingMarshaller<>());
110103

111104
if ("javascript".equals(grailsConfig.getProperty(SETTING_CONVERTERS_JSON_DATE, String.class, "default", Arrays.asList("javascript", "default")))) {
@@ -185,17 +178,10 @@ private void initXMLConfiguration() {
185178
marshallers.add(new org.grails.web.converters.marshaller.xml.ArrayMarshaller());
186179
marshallers.add(new org.grails.web.converters.marshaller.xml.CollectionMarshaller());
187180
marshallers.add(new org.grails.web.converters.marshaller.xml.MapMarshaller());
181+
marshallers.add(new org.grails.web.converters.marshaller.xml.SimpleEnumMarshaller());
188182

189183
Config grailsConfig = getGrailsConfig();
190184

191-
// Register enum marshaller - defaults to legacy for backward compatibility (will change in Grails 8.0)
192-
String xmlEnumFormat = grailsConfig.getProperty("grails.converters.xml.enum.format", String.class, "default");
193-
if ("simple".equals(xmlEnumFormat)) {
194-
marshallers.add(new org.grails.web.converters.marshaller.xml.SimpleEnumMarshaller());
195-
} else {
196-
marshallers.add(new org.grails.web.converters.marshaller.xml.EnumMarshaller());
197-
}
198-
199185
marshallers.add(new org.grails.web.converters.marshaller.xml.DateMarshaller());
200186
marshallers.add(new ProxyUnwrappingMarshaller<>());
201187
marshallers.add(new org.grails.web.converters.marshaller.xml.ToStringBeanMarshaller());

grails-converters/src/main/groovy/org/grails/web/converters/marshaller/json/EnumMarshaller.java

Lines changed: 0 additions & 66 deletions
This file was deleted.

grails-converters/src/main/groovy/org/grails/web/converters/marshaller/xml/EnumMarshaller.java

Lines changed: 0 additions & 62 deletions
This file was deleted.

grails-core/src/main/groovy/grails/boot/config/GrailsApplicationPostProcessor.groovy

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,6 @@ class GrailsApplicationPostProcessor implements BeanDefinitionRegistryPostProces
9898
}
9999
}
100100

101-
/**
102-
* @deprecated Use {@link #GrailsApplicationPostProcessor(GrailsApplicationLifeCycle, ApplicationContext, PluginDiscovery, Class [ ])} instead.
103-
* Plugin discovery is resolved from the application context when available, otherwise a default instance is created.
104-
* Will be removed in Grails 8.0.0.
105-
*/
106-
@Deprecated(forRemoval = true, since = '7.1')
107-
GrailsApplicationPostProcessor(GrailsApplicationLifeCycle lifeCycle, ApplicationContext applicationContext, Class... classes) {
108-
this(lifeCycle, applicationContext, resolvePluginDiscovery(applicationContext), classes)
109-
}
110-
111101
/**
112102
* Resolves the {@link PluginDiscovery} from the application context.
113103
* The bootstrap registry promotes the discovery bean before context refresh,
@@ -139,20 +129,6 @@ class GrailsApplicationPostProcessor implements BeanDefinitionRegistryPostProces
139129
performGrailsInitializationSequence()
140130
}
141131

142-
/**
143-
* @deprecated Plugin manager customization is now handled through {@link PluginDiscovery}.
144-
* This method will be removed in Grails 8.0.0.
145-
*
146-
* @throws UnsupportedOperationException always - callers must switch to {@link PluginDiscovery}
147-
*/
148-
@Deprecated(forRemoval = true, since = '7.1')
149-
protected void customizePluginManager(GrailsPluginManager pluginManager) {
150-
throw new UnsupportedOperationException(
151-
'customizePluginManager() is no longer supported. ' +
152-
'Use org.apache.grails.core.plugins.GrailsPluginDiscovery to configure plugin discovery instead.'
153-
)
154-
}
155-
156132
protected void customizeGrailsApplication(GrailsApplication grailsApplication) {
157133

158134
}

0 commit comments

Comments
 (0)