Last active
June 20, 2016 23:53
-
-
Save compwron/7838187 to your computer and use it in GitHub Desktop.
Set annotation processing to "on" when using gradle idea plugin (Intellij 12)
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
idea.module { | |
testSourceDirs += file('src/test/unit/java') | |
testSourceDirs += file('src/test/unit/resources') | |
excludeDirs += 'file://$MODULE_DIR$/src/main/webapp/node_modules' | |
} | |
idea.project { | |
ipr.withXml { provider -> | |
def node = provider.asNode() | |
def compilerConfig = node.component.find { it.'@name' == 'CompilerConfiguration'} | |
compilerConfig.annotationProcessing[0].'@enabled' = 'true' | |
} | |
} |
Neither of these solutions work for 15.
The earlier one updates the .ipr file correctly but intellij doesn't recognize the changed setting.
Any updates on how to do this?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is for 14: