Created
August 14, 2016 15:20
Idea gradle plugin workaround for kapt. This will create separate source root even if generated folder is excluded. For 2016.1+
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'kotlin' | |
kapt { | |
generateStubs = true | |
} | |
sourceSets { | |
generated.java { | |
srcDir file("build/generated/source/kapt/main") | |
} | |
main.java.srcDirs += generated.java.srcDirs | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should be deprecated so far, issue fixed in newer versions of idea