How to use property for version when using a plugin via id?

In my I have


And in my build.gradle I have

plugins {
    id 'org.jetbrains.kotlin.jvm' version "${}"

 println "${}"

But this yields

FAILURE: Build failed with an exception.

* Where:
Build file 'build.gradle' line: 2

* What went wrong:
Could not compile build file 'build.gradle'.
> startup failed:
  build file 'build.gradle': 2: argument list must be exactly 1 literal non empty string

  See for information on the plugins {} block

   @ line 2, column 9.
             id 'org.jetbrains.kotlin.jvm' version "${}"

  1 error

Is there a particular reason why I cannot use properties to refer to the plugin version here?

This is a functional gap that the Gradle team has acknowledged and planning to address.

@st_oehme is there any update on the timeline, or any kind of roadmap document?

Thanks Dimitar. If the Gradle team has already acknowledged this limitation, I assume there’s a tracking issue on GitHub you could provide a link for? So far I wasn’t able to find one.

There is not, but please feel free to open one. Our plan is to fix this and many other shortcomings of the plugins DSL by the middle of this year.