Skip to content

Commit 0cd4787

Browse files
committed
Deprecate source features mojo and mark for removal
1 parent e81a560 commit 0cd4787

2 files changed

Lines changed: 12 additions & 16 deletions

File tree

REMOVAL.MD

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
1-
## List of removals for next major version of tycho
1+
# List of removals for next major version of tycho
22

3-
# the plugin 'tycho-extras/tycho-source-feature-plugin' should be removed on next major release
3+
## the mojo 'tycho-source-plugin:feature-source' should be removed on next major release
44

5-
replaced by core tycho-source
6-
7-
# org.eclipse.tycho.PackagingType.TYPE_ECLIPSE_REPOSITORY and org.eclipse.tycho.PackagingType.TYPE_ECLIPSE_UPDATE_SITE and corresponding mojos
8-
9-
The packagetypes ECLIPSE_REPOSITORY+ECLIPSE_UPDATE_SITE are deprecated for a long time and should be removed, corresponding mojos and code should be dropped also
10-
11-
# drop "fixSWT"
12-
13-
We should simply drop this as the depending bug has be resolved for more than 5 years:
14-
https://bugs.eclipse.org/bugs/show_bug.cgi?id=381167
15-
16-
# drop org.eclipse.tycho.plugins.p2.publisher.PublishProductMojo.flavor
17-
18-
It is marked deprecated for a long time now and should be removed. removal will be backward compatible if this setting is not used.
5+
Source features are used for a long time to include sources in development environments but they where always brittle to use and badly integrated. As nowadays Tycho/P2 offers better ways to archive similar,
6+
the automatic generation of such features is deprecated and will be removed on the next release. In cases where this is still required, one should replace it with an explicitly maintained source feature in a dedicated module.

tycho-source-plugin/src/main/java/org/eclipse/tycho/source/SourceFeatureMojo.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,17 @@
9090
* feature jar. Especially, if file <code>sourceTemplateFeature/feature.properties</code> is found,
9191
* values in this file override values of respective keys in
9292
* <code>&lt;originalFeature&gt;/feature.properties</code>.
93+
*
94+
* @deprecated Source features are used for a long time to include sources in development
95+
* environments but they where always brittle to use and badly integrated. As nowadays
96+
* Tycho/P2 offers better ways to archive similar, the automatic generation of such
97+
* features is deprecated and will be removed on the next release. In cases where this
98+
* is still required, one should replace it with an explicitly maintained source feature
99+
* in a dedicated module.
93100
*
94101
*/
95102
@Mojo(name = SourceFeatureMojo.GOAL, defaultPhase = LifecyclePhase.PACKAGE, threadSafe = true)
103+
@Deprecated(forRemoval = true)
96104
public class SourceFeatureMojo extends AbstractMojo {
97105

98106
static final String GOAL = "feature-source";

0 commit comments

Comments
 (0)