This message was deleted.
# community-support
s
This message was deleted.
a
I tried injecting a ComponentMetadataRule but it didn't work
Copy code
@CacheableRule
abstract class RemoveAllFiles: ComponentMetadataRule {
  override fun execute(context: ComponentMetadataContext) {
    context.details.allVariants {
      withFiles {
        removeAllFiles()
      }
    }
  }
}

dependencies {
  components {
    withModule<RemoveAllFiles>("org.jetbrains.kotlin:kotlin-stdlib")
  }
}
m
What about
Copy code
configurations.getByName("implementation").dependencies.removeIf {  }
?
2
a
ah yes, that works, thanks!
👍 1