Skip to content

Commit

Permalink
use shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
turikhay committed Mar 23, 2024
1 parent e1b6c01 commit c094d70
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions buildSrc/src/main/kotlin/ProjectExt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@ val Project.libs get() = the<org.gradle.accessors.dm.LibrariesForLibs>()

val Task.singleFile get() = outputs.files.singleFile

val <T : Task> TaskProvider<T>.singleFile get(): Provider<File> = this.map {
it.outputs.files.singleFile
}
val <T : Task> TaskProvider<T>.singleFile get() = map { it.singleFile }

0 comments on commit c094d70

Please sign in to comment.