Fix visibility of generated sources directory to Kotlin compilation #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
You've created a nice plugin, thank you for your efforts.
I've been trying to use the generated Java sources from Kotlin. The Kotlin compiler did not see the generated sources directory and threw a lot of compilation errors at me. That's when I discovered that the logic of registering the generated sources directory is inside-out:
Wsdl2JavaTask
. To my insight, if Gradle did not configure the task, the plugin did not add the generated sources assrcDir
.sourcesOutputDir
of the plugin.The new way also causes the Kotlin compiler to recognize the generated sources directory as input and I compiled happily thereafter.
I'd be glad if you could integrate the patch and drop a new release.