Log4j2 Annotation getting errors from Intellij
<p>When using Log4j2 in Intellij for a groovy/gradle project, log shows up red as if the injection is not working. Gradle runs and builds but every file in IntelliJ shows errors which is annoying.</p>

<p>dependencies</p>

<pre><code>compile 'org.codehaus.groovy:groovy-all:2.4.4'
compile 'org.apache.logging.log4j:log4j-api:2.5'
compile 'org.apache.logging.log4j:log4j-core:2.5'
</code></pre>

<p>Source</p>

<pre><code>import groovy.util.logging.Log4j2
@Log4j2
class TestLog4j2 {
    public static void log(String message) {
        log.error(message)
</code></pre>

<p>log from log.error is displayed in red and displays error, cannot resolve symbol 'log'
The log4j2.xml file is in the classpath and works.
@Log4j and even @Slf4j both work
Using IntelliJ 15.03 Build IU-143.1821
Project is using Groovy 2.4.4 and Gradle 2.3 </p>

<p>Thoughts anyone?</p>