Skip to content

Commit 1a123ee

Browse files
committed
Divide blocks
1 parent ce7c148 commit 1a123ee

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/configuration/dependencies/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ method can be used to add extra files.
4242
// Merge foo.jar (with unzipping) into the shadowed JAR.
4343
implementation(files("foo.jar"))
4444
}
45+
4546
tasks.shadowJar {
4647
from("bar.jar") {
4748
// 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.
5758
// Merge foo.jar (with unzipping) into the shadowed JAR.
5859
implementation files('foo.jar')
5960
}
61+
6062
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
6163
from('bar.jar') {
6264
// Copy bar.jar file (without unzipping) into META-INF/ in the shadowed JAR.
@@ -83,6 +85,7 @@ Gradle's `configurations` block.
8385
dependencies {
8486
implementation("org.apache.logging.log4j:log4j-core:2.11.1")
8587
}
88+
8689
tasks.shadowJar {
8790
dependencies {
8891
exclude(dependency("org.apache.logging.log4j:log4j-core:2.11.1"))
@@ -96,6 +99,7 @@ Gradle's `configurations` block.
9699
dependencies {
97100
implementation 'org.apache.logging.log4j:log4j-core:2.11.1'
98101
}
102+
99103
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
100104
dependencies {
101105
exclude(dependency('org.apache.logging.log4j:log4j-core:2.11.1'))
@@ -109,6 +113,7 @@ Gradle's `configurations` block.
109113
dependencies {
110114
implementation(project(":api"))
111115
}
116+
112117
tasks.shadowJar {
113118
dependencies {
114119
exclude(dependency(":api"))
@@ -122,6 +127,7 @@ Gradle's `configurations` block.
122127
dependencies {
123128
implementation project(':api')
124129
}
130+
125131
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
126132
dependencies {
127133
exclude(project(':api'))
@@ -145,6 +151,7 @@ using any of these individual fields.
145151
dependencies {
146152
implementation("org.apache.logging.log4j:log4j-core:2.11.1")
147153
}
154+
148155
tasks.shadowJar {
149156
dependencies {
150157
exclude(dependency("org.apache.logging.log4j:log4j-core:.*"))
@@ -158,6 +165,7 @@ using any of these individual fields.
158165
dependencies {
159166
implementation 'org.apache.logging.log4j:log4j-core:2.11.1'
160167
}
168+
161169
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
162170
dependencies {
163171
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
173181
dependencies {
174182
implementation("org.apache.logging.log4j:log4j-core:2.11.1")
175183
}
184+
176185
tasks.shadowJar {
177186
dependencies {
178187
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
186195
dependencies {
187196
implementation 'org.apache.logging.log4j:log4j-core:2.11.1'
188197
}
198+
189199
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
190200
dependencies {
191201
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.
203213
dependencies {
204214
implementation("org.apache.logging.log4j:log4j-core:2.11.1")
205215
}
216+
206217
tasks.shadowJar {
207218
dependencies {
208219
exclude(dependency(":log4j-core:2.11.1"))
@@ -216,6 +227,7 @@ This same pattern can be used for any of the dependency notation fields.
216227
dependencies {
217228
implementation 'org.apache.logging.log4j:log4j-core:2.11.1'
218229
}
230+
219231
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
220232
dependencies {
221233
exclude(dependency(':log4j-core:2.11.1'))
@@ -229,6 +241,7 @@ This same pattern can be used for any of the dependency notation fields.
229241
dependencies {
230242
implementation("org.apache.logging.log4j:log4j-core:2.11.1")
231243
}
244+
232245
tasks.shadowJar {
233246
dependencies {
234247
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.
242255
dependencies {
243256
implementation 'org.apache.logging.log4j:log4j-core:2.11.1'
244257
}
258+
245259
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
246260
dependencies {
247261
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
262276
// Have to enable `TYPESAFE_PROJECT_ACCESSORS` flag in your settings.gradle.kts
263277
implementation(projects.api)
264278
}
279+
265280
tasks.shadowJar {
266281
dependencies {
267282
exclude(dependency(libs.log4j.core))
@@ -279,6 +294,7 @@ You can also use type-safe project accessors or version catalog accessors to fil
279294
// Have to enable `TYPESAFE_PROJECT_ACCESSORS` flag in your settings.gradle
280295
implementation projects.api
281296
}
297+
282298
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
283299
dependencies {
284300
exclude(dependency(libs.log4j.core))
@@ -299,6 +315,7 @@ block provides a method that accepts a `Closure` for selecting dependencies.
299315
dependencies {
300316
implementation("org.apache.logging.log4j:log4j-core:2.11.1")
301317
}
318+
302319
tasks.shadowJar {
303320
dependencies {
304321
exclude {
@@ -314,6 +331,7 @@ block provides a method that accepts a `Closure` for selecting dependencies.
314331
dependencies {
315332
implementation 'org.apache.logging.log4j:log4j-core:2.11.1'
316333
}
334+
317335
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
318336
dependencies {
319337
exclude {

0 commit comments

Comments
 (0)