Skip to content

Conversation

@merks
Copy link
Contributor

@merks merks commented Jun 6, 2025

No description provided.

@merks
Copy link
Contributor Author

merks commented Jun 6, 2025

With the modern target platform support (tell PDE to include sources in the TP) and with modern Tycho builds (tell Tycho to installer source bundles into the product) source features are effectively useless. Better to remove them and lighten the load.

FYI @akurtakov @iloveeclipse

@iloveeclipse
Copy link
Member

Ed, I'm not fully understand the implication of your proposal.
Does it mean, SDK will be built without sources?

@merks
Copy link
Contributor Author

merks commented Jun 6, 2025

Ed, I'm not fully understand the implication of your proposal. Does it mean, SDK will be built without sources?

I'm glad you ask. 😁 I would have been disappointed if you did not express the desire to understand this fully!

See below. When you added the three new JDT features, you didn't add the corresponding *.source for them. But in the SDK product, you see that the source bundle is installed.

image

So as I understand it @laeubi has made Tycho support installing all corresponding source bundles even when there is no source feature specified to do that. This is why we've been able to move away from including 3ird party bundles from features.

So the only things that disappear are the .source features themselves:

image

And I will strongly assert that these things are almost completely useless. Because who would want to install such a feature in product. Who would want to add a dependency to such a feature anywhere? No one...

@iloveeclipse
Copy link
Member

Thanks Ed for explanation. With that, assuming all the source bundles will be still there in SDK build, I have no objections.

@merks merks merged commit fe63006 into eclipse-platform:master Jun 6, 2025
6 checks passed
@merks merks deleted the pr-sdk-source-feature-removal branch June 6, 2025 14:43
@merks
Copy link
Contributor Author

merks commented Jun 7, 2025

Also related:

eclipse-pde/eclipse.pde#1806

merks added a commit to merks/eclipse.pde that referenced this pull request Jun 7, 2025
merks added a commit to eclipse-pde/eclipse.pde that referenced this pull request Jun 7, 2025
HannesWell added a commit to HannesWell/eclipse.platform.releng.aggregator that referenced this pull request Jun 7, 2025
Source features are not needed anymore at all (the TP is configured to
automatically include sources), now that the eclipse.sdk feature does
not include source features explicitly anymore:
- eclipse-platform#3100

Follow-up on
- eclipse-platform#2777
@HannesWell
Copy link
Member

Thanks Ed for this change, it seems to be a follow-up on #2777 (comment) and will also enabled further clean-up of the SDK target.

I want to add, that in a target-file one can also specify includeSource="true" for IU-locations to include sources automatically, if they are available.

Furthermore PDE is about to get a new marker that tools like Tycho can use to add all sources in a feature automatically:

And I will strongly assert that these things are almost completely useless. Because who would want to install such a feature in product. Who would want to add a dependency to such a feature anywhere? No one...

Agree. If we don't use the source-features at all, we could also stop generating them in the build. On the other hand some might have referenced them explicitly and might be worried. They could just remove these references, but it's also not much work for us to provide source features.

sderazo pushed a commit to JoseRodriguez26/CodedayPDEJ that referenced this pull request Aug 13, 2025
trancexpress pushed a commit to trancexpress/eclipse.pde that referenced this pull request Nov 10, 2025
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