Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Add external Jar to Gradle Build in Eclipse(Problem adding external Jar)
Add external Jar to Gradle Build in Eclipse [message #1742498] Fri, 02 September 2016 12:31 Go to next message
tom KIRKHAM is currently offline tom KIRKHAMFriend
Messages: 16
Registered: August 2016
Junior Member
Hi All,

Following on from problems solved here https://www.eclipse.org/forums/index.php/m/1741670/#msg_1741670

I am now building my project with Gradle which is failing due to an external jar not being referenced. Within the Eclipse project I reference the jar and it corrects the errors in the IDE. I have also added this to my Gradle build

dependencies {
'C:/Users/tk78/.m2/repository/org/eclipse/emf/cdo_4.3.0/v20140520-1823', include: '*.jar')

However, I still get errors compiling code that reference classes in the CDO jar when running Gradle build.

Does anybody know the best way to get Gradle to use and external jar in the build process?

Thanks,
Tom
Re: Add external Jar to Gradle Build in Eclipse [message #1742499 is a reply to message #1742498] Fri, 02 September 2016 12:36 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13882
Registered: July 2009
Senior Member
You can simply add mavenCentral() to the repositories in the gradle build

And the reference the dependency by groupid artifactId and version


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Problem with scoping
Next Topic:Action during start of Xtext Project
Goto Forum:
  


Current Time: Tue Apr 13 20:58:10 GMT 2021

Powered by FUDForum. Page generated in 0.01849 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top