This message was deleted.
# dependency-management
s
This message was deleted.
e
Personally I would rather enter them manually but here you go:
Copy code
gradle.rootProject {
  beforeEvaluate {
    val libs = the<VersionCatalogsExtension>().named("libs")
    
    val plugins = libs.pluginAliases
      .map(libs::findPlugin)
      .mapNotNull { it.get().orNull }

    buildscript {
      dependencies {
        plugins.forEach {
          classpath("${it.pluginId}:${it.pluginId}.gradle.plugin:${it.version}")
        }
      }
    }
  }
}
t
thanks. i hate it too
party gradlephant 1