[Gradle] Handle kotlin.tests.individualTaskReports as boolean property

This commit is contained in:
Alexander Likhachev
2022-11-02 15:00:05 +01:00
committed by Space Team
parent 9cefa346bd
commit cc9a611c13
2 changed files with 3 additions and 3 deletions
@@ -235,8 +235,8 @@ internal class PropertiesProvider private constructor(private val project: Proje
* By default individual test tasks will not fail build if this task will be executed,
* also individual html and xml reports will replaced by one consolidated html report.
*/
val individualTaskReports: Boolean?
get() = booleanProperty("kotlin.tests.individualTaskReports")
val individualTaskReports: Boolean
get() = booleanProperty("kotlin.tests.individualTaskReports") ?: false
/**
* Allow a user to choose distribution type. The following distribution types are available:
@@ -62,7 +62,7 @@ open class KotlinTestReport : TestReport() {
@get:Input
val overrideReporting: Boolean by lazy {
projectProperties.individualTaskReports == null
!projectProperties.individualTaskReports
}
@Input