Skip to content

Commit

Permalink
Avoid the Kotlin plugin complaining about build tool skew
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielThomas committed Feb 12, 2024
1 parent 9d4b252 commit 94378e8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 94378e8

Please sign in to comment.