You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
744 B
Plaintext
21 lines
744 B
Plaintext
== Using Shadow in Multi-Project Builds
|
|
|
|
When using Shadow in a multi-project build, project dependencies will be treated the same as
|
|
external dependencies.
|
|
That is a project dependency will be merged into the `shadowJar` output of the project that
|
|
is applying the Shadow plugin.
|
|
|
|
=== Depending on the Shadow Jar from Another Project
|
|
|
|
In a multi-project build there may be one project that applies Shadow and another that
|
|
requires the shadowed JAR as a dependency.
|
|
In this case, use Gradle's normal dependency declaration mechanism to depend on the `shadow`
|
|
configuration of the shadowed project.
|
|
|
|
.Depending On Shadow Output of Project
|
|
[source,groovy,indent=0]
|
|
----
|
|
dependencies {
|
|
compile project(path: 'api', configuration: 'shadow')
|
|
}
|
|
---- |