com.apollographql.apollo.gradle.internal.DefaultCompilerParams.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apollo-gradle-plugin Show documentation
Show all versions of apollo-gradle-plugin Show documentation
Gradle plugin for generating java/kotlin classes for graphql files
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