*BinarySpec.source.addAll does nothing in Gradle 2.3

While attempting upgrading from 2.2.1 to 2.3 I now get unresolved symbols because platform specific sources aren’t successfully added to corresponding binaries.

The code looks something like,

binaries.all {
 if (subproject_platform == binary_platform)
            it.source.addAll subproject_sourcesets
}

In 2.2.1 the subproject source sets are added, in 2.3 they aren’t, logging below illustrates,

2.2.1 BEFORE add source set [C source ‘pplt_time_mac:c’] to static library ‘pplt_time:mac_x86:release:staticLibrary’

[C source ‘pplt_time:c’] AFTER add source set [C source ‘pplt_time_mac:c’] to static library ‘pplt_time:mac_x86:release:staticLibrary’

[C source ‘pplt_time:c’, C source ‘pplt_time_mac:c’]

2.3 BEFORE add source set C source ‘pplt_time_osx:c’ to static library ‘pplt_time:release:staticLibrary’

[C source ‘pplt_time:c’] AFTER add source set C source ‘pplt_time_osx:c’ to static library ‘pplt_time:release:staticLibrary’

[C source ‘pplt_time:c’]

Thanks!