Skip to content

Commit

Permalink
Fix configuration-cache feature for multi-module projects that don't …
Browse files Browse the repository at this point in the history
…have dgsCodegen specified. (#593)
  • Loading branch information
srinivasankavitha authored Aug 23, 2023
1 parent 5ebeefa commit a84c850
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ open class GenerateJavaTask @Inject constructor(

@Classpath
val dgsCodegenClasspath: ConfigurableFileCollection = objectFactory.fileCollection().from(
project.configurations.named("dgsCodegen")
project.configurations.findByName("dgsCodegen")
)

@TaskAction
fun generate() {
val schemaJarFilesFromDependencies = dgsCodegenClasspath.toList()
val schemaJarFilesFromDependencies = dgsCodegenClasspath.files.toList()
val schemaPaths = schemaPaths.map { Paths.get(it.toString()).toFile() }.sorted().toSet()
schemaPaths.filter { !it.exists() }.forEach {
logger.warn("Schema location ${it.absolutePath} does not exist")
Expand Down

0 comments on commit a84c850

Please sign in to comment.