Skip to content

Commit

Permalink
replace named task with getByName
Browse files Browse the repository at this point in the history
  • Loading branch information
stokado committed Dec 16, 2024
1 parent 1e17ee9 commit 8a2ad13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fullstack-mpp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ val backendJar = tasks.getByName<Jar>("backendJar") {
tasks.register<JavaExec>("run") {
dependsOn(backendJar)
mainClass.set("io.ktor.samples.fullstack.backend.BackendCodeKt")
classpath = files(configurations.named("backendRuntimeClasspath").get(), tasks.named("backendJar").get())
classpath = files(configurations.getByName("backendRuntimeClasspath"), backendJar)
args = listOf<String>()
}

0 comments on commit 8a2ad13

Please sign in to comment.