refactor: Add provided lib directory to execution classpath
Some checks failed
bld-ci / build-bld-project (17) (push) Has been cancelled
bld-ci / build-bld-project (21) (push) Has been cancelled
bld-ci / build-bld-project (23) (push) Has been cancelled
javadocs-pages / deploy (push) Has been cancelled

This commit is contained in:
Erik C. Thauvin 2025-02-05 00:40:36 -08:00
parent 54c3c244e1
commit 18fce5c29a
Signed by: erik
GPG key ID: 776702A6A2DA330E
2 changed files with 4 additions and 4 deletions

View file

@ -37,6 +37,6 @@ Don't forget to add the [JReleaser](https://jreleaser.org/) dependency to your b
```java
repositories = List.of(MAVEN_CENTRAL);
scope(compile)
scope(provided)
.include(dependency("org.jreleaser", "jreleaser", version(1, 16, 0)));
```

View file

@ -131,9 +131,9 @@ public abstract class AbstractJReleaserOperation<S extends AbstractJReleaserOper
if (project_ != null) {
args.add(javaTool());
args.add("-cp");
args.add(String.format("%s:%s:%s:%s", new File(project_.libTestDirectory(), "*"),
new File(project_.libCompileDirectory(), "*"), project_.buildMainDirectory(),
project_.buildTestDirectory()));
args.add(String.format("%s:%s:%s:%s:%s", new File(project_.libTestDirectory(), "*"),
new File(project_.libCompileDirectory(), "*"), new File(project_.libProvidedDirectory(), "*"),
project_.buildMainDirectory(), project_.buildTestDirectory()));
args.add("org.jreleaser.cli.Main");
args.add(getCommand());