Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 46cdffa

Browse files
renovate[bot]renovate-botpuneetbehl
authored
Update groovy monorepo to v3.0.10 (#482)
* Update groovy monorepo to v3.0.10 * Correctly apply CompileDynamic After upgrading to Groovy 3.0.10 some type conversion are causing compile time error. Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Puneet Behl <[email protected]>
1 parent a2e40dc commit 46cdffa

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ datastoreVersion=7.3.0
55
gebVersion=2.3
66
geckodriverVersion=0.23.0
77
grailsGradlePluginVersion=5.1.4
8-
groovyVersion=3.0.7
8+
groovyVersion=3.0.10
99
h2Version=1.4.200
1010
hibernateCoreVersion=5.5.7.Final
1111
hibernatePluginVersion=7.2.2

grails-datastore-gorm-bson/src/main/groovy/org/grails/datastore/bson/codecs/decoders/BasicCollectionTypeDecoder.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.grails.datastore.bson.codecs.decoders
22

3+
import groovy.transform.CompileDynamic
34
import groovy.transform.CompileStatic
45
import org.bson.BsonReader
56
import org.bson.codecs.Codec
@@ -19,6 +20,7 @@ import org.grails.datastore.mapping.model.types.Basic
1920
@CompileStatic
2021
class BasicCollectionTypeDecoder implements PropertyDecoder<Basic> {
2122

23+
@CompileDynamic
2224
@Override
2325
void decode(BsonReader reader, Basic property, EntityAccess entityAccess, DecoderContext decoderContext, CodecRegistry codecRegistry) {
2426
CustomTypeMarshaller marshaller = property.customTypeMarshaller

grails-datastore-gorm-mongodb/src/main/groovy/org/grails/datastore/gorm/mongo/simple/EnumType.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ class EnumType extends AbstractMappingAwareCustomTypeMarshaller<Object, Document
155155
value.id
156156
}
157157

158+
@CompileDynamic
158159
EnumType() {
159160
super(Enum)
160161
}

0 commit comments

Comments
 (0)