Skip to content

Commit a84c850

Browse files
Fix configuration-cache feature for multi-module projects that don't have dgsCodegen specified. (#593)
1 parent 5ebeefa commit a84c850

File tree

1 file changed

+2
-2
lines changed
  • graphql-dgs-codegen-gradle/src/main/kotlin/com/netflix/graphql/dgs/codegen/gradle

1 file changed

+2
-2
lines changed

graphql-dgs-codegen-gradle/src/main/kotlin/com/netflix/graphql/dgs/codegen/gradle/GenerateJavaTask.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ open class GenerateJavaTask @Inject constructor(
155155

156156
@Classpath
157157
val dgsCodegenClasspath: ConfigurableFileCollection = objectFactory.fileCollection().from(
158-
project.configurations.named("dgsCodegen")
158+
project.configurations.findByName("dgsCodegen")
159159
)
160160

161161
@TaskAction
162162
fun generate() {
163-
val schemaJarFilesFromDependencies = dgsCodegenClasspath.toList()
163+
val schemaJarFilesFromDependencies = dgsCodegenClasspath.files.toList()
164164
val schemaPaths = schemaPaths.map { Paths.get(it.toString()).toFile() }.sorted().toSet()
165165
schemaPaths.filter { !it.exists() }.forEach {
166166
logger.warn("Schema location ${it.absolutePath} does not exist")

0 commit comments

Comments
 (0)