Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Modern Gradle Setup(Using the Gradle Plugin)
Modern Gradle Setup [message #1855270] Wed, 05 October 2022 14:14 Go to next message
Hristo Mihaylov is currently offline Hristo MihaylovFriend
Messages: 1
Registered: October 2022
Junior Member
Hello,

In my project we're using Xtext and Xtend. We have the following folder structure:

```
/build.gradle
/gradle.properties
/settings.gradle
pkg/cli/build.gradle (generates a JAR)
pkg/cli/src/Main.xtend (generates a JAR)
pkg/ide/build.gradle
pkg/root/build.gradle
pkg/root/DSL.myextension
pkg/root/src/*.xtend
```

Currently we generate the eclipse artifacts in the `ide` package. It is difficult to keep the process clean because gradle calls commands through maven, and maven calls gradle. I saw this gradle plugin - https://github.com/xtext/xtext-gradle-plugin which I think fits the bill and can help us drop our maven dependency completely and clean up our build process. However, my gradle skills are bad and I cannot find many projects using it or example setups on the website. Can someone provide me with an example that would build this project?

Regards,
Hristo
Re: Modern Gradle Setup [message #1855271 is a reply to message #1855270] Wed, 05 October 2022 14:43 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
the only one i know is
https://github.com/xtext/maven-xtext-example/tree/master/example-project-gradle


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Xtext 2.29.0.M1 is out
Next Topic:Create and configure instances
Goto Forum:
  


Current Time: Thu Apr 25 20:54:47 GMT 2024

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

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

Back to the top