Re: [stardog-users] Error on building groovy for stardog with gradle on Ubuntu

0 views
Skip to first unread message

Al Baker

unread,
Jun 12, 2013, 10:05:29 AM6/12/13
to sta...@clarkparsia.com
Hi Alex,

I use Gradle 1.5 at the moment.  The easiest way to setup a development environment is to use GVM (Groovy environment manager, similar to RVM) [1] or the Groovy & Grails Tool Suite [2].

Assuming 1, then:
   curl -s get.gvmtool.net | bash
   gvm install gradle 1.5

stardog-groovy does have a dependency on stardog-spring, so you'll want that jar in your stardog-1.x/lib folder as well. 

Make sure to edit the stardogLocation variable in both build.gradles to point to your stardog/lib folder.

When Stardog 2.0 is released this summer, both these projects will have their dependencies changed from the sweeping usage of "fileTree" on the stardog lib folder to pulling down the Maven dependencies of the new open sourced client.  I'll also include the Gradle wrapper when that happens so you'll be able to gradlew build and get everything in one shot.  For now, it's a little more complicated.

For your convenience I've attached both jars. 

[1]: http://gvmtool.net/
[2]: http://grails.org/products/ggts

Regards,
Al Baker



On 6/12/13 9:54 AM, Alexandru Bolboaca wrote:
I ran gradle build and got the following error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileGroovy'.
Cause: groovy/util/AntBuilder
Cause: groovy.util.AntBuilder

I searched on the web and found that there's a dependency on groovy-ant plugin.

I see a few possibilities:
  • I'm not using the right version of gradle. Which is the right one to use? (couldn't find it in the docs)
  • I need to install some more things
  • The dependency is missing (unlikely, others would have same problem)

Can anyone help?


Thanks,

Alex

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
 
 

stardog-groovy-1.2.3.jar
stardog-spring-1.2.3.jar

Alexandru Bolboaca

unread,
Jun 13, 2013, 4:57:41 AM6/13/13
to sta...@clarkparsia.com
Thank you. I got the jars, I'm now struggling to make them work with grails.

It would be nice if the binary versions were available somewhere on the website, for fast prototyping.

Alex

Alexandru Bolboaca

unread,
Jun 17, 2013, 9:30:08 AM6/17/13
to sta...@clarkparsia.com
Hi Al,

Do the 1.2.3 versions of these jars work with stardog 1.2.1?

Thanks,
Alex

Al Baker

unread,
Jun 17, 2013, 9:32:32 AM6/17/13
to sta...@clarkparsia.com
Hi Alex,

The open source projects (spring, groovy, stardog.js) will work with any version of Stardog, generally. So if you have a stardog-spring-1.2.1.jar built from 1.2.1, you do not need to re-compile it for 1.2.3 or any subsequent release. The Spring and Groovy jars will only change in compatibility when the SNARL API in Stardog changes, and that is not often and almost always backwards compatible unless otherwise noted in the release notes.

Regards,
Al
Reply all
Reply to author
Forward
0 new messages