Skip to main content
Jump to: navigation, search

Difference between revisions of "Tycho/Release Notes/0.22"

m
Line 70: Line 70:
 
* Resources copying and filtering:
 
* Resources copying and filtering:
 
** you can now include additonal resources such as <tt>index.html</tt> or <tt>about.html</tt> in p2 repositories([https://bugs.eclipse.org/bugs/show_bug.cgi?id=424691 <strike>bug 424691</strike>]). Just add files to <tt>src/main/resources</tt> in  <tt>eclipse-repository</tt> modules
 
** you can now include additonal resources such as <tt>index.html</tt> or <tt>about.html</tt> in p2 repositories([https://bugs.eclipse.org/bugs/show_bug.cgi?id=424691 <strike>bug 424691</strike>]). Just add files to <tt>src/main/resources</tt> in  <tt>eclipse-repository</tt> modules
** you can now use [http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html maven resource filtering] for eclipse-plugin resources in src/main/resources. For details on how to use it, see ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=383872#c9 bug 383872 comment 9])  and [https://hudson.eclipse.org/tycho/job/tycho-sitedocs/ws/target/staging/tycho-compiler-plugin/compile-mojo.html#copyResources site docs].  
+
** you can now use [http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html maven resource filtering] for eclipse-plugin resources in src/main/resources. For details on how to use it, see ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=383872#c9 bug 383872 comment 9])  and [https://hudson.eclipse.org/tycho/job/tycho-sitedocs/ws/target/staging/tycho-compiler-plugin/compile-mojo.html#copyResources site docs]
 +
** maven property expressions (like <tt>${project.version}</tt>) can now be used in [https://hudson.eclipse.org/tycho/job/tycho-sitedocs/ws/target/staging/BuildProperties.html <tt>build.properties</tt>] values
  
 
=== Test Execution ===
 
=== Test Execution ===

Revision as of 07:54, 20 November 2014

< Previous Version | Next Version >

Tycho 0.22.0 is currently under development. This page shows a preview of features which will be available in the 0.22.0 milestone.

SNAPSHOT builds

To try out the most recent snapshot build of 0.22.0, simply add the following snippet to your (parent) pom.xml, and set the property for the Tycho version (e.g. tycho-version) to 0.22.0-SNAPSHOT.

<pluginRepositories>
  <pluginRepository>
    <id>tycho-snapshots</id>
    <url>https://repo.eclipse.org/content/repositories/tycho-snapshots/</url>
  </pluginRepository>
</pluginRepositories>

SNAPSHOT site docs

Refer to the latest SNAPSHOT site docs for Tycho and Tycho Extras.

New and Noteworthy

Complete list of bug fixes and enhancements in 0.22.0

Compiler

  • You can now reuse project JDT compiler preferences .settings/org.eclipse.jdt.core.prefs by globally configuring
    <plugin>
      <groupId>org.eclipse.tycho</groupId>
      <artifactId>tycho-compiler-plugin</artifactId>
      <version>${tycho-version}</version>
      <configuration>
        <useProjectSettings>true</useProjectSettings>
      </configuration>
    </plugin>
    

    e.g. in your parent pom. This will warn but not fail if the preference file is not present. (bug 404633)

Target Platform & Dependency Resolution

  • (INCOMPATIBLE CHANGE) In case you specify multiple execution environment profiles in the Bundle-RequiredExecutionEnvironment manifest header, the profile used for the build may have changed. Tycho no longer attempts to find the "minimal" profile from the ones specified, but now uses the one specified first (bug 435313). See Execution Environments for details on the execution environment configuration and effects in the build.
  • Tycho now supports building bundles for the execution environments JavaSE/compact1-1.8, JavaSE/compact2-1.8, and JavaSE/compact3-1.8.
  • Tycho can now be configured to ignore the execution environment (as per Bundle-RequiredExecutionEnvironment manifest header) of the current bundle when resolving its dependencies (bug 435068) . If you configure
<plugin>
 <groupId>org.eclipse.tycho</groupId>
 <artifactId>target-platform-configuration</artifactId>
 <version>${tycho-version}</version>
 <configuration>
 <resolveWithExecutionEnvironmentConstraints>false</resolveWithExecutionEnvironmentConstraints>
 </configuration>
</plugin>

Tycho will use a combination of all known execution environments (providing the superset of all system packages) to resolve the bundle's dependencies.


Packaging

  • Resources copying and filtering:
    • you can now include additonal resources such as index.html or about.html in p2 repositories(bug 424691). Just add files to src/main/resources in eclipse-repository modules
    • you can now use maven resource filtering for eclipse-plugin resources in src/main/resources. For details on how to use it, see (bug 383872 comment 9) and site docs
    • maven property expressions (like ${project.version}) can now be used in build.properties values

Test Execution

  • Tycho Surefire was updated to use Maven Surefire version 2.17. This enabled us to consume the fix for long-standing (bug 369266)
  • Tycho Surefire can now be configured to use the JDK specified in the test bundle's Bundle-RequiredExecutionEnvironment to execute tests (as opposed to the currently running JDK) (bug 407500). See the site docs for details.

Other

  • The embedded OSGi runtime used by Tycho during build has been updated to use Equinox and p2 from the Mars M3 milestone (bug 444112)

Copyright © Eclipse Foundation, Inc. All Rights Reserved.