Skip to content

Bump Xtext Gradle plugin to 5.0.0-m1 and prefer Xtend stubs in 2.46 projects - #587

Open
cdietrich wants to merge 2 commits into
masterfrom
bump-xtext-gradle-plugin-5.0.0-m1-prefer-xtend
Open

cdietrich wants to merge 2 commits into
masterfrom
bump-xtext-gradle-plugin-5.0.0-m1-prefer-xtend

Conversation

@cdietrich

Copy link
Copy Markdown
Member

Alternative to #586. In addition to the 5.0.0-m1 bump, both 2.46 MWE2 workflows set preferXtendStubs = true, so generated stubs are .xtend instead of .java.

Changes for greetings-gradle/2.46.0-J21 and greetings-gradle/2.46.0-J25:

  • plugin 4.0.0 → 5.0.0-m1
  • GenerateMyDsl.mwe2: preferXtendStubs = false → true
  • xtend.outputDir = file(...) for the 5.0 directory-property API

Generated stubs now land in src/main/java and src/main/xtend-gen as .xtend files (e.g. MyDslRuntimeModule.xtend, MyDslValidator.xtend, MyDslParsingTest.xtend).

Verified with ./gradlew clean build (Gradle 9.9.2) in both projects: BUILD SUCCESSFUL.

- Update both 2.46 reference projects (J21 and J25) to the 5.0.0-m1 milestone
- Set preferXtendStubs = true in both MWE2 workflows to generate Xtend stubs
- Set xtend.outputDir with file(), as required by the 5.0 directory property API
- Verified with ./gradlew clean build in both projects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant