Jak dodać zasoby do zestawu źródłowego za pomocą gradle?

Obecnie mam następujący plik build.gradle:

apply plugin: 'java'

repositories {
    mavenCentral()
}

sourceSets {
    main {
        java {
            srcDir 'src/model'
        }
        resources {
            srcDir 'images/model' 
        }
    }

    test {
        java {
            srcDir 'tests/model'
        }
        resources {
            srcDir 'images/model' // <=== NOT WORKING
        }
    }
}

dependencies {
    compile files('libs/mnist-tools.jar', 'libs/gson-2.2.4.jar')
    runtime fileTree(dir: 'libs', include: '*.jar')

    testCompile group: 'junit', name: 'junit', version: '4.+'
}

Moje repozytorium, jeśli tutaj:https://github.com/quinnliu/WalnutiQ

a 4 z moich 49 testów zawodzą, ponieważ testy w folderze „testy / model” wymagają pliku w folderze „obrazy / model”. Jak prawidłowo dodać zasoby? Dzięki!

questionAnswers(2)

yourAnswerToTheQuestion