refactor: Add provided lib directory to execution classpath
This commit is contained in:
parent
54c3c244e1
commit
18fce5c29a
2 changed files with 4 additions and 4 deletions
|
@ -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)));
|
||||
```
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue