• Intro Headers Instructions Macros
  • Fork me on GitHub
    • Release
    • Introduction
    • How to install bnd
    • Guided Tour
    • Guided Tour Workspace & Projects
    • Concepts
    • Best practices
    • Build
    • Generating JARs
    • Versioning
    • Baselining
    • Service Components
    • Metatype
    • Contracts
    • Manifest Annotations
    • Resolving Dependencies
    • Launching
    • Testing
    • Packaging Applications
    • Wrapping Libraries to OSGi Bundles
    • From the command line
    • For Developers
    • Plugins
    • Tools bound to bnd
    • File Format
    • Header Reference
    • Instruction
    • Instruction Index
    • Macro Reference
    • Command Reference
    • Plugins Reference
    • Settings
    • Errors
    • Warnings
    • Frequently Asked Questions
    Supported by OSGi enRoute
  • -baseline selector

    Baselining uses the previous revision of a project with a baseline bundle to detect any changes in semantic versioning using the rules of binary compatibility. The -baseline instruction enables baselining for one or more symbolic names, the instruction takes a selector as input. Each bundle that is being build is held against this selector and if it matches then it is baselined. The following example will baseline any bundle whose name starts with com.example..

    -baseline: com.example.*
    

    By default a bundle’s baseline is the revision with the highest version in the repositories. However, the baseline can also be set with a file or version attribute on the selector.

    • version – The target will be the bundle with the lowest version that is higher than the given version.
    • file – The target will be the given bundle. The file is relative to the project directory.

      -baseline com.example.foo;version=1.2, com.example.bar;file=foo-1.2.3.jar

    Detected violations of the semantic versioning are reported as errors.

    See baselining for more information.

    • Contact
    • Developers
    • More