Migrate the top-level build files to the new Kotlin DSL and use the new pluginManagement block instead of the old buildscript.