groovy - Problems with java package names in Gradle build with IntelliJ IDEA -


i have gradle project , in have groovy , java classes @ same package. build works fine when import project in intelij 13 ide tells me in java files have wrong package names.

\src\main\groovy\com\example\boo\foo\problem.java 

with package

package com.example.boo.foo; 

and there no error with

\src\main\groovy\com\example\boo\foo\sample.groovy 

with package

package com.example.boo.foo 

how remove error?

you need make sure java code packaged under java , groovy code packaged under groovy. see example in screenshot below:

enter image description here


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -