Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

platform artifact without mps-extensions #2204

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

coolya
Copy link
Collaborator

@coolya coolya commented Oct 18, 2021

build: add separate platform artifact

Added a new artifact to the mbeddr platform that doesn't repackage
mps-extensions. It exposes the dependency to mps-extensions via the pom.
This allows consumers of the artefact to decided which mps-extensions
version they would like to use.

This change breaks existing build scripts because of the new MPS build
solution that does only build the mbeddr platform. To fix this open the
build script in MPS and press F5 to fix all the references.

The artefact that repackaged mps-extensions is still present and remains
untouched. Down stream projects do not need to change their gradle scripts.

@sergej-koscejev
Copy link
Member

Looks good but the breaking change is unfortunate. Since most projects are currently using 2020.3, can we copy the relevant parts in 2020.3 so that it remains compatible, and apply the breaking change to 2021.1 only?

@coolya
Copy link
Collaborator Author

coolya commented Oct 19, 2021

Looks good but the breaking change is unfortunate. Since most projects are currently using 2020.3, can we copy the relevant parts in 2020.3 so that it remains compatible, and apply the breaking change to 2021.1 only?

I tried that first but got a bunch of "module visible from x and y" errors. I didn't investigate further why. I can take another look at this later. For me there is no urgent pressure right now to port this back to 2020.3. My initial problem with mps-extensions is fixed for now. Might be better to just to it in 2021.1 then and projects get change when they do the migration.

@sergej-koscejev
Copy link
Member

Let's do it in 2021.1 only then.

@coolya coolya changed the base branch from maintenance/mps20203 to master February 15, 2022 14:48
@coolya
Copy link
Collaborator Author

coolya commented Feb 15, 2022

Sorry for the huge delay I only got around working on this now. I rebased the changes onto master and changed the target branch.

Copy link
Member

@sergej-koscejev sergej-koscejev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I would perhaps add publishMbeddrPlatformSlimPublicationToMavenLocal to publishMbeddrPlatformToLocal task on line 129.

Added a new artifact to the mbeddr platform that doesn't repackage
mps-extensions. It exposes the dependency to mps-extensions via the pom.
This allows consumers of the artefact to decided which mps-extensions
version they would like to use.

This change breaks existing build scripts because of the new MPS build
solution that does only build the mbeddr platform. To fix this open the
build script in MPS and press F5 to fix all the references.

The artefact that repackaged mps-extensions is still present and remains
untouched. Down stream projects do not need to change their gradle scripts.
@alexanderpann
Copy link
Member

@sergej-koscejev do we still want this PR to be merged?

@sergej-koscejev
Copy link
Member

@sergej-koscejev do we still want this PR to be merged?

Yes. I think we may want to revisit the names later (I would make the "slim" artifact the default and have a qualifier for the "fat" one: -bundled, -all, or something like that) but I think we can merge it to move forward.

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.

3 participants