mirror of
https://github.com/google/nomulus.git
synced 2025-06-19 19:00:46 +02:00
Use positive booleans to improve readability (#190)
This allows us to use lgtm.com to scan for vulnerabilities.
This commit is contained in:
parent
35f4dfec1f
commit
161dfa6a0c
4 changed files with 6 additions and 6 deletions
|
@ -13,7 +13,7 @@
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
if (project.disableDependencyLocking.toBoolean() == false) {
|
if (rootProject.enableDependencyLocking.toBoolean()) {
|
||||||
// Lock buildscript dependencies.
|
// Lock buildscript dependencies.
|
||||||
configurations.classpath {
|
configurations.classpath {
|
||||||
resolutionStrategy.activateDependencyLocking()
|
resolutionStrategy.activateDependencyLocking()
|
||||||
|
@ -169,7 +169,7 @@ subprojects {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rootProject.disableDependencyLocking.toBoolean() == false) {
|
if (rootProject.enableDependencyLocking.toBoolean()) {
|
||||||
buildscript {
|
buildscript {
|
||||||
// Lock buildscript dependencies.
|
// Lock buildscript dependencies.
|
||||||
configurations.classpath {
|
configurations.classpath {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
if (rootProject.disableDependencyLocking.toBoolean() == false) {
|
if (project.enableDependencyLocking.toBoolean()) {
|
||||||
// Lock buildscript dependencies.
|
// Lock buildscript dependencies.
|
||||||
configurations.classpath {
|
configurations.classpath {
|
||||||
resolutionStrategy.activateDependencyLocking()
|
resolutionStrategy.activateDependencyLocking()
|
||||||
|
@ -32,7 +32,7 @@ plugins {
|
||||||
id 'com.diffplug.gradle.spotless' version '3.18.0'
|
id 'com.diffplug.gradle.spotless' version '3.18.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rootProject.disableDependencyLocking.toBoolean() == false) {
|
if (rootProject.enableDependencyLocking.toBoolean()) {
|
||||||
// Lock application dependencies.
|
// Lock application dependencies.
|
||||||
dependencyLocking {
|
dependencyLocking {
|
||||||
lockAllConfigurations()
|
lockAllConfigurations()
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
disableDependencyLocking=false
|
enableDependencyLocking=false
|
||||||
|
|
|
@ -4,4 +4,4 @@ uploaderDestination=
|
||||||
uploaderCredentialsFile=
|
uploaderCredentialsFile=
|
||||||
uploaderMultithreadedUpload=
|
uploaderMultithreadedUpload=
|
||||||
flowDocsFile=
|
flowDocsFile=
|
||||||
disableDependencyLocking=false
|
enableDependencyLocking=true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue