From 94378e8b12a3fb4bc2e047e14a643d6547e4ba3d Mon Sep 17 00:00:00 2001 From: Danny Thomas Date: Mon, 12 Feb 2024 11:42:13 +1100 Subject: [PATCH] Avoid the Kotlin plugin complaining about build tool skew --- .../plugin/dependencylock/tasks/GenerateLockTask.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/groovy/nebula/plugin/dependencylock/tasks/GenerateLockTask.groovy b/src/main/groovy/nebula/plugin/dependencylock/tasks/GenerateLockTask.groovy index 22693c1..5dc699c 100644 --- a/src/main/groovy/nebula/plugin/dependencylock/tasks/GenerateLockTask.groovy +++ b/src/main/groovy/nebula/plugin/dependencylock/tasks/GenerateLockTask.groovy @@ -99,9 +99,10 @@ class GenerateLockTask extends AbstractLockTask { if (Configuration.class.declaredMethods.any { it.name == 'isCanBeResolved' }) { lockableConfigurations.addAll project.configurations.findAll { it.canBeResolved && !ConfigurationFilters.safelyHasAResolutionAlternative(it) && - // Always exclude compileOnly to avoid issues with kotlin plugin + // Always exclude compileOnly and build tools configurations to avoid issues with kotlin plugin !it.name.endsWith("CompileOnly") && - it.name != "compileOnly" + it.name != "compileOnly" && + it.name != "kotlinBuildToolsApiClasspath" } } else { lockableConfigurations.addAll project.configurations.asList()