-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify xtextTooling dependency setup
Create the xtextTooling Configuration for each SourceSet right away rather than lazily. This makes it visible in the output of the `dependencies` task and allows users to easily customize it in their build scripts, e.g. when there is another issue like #187 Use lazy callback APIs like `eachDependency` (to align versions for Xtext itself) and `withDependencies` (to add the BOM when that Xtext version has one) instead of using the Gradle-interna LazilyInitializedFileCollection. Load all dependencies, including the Xtext languages into the xtextTooling Configuration so that all version numbers are aligned. Previously it was possible for the xtextLanguages Configuration to bring in incompatible versions of libraries like eclipse.core.resources, which was especially visible when trying to use Xcore with this plugin. Now everything is aligned with the Xtext BOM and/or our dependency resolution rules. Remove the complicated "classpathInferrer" logic in favor of this new approach. This also means that the Xtend plugin is now much simpler, since it only needs to add the xtend.core dependency to the xtextTooling Configurations and that version will automatically be aligned by our resolution rules. This raises the minimum Gradle version to 4.7, which seems very reasonable given that the latest is 7.2.
- Loading branch information
Showing
5 changed files
with
65 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
minimumXtextVersion = 2.9.0 | ||
latestXtextVersion = 2.25.0 | ||
minimumGradleVersion = 4.3 | ||
minimumGradleVersion = 4.7 | ||
latestGradleVersion = 7.2 | ||
systemProp.http.connectionTimeout=120000 | ||
systemProp.http.socketTimeout=120000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
xtext-gradle-plugin/src/main/java/org/xtext/gradle/tasks/XtextClasspathInferrer.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters