Gradle not producing class files


(ralphzak) #1

I have written two java files and a build.gradle file,

C:\crp\eewe\src\main\java\hello>type build.gradle apply plugin: ‘java’ C:\crp\eewe\src\main\java\hello>

I have run gradle build and it’s supposed to make class files. But it doesn’t.

I have included my output with comments here

http://pastebin.com/raw.php?i=tguRHtEy

Notice that within the build subdirectory, there’s a libs directory and a tmp directory but no classes directory there. and no class files. No reports directory either.


(Perryn Fowler) #2

don’t put your build.gradle file in src/main/java - you only want to put java source in there. Put your build.gradle in the root dir of your project (‘ewee’)