Simplify project.hasProperty('alltests') ternary operator

This commit is contained in:
Drummond Dawson
2018-10-01 17:57:18 -04:00
committed by Mahmoud Ben Hassine
parent eb84ac4195
commit 0273441e68

View File

@@ -418,7 +418,7 @@ project('spring-batch-core-tests') {
optional "org.springframework.ldap:spring-ldap-ldif-core:$springLdapVersion"
}
test {
enabled = project.hasProperty('alltests') ? true : false
enabled = project.hasProperty('alltests')
}
}
@@ -477,7 +477,7 @@ project('spring-batch-infrastructure-tests') {
runtime "org.postgresql:postgresql:$postgresqlVersion"
}
test {
enabled = project.hasProperty('alltests') ? true : false
enabled = project.hasProperty('alltests')
}
}