Use positive booleans to improve readability (#190)

This allows us to use lgtm.com to scan for vulnerabilities.
This commit is contained in:
Lai Jiang 2019-07-23 22:30:46 -04:00 committed by GitHub
parent 35f4dfec1f
commit 161dfa6a0c
4 changed files with 6 additions and 6 deletions

View file

@ -13,7 +13,7 @@
// limitations under the License.
buildscript {
if (project.disableDependencyLocking.toBoolean() == false) {
if (rootProject.enableDependencyLocking.toBoolean()) {
// Lock buildscript dependencies.
configurations.classpath {
resolutionStrategy.activateDependencyLocking()
@ -169,7 +169,7 @@ subprojects {
}
}
if (rootProject.disableDependencyLocking.toBoolean() == false) {
if (rootProject.enableDependencyLocking.toBoolean()) {
buildscript {
// Lock buildscript dependencies.
configurations.classpath {

View file

@ -13,7 +13,7 @@
// limitations under the License.
buildscript {
if (rootProject.disableDependencyLocking.toBoolean() == false) {
if (project.enableDependencyLocking.toBoolean()) {
// Lock buildscript dependencies.
configurations.classpath {
resolutionStrategy.activateDependencyLocking()
@ -32,7 +32,7 @@ plugins {
id 'com.diffplug.gradle.spotless' version '3.18.0'
}
if (rootProject.disableDependencyLocking.toBoolean() == false) {
if (rootProject.enableDependencyLocking.toBoolean()) {
// Lock application dependencies.
dependencyLocking {
lockAllConfigurations()

View file

@ -1 +1 @@
disableDependencyLocking=false
enableDependencyLocking=false

View file

@ -4,4 +4,4 @@ uploaderDestination=
uploaderCredentialsFile=
uploaderMultithreadedUpload=
flowDocsFile=
disableDependencyLocking=false
enableDependencyLocking=true