mirror of
https://github.com/google/nomulus.git
synced 2025-08-03 16:32:11 +02:00
Add the ability to turn off dependency locking
This makes it easy to experiment with new dependency versions or new plugins without having to update the lock files, by adding "-PdisableDependencyLocking=true" to any gradle command. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=249463575
This commit is contained in:
parent
6b4bdf8d9a
commit
8d3309647a
4 changed files with 28 additions and 18 deletions
|
@ -1,7 +1,9 @@
|
|||
buildscript {
|
||||
// Lock buildscript dependencies.
|
||||
configurations.classpath {
|
||||
resolutionStrategy.activateDependencyLocking()
|
||||
if (project.disableDependencyLocking.toBoolean() == false) {
|
||||
// Lock buildscript dependencies.
|
||||
configurations.classpath {
|
||||
resolutionStrategy.activateDependencyLocking()
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
@ -98,16 +100,18 @@ subprojects {
|
|||
// Skip no-op project
|
||||
if (project.name == 'services') return
|
||||
|
||||
buildscript {
|
||||
// Lock buildscript dependencies.
|
||||
configurations.classpath {
|
||||
resolutionStrategy.activateDependencyLocking()
|
||||
}
|
||||
}
|
||||
|
||||
// Lock application dependencies.
|
||||
dependencyLocking {
|
||||
lockAllConfigurations()
|
||||
if (rootProject.disableDependencyLocking.toBoolean() == false) {
|
||||
buildscript {
|
||||
// Lock buildscript dependencies.
|
||||
configurations.classpath {
|
||||
resolutionStrategy.activateDependencyLocking()
|
||||
}
|
||||
}
|
||||
// Lock application dependencies.
|
||||
dependencyLocking {
|
||||
lockAllConfigurations()
|
||||
}
|
||||
}
|
||||
|
||||
def services = [':services:default',
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
buildscript {
|
||||
// Lock buildscript dependencies.
|
||||
configurations.classpath {
|
||||
resolutionStrategy.activateDependencyLocking()
|
||||
if (rootProject.disableDependencyLocking.toBoolean() == false) {
|
||||
// Lock buildscript dependencies.
|
||||
configurations.classpath {
|
||||
resolutionStrategy.activateDependencyLocking()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -17,9 +19,11 @@ plugins {
|
|||
id 'com.diffplug.gradle.spotless' version '3.18.0'
|
||||
}
|
||||
|
||||
// Lock application dependencies.
|
||||
dependencyLocking {
|
||||
lockAllConfigurations()
|
||||
if (rootProject.disableDependencyLocking.toBoolean() == false) {
|
||||
// Lock application dependencies.
|
||||
dependencyLocking {
|
||||
lockAllConfigurations()
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
|
1
gradle/buildSrc/gradle.properties
Normal file
1
gradle/buildSrc/gradle.properties
Normal file
|
@ -0,0 +1 @@
|
|||
disableDependencyLocking=false
|
|
@ -4,3 +4,4 @@ uploaderDestination=
|
|||
uploaderCredentialsFile=
|
||||
uploaderMultithreadedUpload=
|
||||
flowDocsFile=
|
||||
disableDependencyLocking=false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue