Run plugin from local jar but having groovy->kotlin trouble


I am developing a gradle plugin and I am getting a perfectly fine jar.
After building the plugin I want to use it in a separate gradle run by loading it from the just generated jar.
I created an extra build.gradle file, I called it cbuild.gradle:

buildscript {
    dependencies {
        classpath files("corrector/build/libs/corrector-0.2.jar")
apply plugin: org.modelingvalue.gradle.corrector.MvgCorrectorPlugin

…and I run it with gradle -b cbuild.gradle mvgCorrect. This works just fine also!
But now I want to make it a kotlin DSL file:

buildscript {
    dependencies {
apply(plugin = "org.modelingvalue.gradle.corrector.MvgCorrectorPlugin")

…and I am getting the following error:

FAILURE: Build failed with an exception.

* Where:
Build file '.../cbuild.gradle.kts' line : 22

* What went wrong:
Plugin with id 'org.modelingvalue.gradle.corrector.MvgCorrectorPlugin' not found.

* Try:

I probably did not use the right kotlin dsl lingo. Can anyone give me a hint on how to improve/correct this?

Additional question:
I am rather new to gradle (and kotlin as well :grin:) and I find it quite hard in general to figure out how to translate constructs from groovy-dal to kotlin-dsl when I find snippets somewhere. Are there any online translation tools out there to help?