Kotlin/kotlin-examples

Code Generation Sample Gradle

naturalwarren opened this issue · 1 comments

In the kotlin-code-generation example project I noticed these lines are present in the consuming module's build.gradle. Are these strictly required? Can they be removed?

I think they're a relic of an older version of kapt but wanted to double check.

module {
        sourceDirs += files('build/generated/source/kapt/main', 'build/generated/source/kaptKotlin/main')
        generatedSourceDirs += files('build/generated/source/kapt/main', 'build/generated/source/kaptKotlin/main')
    }

https://github.com/JetBrains/kotlin-examples/blob/master/gradle/kotlin-code-generation/example/build.gradle