Skip to content

Commit efab13b

Browse files
authored
Update Jar.from references (#1390)
Prefer ```java AbstractCopyTask from(Object sourcePath, Action<? super CopySpec> configureAction) ``` over ```java AbstractCopyTask from(Object sourcePath, Closure c) ```
1 parent 8a2dfa3 commit efab13b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/configuration/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ on the `shadowJar.manifest` object can be used to configure the upstream.
152152
## Adding Extra Files
153153

154154
The `shadowJar` task is a subclass of the `Jar` task, which means that the
155-
[from](https://docs.gradle.org/current/dsl/org.gradle.jvm.tasks.Jar.html#org.gradle.jvm.tasks.Jar:from(java.lang.Object,%20groovy.lang.Closure))
155+
[Jar.from](https://docs.gradle.org/current/dsl/org.gradle.jvm.tasks.Jar.html#org.gradle.jvm.tasks.Jar:from(java.lang.Object,%20org.gradle.api.Action))
156156
method can be used to add extra files.
157157

158158
=== "Kotlin"

docs/configuration/dependencies/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ have the intended effect, as `configurations.compile` will try to delegate to th
3232
## Embedding Jar Files Inside Your Shadow Jar
3333

3434
The `shadowJar` task is a subclass of the `Jar` task, which means that the
35-
[from](https://docs.gradle.org/current/dsl/org.gradle.jvm.tasks.Jar.html#org.gradle.jvm.tasks.Jar:from(java.lang.Object,%20groovy.lang.Closure))
35+
[Jar.from](https://docs.gradle.org/current/dsl/org.gradle.jvm.tasks.Jar.html#org.gradle.jvm.tasks.Jar:from(java.lang.Object,%20org.gradle.api.Action))
3636
method can be used to add extra files.
3737

3838
=== "Kotlin"

0 commit comments

Comments
 (0)