Who facilitates, that any file from resources
subdirectory from source set is copied to resources folder of build directory?
I have created simple Gradle project inside IntelliJ and have configured additional source root called demo
:
build.gradle
is follows:
group 'net.inthemoon.tests'
version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.5
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
}
sourceSets {
demo
}
Then I placed simple text files into rerources
directories of both sets.
After that I noticed, that highlighted file (one from demo
source set) appears only if I run build from IntelliJ. If I run build
goal from Gradle, only second file (from main
source set) appears.
How to configure gradle to process all files from all source sets?