Skip to content

Commit

Permalink
Merge pull request #310 from chali/MoreSpecificCodegenOutputDir
Browse files Browse the repository at this point in the history
Use more specific output directory to avoid conflicts between output directories with other code generating tools (mapstruts)
  • Loading branch information
srinivasankavitha authored Jan 5, 2022
2 parents 7aa9014 + 019beea commit a7aded5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ open class GenerateJavaTask : DefaultTask() {

@OutputDirectory
fun getOutputDir(): File {
return Paths.get("$generatedSourcesDir/generated").toFile()
return Paths.get("$generatedSourcesDir/generated/sources/dgs-codegen").toFile()
}

@OutputDirectory
fun getExampleOutputDir(): File {
return Paths.get("$generatedSourcesDir/generated-examples").toFile()
return Paths.get("$generatedSourcesDir/generated/sources/dgs-codegen-generated-examples").toFile()
}

@Input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class CodegenGradlePluginTest {
}

companion object {
const val EXPECTED_PATH = "src/test/resources/test-project/build/graphql/generated/com/netflix/testproject/graphql/types/"
const val EXPECTED_DEFAULT_PATH = "src/test/resources/test-project/build/generated/com/netflix/testproject/graphql/types/"
const val EXPECTED_PATH = "src/test/resources/test-project/build/graphql/generated/sources/dgs-codegen/com/netflix/testproject/graphql/types/"
const val EXPECTED_DEFAULT_PATH = "src/test/resources/test-project/build/generated/sources/dgs-codegen/com/netflix/testproject/graphql/types/"
}
}

0 comments on commit a7aded5

Please sign in to comment.