From b9ac0a5fbe9534fe1afca0679e8349ab0af473ec Mon Sep 17 00:00:00 2001 From: Christoph Rueger Date: Thu, 23 Jan 2025 15:54:33 +0100 Subject: [PATCH] improve description of -nouses Signed-off-by: Christoph Rueger --- docs/_instructions/nouses.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/_instructions/nouses.md b/docs/_instructions/nouses.md index 0a08e62223..d7f65d768e 100644 --- a/docs/_instructions/nouses.md +++ b/docs/_instructions/nouses.md @@ -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). \ No newline at end of file