Repository navigation
feat(mps-gradle-plugin)!: make setup resolve only external dependencies - #59
Open
sergej-koscejev wants to merge 3 commits into
Open
sergej-koscejev wants to merge 3 commits into
sergej-koscejev wants to merge 3 commits into
Conversation
setup no longer builds MPS projects that the project depends on. Their sources are expected to be added to the MPS project as project libraries. Instead of extracting the zips of other projects, Ant tasks use their artifacts directories directly: each project exposes the artifacts directories of its published main builds in a secondary variant of apiElements, and the Ant tasks receive their locations as artifacts.<directory name> properties.
sergej-koscejev
force-pushed
the
setup-external-only
branch
from
November 20, 2026 14:21
a852bb6 to
be24fb4
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
setuponly resolves external libraries now. Other projects of the build are expected to be in the MPS project as source project libraries, sosetupdoesn't build them. The Ant builds use the other projects' artifacts directories directly instead of extracting their zips.MPS-generated Ant scripts read the location of a dependency build project
Xfromartifacts.X, so build models need no extra macros, as long as the directory name matches the build project name (the usualbuild/artifacts/<name>).setupof included builds isn't wired; users add it by hand if needed.generateBuildScripts, otherRunAnttasks and mbeddr tasks are unchanged.Evidence
ProjectDependenciesTest::a(buildmain) →api(project(":b"))(buildbLibs) →api("com.example:ext:1.0@zip")Before (master): all three fail.
:a:setuptries to build:b(fails in:b:generateBuildScripts),generateMaingoes through:b:zip, and there are noartifacts.*properties.After: all three pass, together with the rest of
:mps-gradle-plugin:check(includingFullBuildTest, a real MPS build),checkApiCompatibilityandcheckReleaseVersions.Merge Danger
Blast Radius: consumers
Breaking for multi-project builds: libraries from other projects no longer appear in
build/dependencies. MPS build models or path variables that point there must be updated (or rely on theartifacts.*properties).