Skip to main content
Jump to: navigation, search

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

m
Line 5: Line 5:
 
<div id="versionNav" class="alert alert-small alert-warning">[[Tycho/Release Notes/0.23|&lt; Previous Version]] | Next Version &gt;</div>  
 
<div id="versionNav" class="alert alert-small alert-warning">[[Tycho/Release Notes/0.23|&lt; Previous Version]] | Next Version &gt;</div>  
  
== SNAPSHOT builds ==
+
== Staged release ==
  
Tycho 0.24.0 is currently in development. To try out the most recent snapshot build of 0.24.0, simply add the following snippet to your (parent) pom.xml or settings.xml, and set the property for the Tycho version (e.g. <tt>tycho-version</tt>) to <tt>0.24.0-SNAPSHOT</tt>.
+
Tycho 0.24.0 is currently staged for release. To try it out, simply add the following snippet to your (parent) pom.xml or settings.xml, and set the property for the Tycho version (e.g. <tt>tycho-version</tt>) to <tt>0.24.0</tt>.
 
 
 
<pre>
 
<pre>
 
<pluginRepositories>
 
<pluginRepositories>
 
   <pluginRepository>
 
   <pluginRepository>
     <id>tycho-snapshots</id>
+
     <id>tycho-0.24.0-staged</id>
     <url>https://repo.eclipse.org/content/repositories/tycho-snapshots/</url>
+
     <url>https://oss.sonatype.org/content/repositories/orgeclipsetycho-1028/</url>
 
   </pluginRepository>
 
   </pluginRepository>
 
</pluginRepositories>
 
</pluginRepositories>
 
</pre>
 
</pre>
 
=== SNAPSHOT site docs ===
 
 
Refer to the [https://hudson.eclipse.org/tycho/job/tycho-sitedocs/ws/target/staging/index.html latest SNAPSHOT site docs for Tycho] and [https://hudson.eclipse.org/tycho/job/tycho.extras-sitedocs/ws/target/staging/index.html Tycho Extras].
 
  
 
== New and Noteworthy ==
 
== New and Noteworthy ==
Line 37: Line 33:
 
     <groupId>org.eclipse.tycho.extras</groupId>
 
     <groupId>org.eclipse.tycho.extras</groupId>
 
     <artifactId>tycho-pomless</artifactId>
 
     <artifactId>tycho-pomless</artifactId>
     <version>0.24.0-SNAPSHOT</version>
+
     <version>0.24.0</version>
 
   </extension>
 
   </extension>
 
</extensions>
 
</extensions>
</pre>
 
** If testing a SNAPSHOT of Tycho, add the SNAPSHOT build repository to your <tt>~/.m2/settings.xml</tt>:
 
<pre>
 
<settings>
 
  ...
 
  <profiles>
 
    <profile>
 
      <id>tycho-snapshots</id>
 
      <pluginRepositories>
 
        <pluginRepository>
 
          <id>tycho-snapshots</id>
 
          <url>https://repo.eclipse.org/content/repositories/tycho-snapshots/</url>
 
        </pluginRepository>
 
      </pluginRepositories>
 
  </profile>
 
  </profiles>
 
  <activeProfiles>
 
    <activeProfile>tycho-snapshots</activeProfile>
 
  </activeProfiles>
 
  ...
 
</settings>
 
 
</pre>
 
</pre>
 
** The parent pom for features and plugins must reside in the parent directory
 
** The parent pom for features and plugins must reside in the parent directory

Revision as of 08:20, 23 October 2015

< Previous Version | Next Version >

Staged release

Tycho 0.24.0 is currently staged for release. To try it out, simply add the following snippet to your (parent) pom.xml or settings.xml, and set the property for the Tycho version (e.g. tycho-version) to 0.24.0.

<pluginRepositories>
   <pluginRepository>
     <id>tycho-0.24.0-staged</id>
     <url>https://oss.sonatype.org/content/repositories/orgeclipsetycho-1028/</url>
   </pluginRepository>
</pluginRepositories>

New and Noteworthy

Complete list of bug fixes and enhancements in 0.24.0

POM-less Tycho builds

<?xml version="1.0" encoding="UTF-8"?>
<extensions>
  <extension>
    <groupId>org.eclipse.tycho.extras</groupId>
    <artifactId>tycho-pomless</artifactId>
    <version>0.24.0</version>
  </extension>
</extensions>
    • The parent pom for features and plugins must reside in the parent directory
    • features and plugins do not require pom.xml anymore. If no pom.xml is provided, the maven project model is derived as follows:
      • groupId: inherited from parent
      • arifactId: Bundle-SymbolicName from META-INF/MANIFEST.MF or feature id from feature.xml
      • version: Bundle-Version from META-INF/MANIFEST.MF or feature version from feature.xml (with .qualifier suffix replaced by -SNAPSHOT)
      • packaging:
        • eclipse-plugin if META-INF/MANIFEST.MF found
        • eclipse-feature if feature.xml found
        • eclipse-test-plugin if Bundle-SymbolicName ending with .tests found in META-INF/MANIFEST.MF
    • At minimum a parent (and aggregator) pom is still required which configures Tycho, the modules to build, the p2 repositories used etc. as this cannot be derived from feature.xml or MANIFEST.MF
    • you can still use pom.xml for plugins and features in case you want to configure more than the above defaults
    • See the sample build used by the integration tests

compare-version-with-baselines mojo

org.eclipse.tycho.extras:tycho-p2-extras-plugin plugin features a new compare-version-with-baselines mojo that allows to verify that the version of the just-build artifacts doesn't break some basic rules of OSGi versioning. It will make the build of your artifact fail if:

  • artifact has lower version than what exists in baseline
  • artifact has same major.minor.micro version than what exists in baseline
  • artifact has same fully qualified (major.minor.micro.qualifier version) than what exists in baseline, but with different binary content.

This is used in order to guarantee necessary version bumps have been applied, and this is compliant with the Tycho/Reproducible Version Qualifiers strategy.

See IT tests for an example of usage.

Back to the top