Ошибка при компилировании

Версия Minecraft
1.7.10
35
1
10
error: strings in switch are not supported in -source 1.6
switch (particleName){
^
(use -source 7 or higher to enable strings in switch)
В Эклипсе же все нормально.
 
7,099
324
1,510
Компиль с совместимостью с java 8
Gradle (Groovy):
sourceCompatibility = targetCompatibility = '1.8'
compileJava {
    sourceCompatibility = targetCompatibility = '1.8'
}
 
Сверху