Skip to content

Commit

Permalink
ignore invalid log level values
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-enko committed Aug 5, 2024
1 parent 571da27 commit 4f03262
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,11 @@ abstract class AbstractDokkaTask : DefaultTask() {
*/
private val dokkaGeneratorLogLevel: Provider<LogLevel>
get() = providers.gradleProperty("org.jetbrains.dokka.internal.gradleLogLevel")
.map { LogLevel.values().first { level -> level.name == it } }
.flatMap {
providers.provider {
LogLevel.values().firstOrNull { level -> level.name == it }
}
}

final override fun doFirst(action: Action<in Task>): Task = super.doFirst(action)

Expand Down

0 comments on commit 4f03262

Please sign in to comment.