All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.apollographql.apollo.gradle.internal.DefaultCompilerParams.kt Maven / Gradle / Ivy

There is a newer version: 4.1.0
Show newest version
package com.apollographql.apollo.gradle.internal

import com.apollographql.apollo.compiler.OperationIdGenerator
import com.apollographql.apollo.gradle.api.CompilerParams
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.ListProperty
import org.gradle.api.provider.MapProperty
import org.gradle.api.provider.Property
import javax.inject.Inject

abstract class DefaultCompilerParams @Inject constructor(objects: ObjectFactory) : CompilerParams {
  override val graphqlSourceDirectorySet = objects.sourceDirectorySet("graphql", "graphql")

  abstract override val schemaFile: RegularFileProperty

  abstract override val generateKotlinModels : Property

  abstract override val customTypeMapping: MapProperty

  abstract override val operationIdGenerator: Property

  init {
    // see https://github.com/gradle/gradle/issues/7485
    customTypeMapping.set(null as Map?)
    sealedClassesForEnumsMatching.set(null as List?)
  }

  abstract override val suppressRawTypesWarning : Property

  abstract override val useSemanticNaming : Property

  abstract override val nullableValueType : Property

  abstract override val generateModelBuilder : Property

  abstract override val useJavaBeansSemanticNaming : Property

  abstract override val generateVisitorForPolymorphicDatatypes : Property

  abstract override val rootPackageName : Property

  abstract override val generateAsInternal: Property

  abstract override val sealedClassesForEnumsMatching: ListProperty
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy