xcore-gradle-example | xcore-gradle-example | Plugin library
kandi X-RAY | xcore-gradle-example Summary
kandi X-RAY | xcore-gradle-example Summary
This project shows how to use Gradle with the xtext-gradle-plugin to generate Java code from an Xcore model.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Prints a user
xcore-gradle-example Key Features
xcore-gradle-example Examples and Code Snippets
Community Discussions
Trending Discussions on xcore-gradle-example
QUESTION
I am attempting to update an EMF/XCore project to newer versions to get around a versioning roadblock. Currently the repository that houses this project must target Gradle 4 and Bndtools 4.3 because of problems when targeting newer versions. I readily admit that a problem here is my lack of understanding of XText, XCore, and otherwise. Now I find myself on a machine without access to Java 8 which has forced an attempt to update the project settings if at all possible.
The last safe targets for this project were XText 2.16.0
and org.xtext.builder version 1.0.21
. The examples I have been able to locate match the settings of this project for the most part.
So now, attempting to run in a Gradle 6.3
environment with OpenJDK 13
(if the Java version is the issue that can be changed)...
Notes
- Some changes are based on researching solutions to my build problem and some comments are added
${mavenURL}
is currently pointing to Maven Central- I added the
compile platform()
line based on XText's Release notes. It does not seem to help this issue, though - I changed version numbers to match those found in the Maven BOM
- I have attempted various combinations of changing the
org.xtext.builder
version as well as targeting both EMF 2.21 and 2.20 - I have tried a lower XText version.
2.17.0
fails with a different issue
build.gradle
:
ANSWER
Answered 2020-Apr-27 at 19:46I received assistance from the folks working on the XText Gradle plug-in via https://github.com/xtext/xtext-gradle-plugin/issues/171.
The biggest issue is that src-gen
cannot exist on the classpath prior to execution of the generateXText
task. To assist with this updating the clean
task to remove the src-gen
folder is recommended. Additionally, the second 3 compile
dependencies should be xtextLanguages
dependencies.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install xcore-gradle-example
You can use xcore-gradle-example like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the xcore-gradle-example component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page