Cannot declare custom maven repository in buildAdditions.gradle

Hello, I am migrating my 4.16 project to 4.17.

In 4.17, there is Gradle build support for Android. So I made a UPL file to define another maven repository and apply plugin from there.

the UPL file
(gradle script is from https://fabric.io/kits/android/crashlytics/install)

<buildGradleAdditions>
  <insert>
buildscript {
  repositories {
    maven { url 'https://maven.fabric.io/public' }
  }
  dependencies {
    classpath 'io.fabric.tools:gradle:1.+'
  }
}

apply plugin: 'io.fabric'
...

  </insert>
</buildGradleAdditions>

I think it should be working, but it cannot process the repositories block and prints notfound error.

It is also known issue in Gradle community(see https://github.com/gradle/gradle/issues/1323). To solve this, I should be able to write build.gradle directly, not through script plugin files. But digging the deployment code, there are no writing commands to the build.gradle.

It will be changed in the future? Or could I get some workaround?

Thank you.