-
-
Notifications
You must be signed in to change notification settings - Fork 304
Gradle PluginManagement for Bnd Gradle Plugins
Gradle 5.1 and later provides a mechanism for managing plugins. Plugins are expected to be found in the Gradle plugin repository but if hosted in other repositories require some special handling.
Due to an issue publishing version 4.3.0 of the Bnd Gradle plugin it is necessary to declare a resolutionStrategy block within the pluginManagement block as follows, making sure to also specify the repository to look in:
pluginManagement {
resolutionStrategy {
eachPlugin {
if (requested.id.id == "biz.aQute.bnd.builder") {
useModule("biz.aQute.bnd:biz.aQute.bnd.gradle:4.3.0")
}
}
}
plugins {
id("biz.aQute.bnd.builder") version "4.3.0"
}
repositories {
mavenCentral()
gradlePluginPortal()
}
}The resolutionStrategy block is not needed for versions 4.3.1 and later, but you must include the repositories block with mavenCentral(). See https://github.com/bndtools/bnd/blob/master/biz.aQute.bnd.gradle/README.md#using-bnd-builder-gradle-plugin.
You may need to change the plugin id from biz.aQute.bnd.builder if you are using a different Bnd Gradle plugin.
Latest Releases
all versions
- 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