-
-
Notifications
You must be signed in to change notification settings - Fork 303
Baselining
bnd has a facility to compare the a build version against a repo version of the jar, this is called baselining. The jars are compared for changes in their public API. If the new version does not match the semantic version rules for the API changes, then an error is reported with the details which package is in error.
You can setup baselining in the following way:
-baseline: *
-releaserepo: JPM
The -baseline header provides instructions that are matched against the jars build in the project. You can put this anywhere in the build chain (cnf, project, bnd descriptor). In general this field is set to *. There is a magic constant none that indicates an empty list (to override a setting in a higher level descriptor).
An instruction in the -baseline header can have attributes that are used if the instruction matches the bundle symbolic name. The following attributes are supported:
version The version to be baselined again
file A file path to baseline against
If no file nor version is specified then the last version from the repository is used, the so called target version. Errors are raised if the target version is higher than the current version.
The target jar is searched in the release repo. The default release repo is the first writable repo. This can be overridden with the -releaserepo macro. Since the release repo might be different than the baseline repo, if is possible to use another repo for the baseline with the -baselinerepo macro. For example, the following sets the baseline repo explicitly to the JPM repo.
-baselinerepo: JPM
Latest Releases
all versions
- 7.2.1 | 7.2.0
- 7.1.0 | 7.0.0
- 6.4.1 | 6.4.0 | 6.3.1 | 6.3.0
- 6.2.0 | 6.1.0 | 6.0.0
- 5.3.0 | 5.2.0 | 5.1.2 | 5.1.1
- 5.1.0 | 5.0.1 | 5.0.0
- 4.3.1 | 4.3.0 | 4.2.1 | 4.2.0
- 4.1.0 | 4.0.0
- 3.5.0 | 3.4.0 | 3.3.0 | 3.2.0
- 2.2.0
Gradle
- Plugin
- Build Customizations
- Builder & java-library
- Non-Workspace builds
- PluginManagement
- Using Kotlin
- Kotlin DSL jar config
- AntTasks
- Baselining [beta]
- Blurry Form Text on High-Resolution Displays
- Bnd toolchain parity table
- bnddistribute
- Buildpath Versions
- Conflict with M2E PDE Connector
- Eclipse Logging with Logback
- Hackathon June 2012
- Install bnd on the command line
- Is there a mailing list for bnd
- Launching Framework
- Multi-project build order
- Multi-release JAR support design discussion
- Plans wrt to enRoute
- Reading Eclipse project preferences in bnd
- Release Process
- Requirements for New Repository API
- Windows Locked Files
- WIP ideas ‐ bnd 8.0.0 breaking changes
- XML Attributes on Annotations
- [ant] Loading and Expanding Shared Headers or Properties