Skip to content

DataBuilders : Platform declaration clash #6794

@halberto-deezer

Description

@halberto-deezer

When two fields have the same name but not the same first capitalization, we have a build error :

Platform declaration clash: The following declarations have the same JVM signature (getMyField()Lcom/example/generated/type/MyClassPackageMap;):
Platform declaration clash: The following declarations have the same JVM signature (setMyField()Lcom/example/generated/type/MyClassPackageMap;):

Field declaration in the schema :

MyField: MyClassPackage @deprecated(reason: "Legacy field use new field.")

myField: MyClassPackage

Gradle.kts configuration :

generateApolloMetadata.set(true) // <- these two seems to produce the error
generateDataBuilders.set(true) // <- these two seems to produce the error
generateFragmentImplementations.set(true)
generateSourcesDuringGradleSync.set(true)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions