Skip to content

Commit cb8aa6f

Browse files
committed
Deprecate source features mojo and mark for removal
1 parent 8c9fdae commit cb8aa6f

2 files changed

Lines changed: 15 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: 11 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";
@@ -242,6 +250,9 @@ public void execute() throws MojoExecutionException, MojoFailureException {
242250
if (!PackagingType.TYPE_ECLIPSE_FEATURE.equals(project.getPackaging()) || skip) {
243251
return;
244252
}
253+
getLog().warn(
254+
"The tycho-source-plugin:feature-source is deprecated and will be removed in the next major release of Tycho!");
255+
getLog().warn("For more details visit: https://github.com/eclipse-tycho/tycho/blob/tycho-5.0.x/REMOVAL.MD");
245256
synchronized (LOCK) {
246257
try {
247258
Properties sourceFeatureTemplateProps = readSourceTemplateFeatureProperties();

0 commit comments

Comments
 (0)