xenoterracide
05/05/2018, 3:46 AMtest {
reports {
junitXml.enabled = false
html.enabled = true
}
}
in kotlin dslLucas
05/05/2018, 4:08 AMtasks { }
block allows you to access all Gradle tasks defined in the project. The method withType
receives the Task class you want to modify and tells you to pass a lambda function with access of it's attributes.
tasks {
withType<Test> {
reports {
junitXml.isEnabled = false
html.isEnabled = true
}
}
}
xenoterracide
05/05/2018, 4:14 AM