I have a multi-project configuration and I want to use gradle.
My projects are like this:
Project A
- ->
src/main/java
- ->
src/test/java
- ->
Project B
- ->
src/main/java
(depends onsrc/main/java
on Project A) - ->
src/test/java
(depends onsrc/test/java
on Project A)
- ->
My Project B build.gradle
file is like this:
apply plugin: 'java'
dependencies {
compile project(':ProjectA')
}
The task compileJava
work great but the compileTestJava
does not compile the test file from Project A.