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

com.apollographql.apollo3.gradle.internal.BuildDirLayout.kt Maven / Gradle / Ivy

package com.apollographql.apollo3.gradle.internal

import com.apollographql.apollo3.gradle.api.Service
import org.gradle.api.Project
import org.gradle.api.file.Directory
import org.gradle.api.file.RegularFile
import org.gradle.api.provider.Provider

object BuildDirLayout {
  internal fun operationOutput(project: Project, service: Service): Provider {
    return project.layout.buildDirectory.file(
        "generated/operationOutput/apollo/${service.name}/operationOutput.json"
    )
  }

  internal fun metadata(project: Project, service: Service): Provider {
    return project.layout.buildDirectory.file(
        "generated/metadata/apollo/${service.name}/metadata.json"
    )
  }

  internal fun outputDir(project: Project, service: Service): Provider {
    return project.layout.buildDirectory.dir(
        "generated/source/apollo/${service.name}"
    )
  }

  internal fun testDir(project: Project, service: Service): Provider {
    return project.layout.buildDirectory.dir(
        "generated/source/apolloTest/${service.name}"
    )
  }

  internal fun versionCheck(project: Project): Provider {
    return project.layout.buildDirectory.file(
        "generated/checks/apollo/versionCheck"
    )
  }

  internal fun duplicatesCheck(project: Project, service: Service): Provider {
    return project.layout.buildDirectory.file(
        "generated/checks/apollo/${service.name}/duplicatesCheck"
    )
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy