Manage plugin versions
Plugin version constraints allow you to limit which plugin versions can be used to generate SDKs for a repository. When plugins have bugs, breaking changes, or security vulnerabilities, constraints allow you to prevent consumers from depending on problematic SDKs.
How plugin constraints work
When you add constraints to a repository:
- SDK generation only uses plugin versions that satisfy all constraints.
- Package managers that support
latest
resolve to the newest version that meets your constraints.
Setting up plugin constraints
Navigate to your repository in the BSR and click the Settings icon at top-right.
Find Manage available plugin versions.
Click Add plugin constraint.
Search for and select the desired plugin.
Choose an operator and version based on your needs:
Operator When to use Example scenario >=
Enforce minimum version >= 2.1.0
when older versions lack required features!=
Block specific version != 1.4.2
to exclude a version with security issues<
Prevent newer versions < 3.0.0
when v3+ introduces incompatible changes>
Exclude older versions > 1.0.0
to block outdated 1.x versions==
Lock to exact version == 2.5.1
for strict version controlAdd additional combinations of operators and versions to suit your use case. Multiple conditions are combined using logical AND.
Click Save constraint when you're done.