Gradle reports BUILD SUCCESSFUL, however I cannot find the .class files
I am trying to use Gradle (for the first time) to build multiple java projects.
I created a settings.gradle file with all the project names. I am also creating a very simple build.gradle file. To my surprise, when I run Gradle build. It returns BUILD SUCCESSFUL. The boxes are created in the build \ libs folder. What puzzles me is that there are no .class files. Also I was unable to get any Junit results or xml output.
I am wondering if this is working correctly. This is my simplest build.gradle file so far. Any input is appreciated, thanks.
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse-wtp'
version = '1.0'
compileJava.destinationDir = file("$buildDir/output/classes")
repositories {
}
dependencies {
}
test {
testLogging {
exceptionFormat 'full'
events 'started', 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
}
}
jar {
manifest.attributes provider: 'gradle'
}
}
As requested, this is my project directory structure.
MainProject
build.gradle
settings.gradle
--SubProject1
---- CSI
--Subproject2
---- CSI
.
...
...
source to share
Make sure your subprojects are laid out according to the Java plugin defaults
(see section 23.4 Project Layout at http://www.gradle.org/docs/current/userguide/java_plugin.html )
or tell the plugin where you put things
(see section 23.4.1 Changing the project layout)
source to share