Skip to content

Commit

Permalink
Use find by name rather than named
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Jan 30, 2024
1 parent eb8adcc commit b11bab8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "dev.kord"
version = "1.2.7"
version = "1.2.8"

repositories {
mavenCentral()
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/MultiplatformHelpers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ fun Project.applyMultiplatformHelpers() {
}

fun Task.dependOnSafe(name: String) {
val task = project.tasks.named(name)
if (task.isPresent) {
val task = project.tasks.findByName(name)
if (task != null) {
dependsOn(task)
}
}
Expand Down

0 comments on commit b11bab8

Please sign in to comment.