The GitHub Actions job "Licensing - RAT Report" on grails-core.git/fix/constraint-overwrites-mapping-index has failed. Run started by GitHub user codeconsole (triggered by codeconsole).
Head commit for run: dbba9f5fe87f5e129689cc8d865bb85bd73ba7ae / Scott Murphy Heiberg <[email protected]> Fix constraints overwriting mapping index configuration (#15680) When a domain property has both `index: true, indexAttributes: [unique: true]` in `static mapping` and `unique: true` in `static constraints`, the constraint evaluation overwrites the mapping-configured property. The root cause is in `DefaultMappingConfigurationBuilder.getProperties()` which uses `putAll` to merge `Entity.propertyConfigs` (populated by constraint evaluation) over `builder.properties` (populated by mapping evaluation), destroying the mapping-set `index` and `indexAttributes` values. The fix changes `getProperties()` to use `putIfAbsent` semantics — properties already configured by the mapping closure are preserved when the constraint closure provides a conflicting entry. Test: DefaultMappingConfigurationBuilderSpec verifies that mapping-set index properties survive constraint evaluation. Report URL: https://github.com/apache/grails-core/actions/runs/26623245819 With regards, GitHub Actions via GitBox
