@@ -42,6 +42,7 @@ method can be used to add extra files.
42
42
// Merge foo.jar (with unzipping) into the shadowed JAR.
43
43
implementation(files("foo.jar"))
44
44
}
45
+
45
46
tasks.shadowJar {
46
47
from("bar.jar") {
47
48
// Copy bar.jar file (without unzipping) into META-INF/ in the shadowed JAR.
@@ -57,6 +58,7 @@ method can be used to add extra files.
57
58
// Merge foo.jar (with unzipping) into the shadowed JAR.
58
59
implementation files('foo.jar')
59
60
}
61
+
60
62
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
61
63
from('bar.jar') {
62
64
// Copy bar.jar file (without unzipping) into META-INF/ in the shadowed JAR.
@@ -83,6 +85,7 @@ Gradle's `configurations` block.
83
85
dependencies {
84
86
implementation("org.apache.logging.log4j:log4j-core:2.11.1")
85
87
}
88
+
86
89
tasks.shadowJar {
87
90
dependencies {
88
91
exclude(dependency("org.apache.logging.log4j:log4j-core:2.11.1"))
@@ -96,6 +99,7 @@ Gradle's `configurations` block.
96
99
dependencies {
97
100
implementation 'org.apache.logging.log4j:log4j-core:2.11.1'
98
101
}
102
+
99
103
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
100
104
dependencies {
101
105
exclude(dependency('org.apache.logging.log4j:log4j-core:2.11.1'))
@@ -109,6 +113,7 @@ Gradle's `configurations` block.
109
113
dependencies {
110
114
implementation(project(":api"))
111
115
}
116
+
112
117
tasks.shadowJar {
113
118
dependencies {
114
119
exclude(dependency(":api"))
@@ -122,6 +127,7 @@ Gradle's `configurations` block.
122
127
dependencies {
123
128
implementation project(':api')
124
129
}
130
+
125
131
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
126
132
dependencies {
127
133
exclude(project(':api'))
@@ -145,6 +151,7 @@ using any of these individual fields.
145
151
dependencies {
146
152
implementation("org.apache.logging.log4j:log4j-core:2.11.1")
147
153
}
154
+
148
155
tasks.shadowJar {
149
156
dependencies {
150
157
exclude(dependency("org.apache.logging.log4j:log4j-core:.*"))
@@ -158,6 +165,7 @@ using any of these individual fields.
158
165
dependencies {
159
166
implementation 'org.apache.logging.log4j:log4j-core:2.11.1'
160
167
}
168
+
161
169
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
162
170
dependencies {
163
171
exclude(dependency('org.apache.logging.log4j:log4j-core:.*'))
@@ -173,6 +181,7 @@ Any of the individual fields can be safely absent and will function as though a
173
181
dependencies {
174
182
implementation("org.apache.logging.log4j:log4j-core:2.11.1")
175
183
}
184
+
176
185
tasks.shadowJar {
177
186
dependencies {
178
187
exclude(dependency(":org.apache.logging.log4j:log4j-core"))
@@ -186,6 +195,7 @@ Any of the individual fields can be safely absent and will function as though a
186
195
dependencies {
187
196
implementation 'org.apache.logging.log4j:log4j-core:2.11.1'
188
197
}
198
+
189
199
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
190
200
dependencies {
191
201
exclude(dependency('org.apache.logging.log4j:log4j-core'))
@@ -203,6 +213,7 @@ This same pattern can be used for any of the dependency notation fields.
203
213
dependencies {
204
214
implementation("org.apache.logging.log4j:log4j-core:2.11.1")
205
215
}
216
+
206
217
tasks.shadowJar {
207
218
dependencies {
208
219
exclude(dependency(":log4j-core:2.11.1"))
@@ -216,6 +227,7 @@ This same pattern can be used for any of the dependency notation fields.
216
227
dependencies {
217
228
implementation 'org.apache.logging.log4j:log4j-core:2.11.1'
218
229
}
230
+
219
231
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
220
232
dependencies {
221
233
exclude(dependency(':log4j-core:2.11.1'))
@@ -229,6 +241,7 @@ This same pattern can be used for any of the dependency notation fields.
229
241
dependencies {
230
242
implementation("org.apache.logging.log4j:log4j-core:2.11.1")
231
243
}
244
+
232
245
tasks.shadowJar {
233
246
dependencies {
234
247
exclude(dependency("org.apache.logging.log4j:2.11.1"))
@@ -242,6 +255,7 @@ This same pattern can be used for any of the dependency notation fields.
242
255
dependencies {
243
256
implementation 'org.apache.logging.log4j:log4j-core:2.11.1'
244
257
}
258
+
245
259
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
246
260
dependencies {
247
261
exclude(dependency('org.apache.logging.log4j:2.11.1'))
@@ -262,6 +276,7 @@ You can also use type-safe project accessors or version catalog accessors to fil
262
276
// Have to enable `TYPESAFE_PROJECT_ACCESSORS` flag in your settings.gradle.kts
263
277
implementation(projects.api)
264
278
}
279
+
265
280
tasks.shadowJar {
266
281
dependencies {
267
282
exclude(dependency(libs.log4j.core))
@@ -279,6 +294,7 @@ You can also use type-safe project accessors or version catalog accessors to fil
279
294
// Have to enable `TYPESAFE_PROJECT_ACCESSORS` flag in your settings.gradle
280
295
implementation projects.api
281
296
}
297
+
282
298
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
283
299
dependencies {
284
300
exclude(dependency(libs.log4j.core))
@@ -299,6 +315,7 @@ block provides a method that accepts a `Closure` for selecting dependencies.
299
315
dependencies {
300
316
implementation("org.apache.logging.log4j:log4j-core:2.11.1")
301
317
}
318
+
302
319
tasks.shadowJar {
303
320
dependencies {
304
321
exclude {
@@ -314,6 +331,7 @@ block provides a method that accepts a `Closure` for selecting dependencies.
314
331
dependencies {
315
332
implementation 'org.apache.logging.log4j:log4j-core:2.11.1'
316
333
}
334
+
317
335
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
318
336
dependencies {
319
337
exclude {
0 commit comments