I use intellij idea with gradle : (the folder is aready marked as a resource folder, i guess you can see everything in the screenshot)

Here is my build.gradle file :
plugins {
id 'java'
}
group 'me.lxct'
version 'Unreleased'
sourceCompatibility = 1.8
jar {
from 'src/resources', {
include '*'
}
}
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile 'de.gurkenlabs:litiengine:0.4.17'
}
It works only with Resources.images().get("src/resources/images/icon.png");
, i really don't know why it takes only the main folder file as the resource folder