Skip to content

Commit aaab634

Browse files
authored
Merge pull request #2002 from turansky/avoid-task-name-duplication
Avoid task name duplication
2 parents 3016c2c + cd36c8b commit aaab634

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
@@ -5,7 +5,7 @@
55
val buildDocsDir = "$buildDir/docs"
66
val jekyllDockerImage = "jekyll/jekyll:${version("jekyll")}"
77

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

1111
from(dokkaTasks.map { "${it.project.buildDir}/dokka" }) {
@@ -18,7 +18,7 @@ val copyDocs = tasks.register<Copy>("copyDocs") {
1818
dependsOn(dokkaTasks)
1919
}
2020

21-
val copyExampleFrontendJs = tasks.register<Copy>("copyExampleFrontendJs") {
21+
val copyExampleFrontendJs by tasks.registering(Copy::class) {
2222
val srcBuildDir = project(":example-frontend-js").buildDir
2323
from("$srcBuildDir/dist")
2424
into("$buildDocsDir/example-frontend-js")

0 commit comments

Comments
 (0)