We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d44665c commit c1b5ef3Copy full SHA for c1b5ef3
src/docs/custom-tasks/README.md
@@ -12,11 +12,11 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
12
task testJar(type: ShadowJar) {
13
archiveClassifier.set("tests")
14
from sourceSets.test.output
15
- configurations = [project.configurations.testImplementation]
+ configurations = [project.configurations.testRuntimeClasspath]
16
}
17
```
18
19
-The code snippet above will generate a shadowed JAR containing both the `main` and `test` sources as well as all `runtime`
+The code snippet above will generate a shadowed JAR containing both the `main` and `test` sources as well as all `testRuntimeOnly`
20
and `testImplementation` dependencies.
21
The file is output to `build/libs/<project>-<version>-tests.jar`.
22
0 commit comments