Skip to content

Commit

Permalink
Merge pull request #6441 from bndtools/6439-better-explain-the-implic…
Browse files Browse the repository at this point in the history
…ations-of--nouses-instruction

improve description of -nouses
  • Loading branch information
chrisrueger authored Jan 23, 2025
2 parents c986676 + b9ac0a5 commit dbc63d2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/_instructions/nouses.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ title: -nouses BOOLEAN
summary: Do not calculate uses directives on package exports or on capabilities.
---

Do not calculate the uses directive on package exports or on capabilities.
Do not calculate the [uses directive](https://docs.osgi.org/specification/osgi.core/8.0.0/framework.module.html#i3127019) on package exports or on capabilities, if set to _true_.
Default: _false_

For example:

-nouses: true


**Warning:**
Setting this flag to _true_ is rarely needed and can be **dangerous**. Without any _uses_ clause, all packages are treated as independent from each other. That means the OSGi resolver is free to wire these packages to different classloaders if used by a consumer (or its dependencies).

0 comments on commit dbc63d2

Please sign in to comment.