Add test dependencies via target-platform-configuration.
This is the forward compatible way and the previous one used via
tycho-surefire-plugin configuration is no longer supported from Tycho
0.21 onwards.
This is prerequisite for updating the build to use Tycho 0.21.
Change-Id: I1f82a3833b3f08239dc2136f23fea95e83798284
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
diff --git a/xotcl/tests/org.eclipse.dltk.xotcl.core.tests/pom.xml b/xotcl/tests/org.eclipse.dltk.xotcl.core.tests/pom.xml
index fa1238f..95bf3cb 100644
--- a/xotcl/tests/org.eclipse.dltk.xotcl.core.tests/pom.xml
+++ b/xotcl/tests/org.eclipse.dltk.xotcl.core.tests/pom.xml
@@ -19,18 +19,28 @@
<configuration>
<testSuite>${project.artifactId}</testSuite>
<testClass>org.eclipse.dltk.xotcl.core.tests.AllTests</testClass>
- <dependencies>
- <dependency>
- <type>p2-installable-unit</type>
- <artifactId>org.eclipse.platform.feature.group</artifactId>
- </dependency>
- <dependency>
- <type>p2-installable-unit</type>
- <artifactId>org.eclipse.dltk.tcl.tcllib</artifactId>
- </dependency>
- </dependencies>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ <configuration>
+ <dependency-resolution>
+ <extraRequirements>
+ <requirement>
+ <type>eclipse-feature</type>
+ <id>org.eclipse.platform</id>
+ <versionRange>0.0.0</versionRange>
+ </requirement>
+ <requirement>
+ <type>eclipse-plugin</type>
+ <id>org.eclipse.dltk.tcl.tcllib</id>
+ <versionRange>0.0.0</versionRange>
+ </requirement>
+ </extraRequirements>
+ </dependency-resolution>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>