File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -174,8 +174,7 @@ task("release") {
174174
175175val Project .isSnapshot get() = versionDetails.commitDistance != 0
176176fun String.drop (prefix : String ) = if (this .startsWith(prefix)) this .drop(prefix.length) else this
177- fun String.capitalize () = this .replaceFirstChar { if (it.isLowerCase()) it.titlecase() else it.toString() }
178177
179178val Project .versionDetails get() = (this .extra[" versionDetails" ] as groovy.lang.Closure <* >)() as com.palantir.gradle.gitversion.VersionDetails
180179val ArtifactRepository .publishTask get() = tasks[" publishAllPublicationsTo${this .name} Repository" ]
181- val NexusRepository .publishTask get() = " publishTo${this .name.capitalize() } "
180+ val NexusRepository .publishTask get() = " publishTo${this .name.replaceFirstChar { it.titlecase() } } "
You can’t perform that action at this time.
0 commit comments