File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow
main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ Inspecting the `META-INF/MANIFEST.MF` entry in the JAR file will reveal the foll
122
122
Class-Path: /libs/foo.jar
123
123
```
124
124
125
- If it is desired to inherit a manifest from a JAR task other than the standard [ ` Jar ` ] [ Jar ] task, the ` inheritFrom `
125
+ If it is desired to inherit a manifest from a JAR task other than the standard [ ` Jar ` ] [ Jar ] task, the ` from `
126
126
methods on the ` shadowJar.manifest ` object can be used to configure the upstream.
127
127
128
128
=== "Kotlin"
@@ -135,7 +135,7 @@ methods on the `shadowJar.manifest` object can be used to configure the upstream
135
135
}
136
136
137
137
tasks.shadowJar {
138
- manifest.inheritFrom (testJar.get().manifest)
138
+ manifest.from (testJar.get().manifest)
139
139
}
140
140
```
141
141
@@ -149,7 +149,7 @@ methods on the `shadowJar.manifest` object can be used to configure the upstream
149
149
}
150
150
151
151
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
152
- manifest.inheritFrom (testJar.get().manifest)
152
+ manifest.from (testJar.get().manifest)
153
153
}
154
154
```
155
155
Original file line number Diff line number Diff line change @@ -724,7 +724,7 @@ class JavaPluginsTest : BasePluginTest() {
724
724
}
725
725
}
726
726
$shadowJarTask {
727
- manifest.inheritFrom (testJar.get().manifest)
727
+ manifest.from (testJar.get().manifest)
728
728
}
729
729
""" .trimIndent(),
730
730
)
Original file line number Diff line number Diff line change @@ -5,10 +5,14 @@ import org.gradle.api.java.archives.Manifest
5
5
import org.gradle.api.java.archives.ManifestMergeSpec
6
6
7
7
@Deprecated(
8
- message = " This is deprecated and will be removed in a future release. `inheritFrom` should be replaced by `from`. " ,
8
+ message = " This is deprecated and will be removed in a future release." ,
9
9
replaceWith = ReplaceWith (" Manifest" , " org.gradle.api.java.archives.Manifest" ),
10
10
)
11
11
public interface InheritManifest : Manifest {
12
+ @Deprecated(
13
+ message = " This is deprecated and will be removed in a future release." ,
14
+ replaceWith = ReplaceWith (" from" ),
15
+ )
12
16
public fun inheritFrom (vararg inheritPaths : Any ) {
13
17
inheritFrom(inheritPaths = inheritPaths, action = {})
14
18
}
You can’t perform that action at this time.
0 commit comments