You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This approach works to include the plugin JARs into the distribution and to put them on the runtime classpath of the application when running it via the start scripts generated by Gradle's Application Plugin.
I'd expect that the same approach also works when compiling the CLI frontend to a Native Image, but the created binary does not seems to include / ship with any of the plugins.
Observe that only the root command's help is shown, but that no subcommands are available:
Usage: ort [<options>]
Options:
-c, --config=<value> The path to a configuration file. (default: /home/sebastian/.ort/config/config.yml)
--error, --warn, --info, --debug Set the verbosity level of log output. (default: WARN)
--stacktrace Print out the stacktrace for all exceptions.
-P=<value> Override a key-value pair in the configuration file. For example: -P
ort.scanner.storages.postgres.connection.schema=testSchema
--help-all Display help for all subcommands.
--generate-completion=(bash|zsh|fish)
-v, --version Show the version and exit.
-h, --help Show this message and exit
• denotes required options.
Expected behavior
The same output as for running via the Application Plugin's start scripts is shown:
Execute ./gradlew :cli:installDist.
Run ./cli/build/install/ort/bin/ort --help.
Observe that help for subcommands is shown:
Usage: ort [<options>] <command> [<args>]...
Options:
-c, --config=<value> The path to a configuration file. (default: /home/sebastian/.ort/config/config.yml)
--error, --warn, --info, --debug Set the verbosity level of log output. (default: WARN)
--stacktrace Print out the stacktrace for all exceptions.
-P=<value> Override a key-value pair in the configuration file. For example: -P
ort.scanner.storages.postgres.connection.schema=testSchema
--help-all Display help for all subcommands.
--generate-completion=(bash|zsh|fish)
-v, --version Show the version and exit.
-h, --help Show this message and exit
Commands:
advise Check dependencies for security vulnerabilities.
analyze Determine dependencies of a software project.
compare Compare two ORT results with various methods.
config Show different ORT configurations.
download Fetch source code from a remote location.
evaluate Evaluate ORT result files against policy rules.
migrate Assist with migrating ORT configuration to newer ORT versions.
notify Create notifications based on an ORT result.
report Present Analyzer, Scanner and Evaluator results in various formats.
requirements Check for the command line tools required by ORT.
scan Run external license / copyright scanners.
upload-curations Upload ORT package curations to ClearlyDefined.
upload-result-to-postgres Upload an ORT result to a PostgreSQL database.
upload-result-to-sw360 Upload an ORT result to SW360.
• denotes required options.
System Info (please complete the following information):
OS: Fedora Linux 38
GraalVM Version: 21.0.1+12-jvmci-23.1-b22
Java Version: 20
Plugin version: native-gradle-plugin:0.9.28
The text was updated successfully, but these errors were encountered:
Describe the bug
In our ORT project we use Gradle's Java Platform Plugin to "bundle" ServiceLoader-based plugin projects. The CLI frontend of our application does not have a "hard" / compile-time dependency on those plugins, but in order to make the distribution created by Gradle's Application Plugin include the plugins, we extend the
runtimeClasspath
from the custompluginClasspath
.This approach works to include the plugin JARs into the distribution and to put them on the runtime classpath of the application when running it via the start scripts generated by Gradle's Application Plugin.
I'd expect that the same approach also works when compiling the CLI frontend to a Native Image, but the created binary does not seems to include / ship with any of the plugins.
To Reproduce
./gradlew :cli:nativeCompile
../cli/build/native/nativeCompile/ort --help
.Expected behavior
The same output as for running via the Application Plugin's start scripts is shown:
./gradlew :cli:installDist
../cli/build/install/ort/bin/ort --help
.System Info (please complete the following information):
native-gradle-plugin:0.9.28
The text was updated successfully, but these errors were encountered: