Hello,
I am trying to build a gradle project using sublime default gradle build system.
I have run gradle init. When I run "gradle build’ from the command line, the build succeeds so to speak. I have an intentional compile error, and when I run from command line, it compiles and fails on the error, properly noting the line number.
I have my sublime-project file in the same directory as my gradle.build file, which is the project root directory.
When I run “Build With: Gradle” from the command palette in Sublime the build succeeds. So it must not be acutally compiling my java code.
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar UP-TO-DATE
:assemble UP-TO-DATE
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:check UP-TO-DATE
:build UP-TO-DATE
BUILD SUCCESSFUL
Total time: 1.673 secs
This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.10/userguide/gradle_daemon.html
[Finished in 2.0s]
What am I missing here?
EDIT:
What I was missing was that my sublime-project file was not actually saved to the proper root project directory.