Skip to content

Commit 942a547

Browse files
committed
Reformat ShadowJar
1 parent 4ad3004 commit 942a547

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ trim_trailing_whitespace = true
1111
ij_kotlin_imports_layout = *
1212
ij_kotlin_allow_trailing_comma = true
1313
ij_kotlin_allow_trailing_comma_on_call_site = true
14+
ij_kotlin_continuation_indent_size = 2
1415
ij_kotlin_line_break_after_multiline_when_entry = false
1516
ij_kotlin_name_count_to_use_star_import = 2147483647
1617
ij_kotlin_name_count_to_use_star_import_for_members = 2147483647

src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar.kt

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ public abstract class ShadowJar : Jar() {
156156
* @see relocationPrefix
157157
*/
158158
@get:Input
159-
@get:Option(option = "enable-auto-relocation", description = "Enables auto relocation of packages in the dependencies.")
159+
@get:Option(
160+
option = "enable-auto-relocation",
161+
description = "Enables auto relocation of packages in the dependencies.",
162+
)
160163
public open val enableAutoRelocation: Property<Boolean> = objectFactory.property(false)
161164

162165
/**
@@ -169,7 +172,10 @@ public abstract class ShadowJar : Jar() {
169172
* Defaults to `true`.
170173
*/
171174
@get:Input
172-
@get:Option(option = "enable-kotlin-module-remapping", description = "Enables remapping of Kotlin module metadata files.")
175+
@get:Option(
176+
option = "enable-kotlin-module-remapping",
177+
description = "Enables remapping of Kotlin module metadata files.",
178+
)
173179
public open val enableKotlinModuleRemapping: Property<Boolean> = objectFactory.property(true)
174180

175181
/**
@@ -180,7 +186,10 @@ public abstract class ShadowJar : Jar() {
180186
* @see enableAutoRelocation
181187
*/
182188
@get:Input
183-
@get:Option(option = "relocation-prefix", description = "Prefix used for auto relocation of packages in the dependencies.")
189+
@get:Option(
190+
option = "relocation-prefix",
191+
description = "Prefix used for auto relocation of packages in the dependencies.",
192+
)
184193
public open val relocationPrefix: Property<String> = objectFactory.property(ShadowBasePlugin.SHADOW)
185194

186195
/**
@@ -208,7 +217,10 @@ public abstract class ShadowJar : Jar() {
208217
* Defaults to `false`.
209218
*/
210219
@get:Input
211-
@get:Option(option = "fail-on-duplicate-entries", description = "Fails build if the ZIP entries in the shadowed JAR are duplicate.")
220+
@get:Option(
221+
option = "fail-on-duplicate-entries",
222+
description = "Fails build if the ZIP entries in the shadowed JAR are duplicate.",
223+
)
212224
public open val failOnDuplicateEntries: Property<Boolean> = objectFactory.property(false)
213225

214226
/**
@@ -218,7 +230,10 @@ public abstract class ShadowJar : Jar() {
218230
* Defaults to `true`.
219231
*/
220232
@get:Input
221-
@get:Option(option = "add-multi-release-attribute", description = "Adds the multi-release attribute to the manifest if any dependencies contain it.")
233+
@get:Option(
234+
option = "add-multi-release-attribute",
235+
description = "Adds the multi-release attribute to the manifest if any dependencies contain it.",
236+
)
222237
public open val addMultiReleaseAttribute: Property<Boolean> = objectFactory.property(true)
223238

224239
@Suppress("DEPRECATION") // TODO: replace the usage of deprecated InheritManifest.

0 commit comments

Comments
 (0)