Skip to content

Commit d8f7d50

Browse files
turanskyqwwdfsad
authored andcommitted
Avoid task name duplication
1 parent f06a56b commit d8f7d50

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

benchmarks/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ tasks.named<KotlinCompile>("compileJmhKotlin") {
3333
* Due to a bug in the inliner it sometimes does not remove inlined symbols (that are later renamed) from unused code paths,
3434
* and it breaks JMH that tries to post-process these symbols and fails because they are renamed.
3535
*/
36-
val removeRedundantFiles = tasks.register<Delete>("removeRedundantFiles") {
36+
val removeRedundantFiles by tasks.registering(Delete::class) {
3737
delete("$buildDir/classes/kotlin/jmh/benchmarks/flow/scrabble/FlowPlaysScrabbleOpt\$play\$buildHistoOnScore\$1\$\$special\$\$inlined\$filter\$1\$1.class")
3838
delete("$buildDir/classes/kotlin/jmh/benchmarks/flow/scrabble/FlowPlaysScrabbleOpt\$play\$nBlanks\$1\$\$special\$\$inlined\$map\$1\$1.class")
3939
delete("$buildDir/classes/kotlin/jmh/benchmarks/flow/scrabble/FlowPlaysScrabbleOpt\$play\$score2\$1\$\$special\$\$inlined\$map\$1\$1.class")

site/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import groovy.lang.*
77
val buildDocsDir = "$buildDir/docs"
88
val jekyllDockerImage = "jekyll/jekyll:${version("jekyll")}"
99

10-
val copyDocs = tasks.register<Copy>("copyDocs") {
10+
val copyDocs by tasks.registering(Copy::class) {
1111
val dokkaTasks = rootProject.getTasksByName("dokka", true)
1212

1313
from(dokkaTasks.map { "${it.project.buildDir}/dokka" }) {
@@ -21,7 +21,7 @@ val copyDocs = tasks.register<Copy>("copyDocs") {
2121
dependsOn(dokkaTasks)
2222
}
2323

24-
val copyExampleFrontendJs = tasks.register<Copy>("copyExampleFrontendJs") {
24+
val copyExampleFrontendJs by tasks.registering(Copy::class) {
2525
val srcBuildDir = project(":example-frontend-js").buildDir
2626
from("$srcBuildDir/dist")
2727
into("$buildDocsDir/example-frontend-js")

0 commit comments

Comments
 (0)