-
Notifications
You must be signed in to change notification settings - Fork 321
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
Migrate to latest commons-logging (currently 1.3.3) #3137
Migrate to latest commons-logging (currently 1.3.3) #3137
Conversation
there is still the copy-dependencies the wizard does in some configs that mentions the old name in excludeArtifactIds (IdeProjectDescriptor.xtend) + AbstractPluginProjectCreator also mentions it. as my team at work in decimated over the next weeks and after that i am on vacation myself i am not sure when we should bring it in. either immediately or right after the release |
override setEnabled(boolean enabled) { | ||
if (!enabled) | ||
throw new IllegalArgumentException("The runtime project is always enabled") | ||
super.enabled = enabled | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you undo the ws changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(you can run cliwizardintegrationtest as java main to update test expectations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot reproduce the test failure locally. And if I read the error message correct it looks like there is just an additional space between square brackets but I don't understand how this change influences that.
But I pushed an update where I removed the whitepace as requested.
... While typing this and thinking again. These whitespace changes probably caused the test-failures so they are hopefully fixed now.
Yes I saw these (templates for) pom.xml files, but since it is a configuration for the maven-dependency-plugin and the element is named Or does this mojo also consider the PDE dependencies injected by Tycho?
That's an import-package header value (at least the method name implies it:
I'm looking into this.
I think it also depends on how fast MWE2 is adjusted, but the commit on your branch looks good, I just have a one or two things that are missing. Do you want to create a PR in MWE2 for that? Then I can add my remarks. Or if we have something like suggested in eclipse-mwe/mwe#296 (comment), we can maybe completely remove the |
so this seems to be if you select tycho and language server |
about additional.bundles this wont work if you just create a project without any tycho. unfortunately there is no |
c5be99b
to
00ba972
Compare
Thinking about this again. Since I assume that mwe workflows will work with the old an new version of commons-logging (since it is just a plain old flat-classpath java app) I think this change is quite save. We don't even have to await the corresponding change for mwe2 since one could already now change existing the 'devlopment-bundles' of an xtext project and the workflow should still run. So once the execludedArtifacts in pom(templates) are correct, I'm for submitting this now. |
@cdietrich regarding the corresponding change in MWE2 are you fine if I take your commit to a separate branch add my changes and create a PR from it? |
Yes. What are the additions? |
The idea would be merge mwe |
See eclipse-mwe/mwe#298.
As you prefer. When is the mwe m2 planned? Couldn't we test it with a nightly build? This would make the cycle shorter. |
I can do mwe m2 it later today when home from hiking (there is no planned date as so far no changes ) |
Maybe you can build a branch of Xtext/xtext-reference-projeczs with your mwe and Xtext build results but I fear doing all the adjustments will be a lot |
Do you have some capacity to investigate fallout if there is any contra to my expectations |
Which project's are you exactly referring to when you say
It depends on when the fallout will happen and what the time-frame is to fix it.
Enjoy your hike :) |
Github.com/xtext/xtext-reference-projects there is launch to regenerate wizard projecte |
@HannesWell i am back home. |
Yes I'm fine with that. |
Mwe bump build is still running. Will merge once it is through |
@HannesWell mwe bump is in. Can you please rebase |
00ba972
to
454df49
Compare
Done. Thanks for the milestone and adjustments! |
ok. will create a branch for reference projects |
Regarding the IdeProjectDescriptor. |
hmmmm https://github.com/xtext/xtext-reference-projects/actions/runs/10332344902/job/28603464575 any idea? do we have to add it to extra requirements? https://github.com/xtext/xtext-reference-projects/blob/5718762516bc29e1af3374f4de322bc806cd9407/domainmodel/2.36.0/org.eclipse.xtext.example.domainmodel.releng/pom.xml#L110 why does the
|
Sorry installing my 'Balcony power plant' took longer than expected, but I'm back now.
That should not be necessary at all. Tycho should resolve the Are you sure the target-platform in use contains the new commons-logging artifact? |
it does but not explicitely. we removed it (explicit listings from domain model) with now using planner instead of slicer tycho bug? |
Ok the
The problem is, no IU listed in the TP seems to require the new version, but something pulls in the old So to solve this you can just add the corresponding IU to one of the locations. E.g.
A separate location is not necessary.
With the explanation above, I don't think so. Problem is that in general, Tycho, like PDE only resolves requirements of IUs listed in the target, but not extra requirements of the projects being built. Oomph targlets are different in that sense. You only have to specify a list of repos and get the full transitive dependency closure in your TP of the Plug-in projects in your workspace. |
In general you can also use multiple repositories in one location. Under the hood PDE/Tycho uses the repos of all locations when resolving IUs using the planner. It can be useful if you view the content of your TP and sort it by location, but for the overall TP content there is no difference if you have one location with all your IUs and repo-URLs listed or one location per repo. |
ok can you adapt your pr? |
Looks like its apache-httpclient
Sorry I don't understand what has to be adapted in this PR? |
That breaks if Orbit provides different bundles like commons logging with different names and transitive dependencies kick in, like in this case. I added that part some time ago; I see you already added the explicit dependency on the new |
@HannesWell |
and what depends on jgit? |
Adapt to the new Bundle-SymbolicName Fixes eclipse-xtext#3127 for Xtext
454df49
to
5eef4f7
Compare
so what is left is IdeProjectDescriptor |
Indeed, thanks.
In Xtext I believe nothing. My other guess is ECF on which P2 depends. I could invesitgate further, but in the end I think it is sufficient to assume that something requires the old commons.logging but nothing in the TP requires the new one.
Yes. The maven-dependency-plugin config. Btw. the build of the previous state succeeded.
I think this is still correct. P2/PDE/Tycho resolves the latest possible version of all requirements. And as long as something requires the 'old' commons-logging, either because of using the old-name and Require-Bundle or Import-Package with a version below 1.3 that old version is resolved (too). It can also be that both versions are resolved. If one cannot satisfies all requirements. It could of course also happen that the old one can serve all requirements and thus the new one is not resolved/used. |
jar tf org.xtext.example.mydsl.ide-1.0.0-SNAPSHOT-ls.jar | grep logging no idea how this works => propose to add the new bundle name and or commons-logging |
I seem to understand that the exclusion has not been updated so the jar is in the uber jar for the moment. |
guess we need
and
did not check the non shade variant yet |
The configuration already seems to be broken, to fix it I created a separate PR: You can notice the problem when looking into the |
thx @HannesWell |
Adapt to the new Bundle-SymbolicName in target-files, the
additional.bundles
required for development and defined inbuild.properties
and adjust the templates to generate the new name.Should fix #3127 for Xtext.