gradle build error
Hi. I am new to gradle but I thought would have been enough make a symbolic link called "gradle" to build stuff like I do with maven. Instead:
Either having oir not having a "gradle" command configured as a symbolic link to gradle 0.9-rc2, either having or not GRADLE_HOME pointing to actual gradle home.
How is this supposed to work?
Launching just "gradle build" gives me this other error:
* What went wrong:
Could not compile build file '/media/Storage/source/spring-social/build.gradle'.
Cause: startup failed:
build_gradle_739ed856fc98ad69c614b159b87950cd: 16: unable to resolve class org.springframework.build.Version
@ line 16, column 2.
The nice thing about using the gradlew script that comes with the project is that you won't need to have Gradle already installed. That script will take care of getting Gradle for itself. (The idea is that a user isn't forced to download/install Gradle to build a Gradle-built project.)
That said, there's still a little bit of setup you'll need to do to build the project. The build depends on some build code in a submodule that is shared among other Spring projects. Per the readme.txt file you are supposed to clone the Spring Social repository with a --recursive switch to get both Spring Social and the submodules. Of course, that information comes too late if you're reading the readme.txt file after cloning without the --recursive switch.
So, to get the submodule, do this from the cloned Spring Social project folder:
git submodule update --init
That will pull the submodule into a folder called buildSrc. At that point, ./gradlew should work fine.
I've updated the readme.txt file with these directions.