Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Generate artefacts with gradle(Example to integrate xtext 2.5 in a gradle build.)
Generate artefacts with gradle [message #1222442] Fri, 20 December 2013 12:34 Go to next message
Peter Fouquet is currently offline Peter FouquetFriend
Messages: 1
Registered: December 2013
Junior Member
Hi,
i'm looking for an example to integrate a artefact generation with xtext in a gradle build, for example the generation of the greetings in a textfile.

I've tried to integrate the xtext-maven-plugin with

dependencies {
compile 'org.eclipse.xtext:xtext-maven-plugin:2.5.0'
}
but got an exception
FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':xtext'.
> Could not find any version that matches org.eclipse.emf:org.eclipse.emf.codegen:[2.9.0,).
Required by:
:xtextExample:unspecified > org.eclipse.xtext:xtext-maven-plugin:2.5.0 > org.eclipse.xtext:org.eclipse.xtext.build
er.standalone:2.5.0
:xtextExample:unspecified > org.eclipse.xtext:xtext-maven-plugin:2.5.0 > org.eclipse.xtext:org.eclipse.xtext.build
er.standalone:2.5.0 > org.eclipse.xtext:org.eclipse.xtext.xbase:2.5.0
:xtextExample:unspecified > org.eclipse.xtext:xtext-maven-plugin:2.5.0 > org.eclipse.xtext:org.eclipse.xtext.xtext
:2.5.0 > org.eclipse.xtext:org.eclipse.xtext.common.types:2.5.0

Kind regards
Peter
Re: Generate artefacts with gradle [message #1222531 is a reply to message #1222442] Fri, 20 December 2013 17:37 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

which repository do you use. it seems to work nice on my machine (using maven instead of gradle)
http://search.maven.org/#artifactdetails%7Corg.eclipse.emf%7Corg.eclipse.emf.codegen%7C2.9.0-v20130902-0605%7Cjar


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Generate artefacts with gradle [message #1222543 is a reply to message #1222531] Fri, 20 December 2013 18:26 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
I just saw that i have configured https://oss.sonatype.org/content/repositories/snapshots too
the metadata in central seem to be broken
can you please file a bug


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Generate artefacts with gradle [message #1222545 is a reply to message #1222543] Fri, 20 December 2013 18:30 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hmm had just a look at the logs

http://repo.maven.apache.org/maven2/org/eclipse/emf/org.eclipse.emf.codegen/2.9.0-v20130902-0605/org.eclipse.emf.codegen-2.9.0-v20130902-0605.jar (282 KB at 627.1 KB/sec)

it seems that it takes this one. so it seems to be fine anyway.
but the file does not seem to contain metadata
maybe gradle cannot handle this


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Fri, 20 December 2013 18:32]

Report message to a moderator

Previous Topic:Why does ClusteringBuilderState.writeNewResourceDescriptions copies computed IResourceDescription ?
Next Topic:Problems view not refreshed after generating java class from text model
Goto Forum:
  


Current Time: Thu Apr 25 08:55:57 GMT 2024

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

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

Back to the top