only lock compile & runtime classpaths in buildSrc

This commit is contained in:
Adam 2023-06-06 10:08:35 +02:00
parent a4e919a75f
commit 60feafa3f9
2 changed files with 71 additions and 81 deletions

View file

@ -13,5 +13,11 @@ dependencies {
dependencyLocking {
lockMode.set(LockMode.STRICT)
lockAllConfigurations()
}
configurations {
// only lock compile & runtime to prevent error:
// Locking strict mode: Configuration ':buildSrc:testCompileClasspath' is locked but does not have lock state.
compileClasspath { resolutionStrategy.activateDependencyLocking() }
runtimeClasspath { resolutionStrategy.activateDependencyLocking() }
}