Skip to content
Peter Kirschner edited this page Nov 12, 2026 · 13 revisions

Release date: 2026-11-12 (see GitHub Release)

Final Release

Release Candidates

Changes

Overview

This release introduces significant improvements to Eclipse feature support on build paths, enhanced property conflict reporting, improved HTTP caching for 404 responses, and multiple quality-of-life enhancements.

Major Features

Eclipse Features on Build Paths

  • Added support for referencing Eclipse features in -buildpath, -testpath, -runpath, and -runbundles
  • Features are identified by the canonical clause syntax: org.eclipse.e4.rcp;version='4.40.0';type=org.eclipse.update.feature
  • Features expand to their member bundles from <plugin> and <includes> references
  • <requires> references are treated as dependencies, not members
  • Platform filtering respects osgi.os, osgi.ws, osgi.arch from -runproperties
  • Nested typed resources are supported with cycle detection
  • New Container.TYPE.TYPED_RESOURCE for generic typed resource support

Property Conflict Detection

  • New -propertyconflicts property to control duplicate property reporting
  • Supported values: off, warning, error
  • Detects duplicate property definitions and shadowed merged properties
  • Detailed diagnostics with file locations and occurrence tracking
  • Mergeable conflicts can use unique suffixed keys (e.g., -runvm.local, -runvm.extra)
  • Integration with -include resolution to catch shadowing from includes

Conditional Import Resolution

  • Added support for resolution:=conditional on Import-Package
  • Conditional imports from OSGi bundles are treated as normal imports
  • Conditional imports from non-OSGi jars are embedded rather than imported
  • Packages not found on classpath are treated as optional

HTTP Cache Improvements

  • Negative caching for 404 responses (HTTP_NOT_FOUND) of bnd's HTTPClient
  • Cache entries include .json metadata for 404 responses
  • Respects cache TTL for negative cache entries
  • Reduces unnecessary network requests for missing artifacts

Javac Release Option Support

  • New javac.release property for using javac --release flag
  • Automatically selects --release when source and target versions match
  • Prevents accidental use of newer platform APIs
  • Incompatible with javac.profile and bootclasspath options
  • Validates javac version compatibility

Improvements

Trusted Checksums: new strict-jar-only policy

In addition to checksumPolicy=strict introduced strict-only-jar which focuses just on the actual .jar file of the dependency without other classifiers (like sources, javadoc).

Note: This was done because the strict policy feature set is currently incomplete in this regard. The strict-policy currently can causes errors in Eclipse when bndtools tries to lookup the .sources for a dependency which also runs through the TrustedChecksum machinery. But the generator for the .checksums file, does not generate the checksums for such artifacts if they exist and also the lookup cannot handle classifiers for artifacts. This is a feature we plan to deliver in 7.6.0 and it was the main reason we introduced a "less" strict mode strict-jar-only which focuses only on the jar.

Rule of thumb: strict-jar-only is a good middle-ground between strict and lenient. strict is currently incomplete.

bndtools: faster Rebuilds in Eclipse with the new Rebuild Trigger Policy

The new Rebuild Trigger Policy with its option Optimized can make bndtools build faster. It prevents unnecessary cascading rebuilds in Bndtools Eclipse by preserving JAR timestamps when a rebuild produces an identical artifact or an unchanged exported API. This reduces build times by avoiding redundant rebuilds of downstream projects after changes that do not affect them. It is implemented via the JAR Lifecycle Listeners below.

image image

See https://bnd.bndtools.org/plugins/bndtools-rebuild-policy-plugin.html#rebuild-trigger-policy-bndtools-eclipse-plugin for more details.

JAR Lifecycle Listeners

  • New JarLifecycleListener plugin interface
  • beforeWrite() phase for pre-write metadata computation (digests, signatures)
  • afterWrite() phase for post-write actions (sidecar files, validation)
  • Shared context map between phases for data exchange
  • Useful for artifact signing, metadata generation, and validation

P2 Repository Enhancements

Allow explicit index filenames for P2 repositories

Behavioral impact by setup

Existing setup Before branch After branch
No location configured Creates cnf/cache/p2-<name>/index.xml.gz Same, because new default ends in /
Explicit path ending in / or \ Directory mode Same
Explicit path without separator, directory already exists Directory mode Same
Explicit path without separator, directory does not exist yet Directory mode Explicit index-file mode; behavior changes
Explicit path pointing to an existing file Fails because it was treated as a directory Works as explicit index file
Explicit custom index filename in a new parent directory Not supported Supported; bundles go beside the index
# reference a p2 repository with a given index file name
eclipse.p2.repository.4.40: \
    aQute.bnd.repository.p2.provider.P2Repository; \
        name     = 'Eclipse P2 Platform 4.40'; \
        url      = 'https://download.eclipse.org/eclipse/updates/4.40'; \
        location = '${.}/eclipse_4.40_platform_p2.index.xml.gz'

# re-use (and checkin) the created index from above to avoid future parsing time
eclipse.osgi.repository.4.40: \
    aQute.bnd.repository.osgi.OSGiRepository; \
        name      = 'Eclipse Platform 4.40'; \
        locations = '${fileuri;${.}/eclipse_4.40_platform_p2.index.xml.gz/index.xml.gz}'
  • Cache link collision prevention - feature links use .feature.jar suffix
  • Index enrichment with provenance attributes (bnd.relation, id, version, os/ws/arch)
  • Self-healing stale cache detection and re-indexing
  • Multi-namespace upload support for Sonatype Central Portal
  • Improved negative namespace detection

Bndtools UI

  • Support for Eclipse features in Build Path and Run Bundles panes
  • Canonical clause generation via drag-and-drop
  • Feature icon display in versioned clause label provider
  • Addition of archived template fragment support

Project Testing

  • Improved cleanup in test execution
  • ProjectLauncher cleanup on test preparation errors
  • Exception handling for test preparation failures
  • Proper resource cleanup in error scenarios

Dependency Updates

  • Updated GitHub Actions to latest versions
  • Updated step-security/harden-runner
  • Updated gradle/actions/setup-gradle
  • Updated actions/upload-artifact and actions/download-artifact
  • Updated ruby/setup-ruby
  • CodeQL actions to v4.38.3

Bug Fixes

General Fixes

  • Fixed CDI analysis closing shared inner JAR from -make recipe
  • Fixed duplicate directive removal in Jar.writeManifest() with warning
  • Fixed Require-Capability and Provide-Capability diff detection with different attribute orders
  • Fixed manifest content handling for multi-release builds
  • Fixed nested made JAR handling in Bundle-ClassPath
  • Fixed symbol/method compilation errors with BundleActivator
  • Fixed GPG signing script variable handling
  • Fixed sonatype-upload.sh multiple namespace handling
  • Fixed cleanup_jfrog_p2_repos workflow for comprehensive repository cleanup

Build System Fixes

  • Improved CI workflow split (canonical vs. other builds)
  • Fixed P2 repo upload for pull requests and branches
  • Added proper workspace directory cleanup in testing
  • Fixed symlink handling on non-Windows systems

API Changes

New Packages

  • aQute.bnd.service.JarLifecycleListener - JAR artifact lifecycle hooks

Modified Packages

  • aQute.bnd.build 4.7.1 → 4.8.0
    • Added Container.TYPE.TYPED_RESOURCE
    • Added Container.getMembers(Set<String>)
  • aQute.bnd.osgi.resource 5.1.0 → 5.2.0
    • Added CapReqBuilder.createIdentityRequirement(String, String, String)
  • aQute.bnd.service 4.10.0 → 4.11.0
    • Added RepositoryPlugin.getTypedResourceMembers(Container, Set<String>)
  • aQute.bnd.service.repository 1.7.0 → 1.8.0
    • Inherited getTypedResourceMembers from extended RepositoryPlugin
  • aQute.bnd.repository.p2.provider 1.6.0 → 1.7.0
  • aQute.p2.provider 1.0.0 → 1.1.0
  • aQute.lib.utf8properties 4.2.0 → 4.3.0
  • aQute.bnd.http 2.1.0 → 2.2.0
  • aQute.bnd.osgi 7.7.0 → 7.9.0
  • aQute.bnd.build.model 4.5.0 → 4.6.0
  • aQute.bnd.wstemplates 1.2.0 → 1.4.0

Documentation

New Documentation

  • Eclipse Features on -buildpath specification
  • Property Conflict tracking and reporting
  • JarLifecycleListener plugin interface
  • Conditional Import-Package support

Testing

New Test Coverage

  • FeatureBuildpathTest - Generic typed resource expansion
  • ProjectJavacTest - Javac release option handling
  • AnalyzerTest - Conditional and dynamic imports
  • FeatureBuildPathWizardSwtbotTest - UI feature selection
  • FeatureBuildPathDndSwtbotTest - Drag-and-drop feature support
  • DiffRequireCapabilityOrderTest - Capability order independence
  • ProcessorTest - Property conflict scenarios
  • MakeTest - Nested made JAR handling

Known Limitations

  • Wildcard clauses (bsn*) do not support the type attribute
  • version=hash lookups are not type-aware
  • Only P2Repository implements typed resource expansion for Eclipse features
  • Feature JAR itself never appears on paths (only member bundles)
  • Platform derivation does not use -runsystemcapabilities or -runblacklist
  • filter attribute on feature.xml elements is not modeled

Migration Guide

For Existing Projects

  1. Eclipse Features: If using features, update clauses to canonical syntax:

    • Old (unsupported): org.eclipse.e4.rcp:version=4.40.0
    • New (canonical): org.eclipse.e4.rcp;version='4.40.0';type=org.eclipse.update.feature
  2. Property Conflicts: Review and fix duplicate property definitions

    • Use -propertyconflicts: error to catch issues during build
    • Use unique suffixes for merged headers
  3. Conditional Imports: Verify intended behavior for packages with resolution:=conditional

    • OSGi bundle packages remain as imports
    • Non-OSGi jar packages are embedded

Commits

todo

Clone this wiki locally