plugins {
    kotlin("jvm") version "2.0.20"
    application
}

group = "ru.deflecta.auroomy"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
    maven("https://jitpack.io") // Для JDA
}

dependencies {
    implementation("net.dv8tion:JDA:5.1.1") {
        exclude(module = "opus-java") // Не использую голосовые функции
    }
    implementation("com.squareup.okio:okio:3.9.1")
    implementation("com.google.apis:google-api-services-androidpublisher:v3-rev20240917-2.0.0") // Google Play Developer API
    implementation("com.google.auth:google-auth-library-oauth2-http:1.27.0")
    implementation("commons-codec:commons-codec:1.16.0")
    implementation("com.google.guava:guava:32.1.2-android")
    implementation("com.google.http-client:google-http-client-jackson2:1.45.0")
}

application {
    mainClass.set("ru.deflecta.auroomy.BotKt")
}

kotlin {
    jvmToolchain(21)
}

tasks.test {
    useJUnitPlatform()
}

Почему происходит эта ошибка?

"D:\Program Files\Zulu\zulu-21\bin\java.exe" "-javaagent:C:\Users\Scarada\AppData\Local\Programs\IntelliJ IDEA Community Edition\lib\idea_rt.jar=11937:C:\Users\Scarada\AppData\Local\Programs\IntelliJ IDEA Community Edition\bin" -Dfile.encoding=windows-1251 -Dsun.stdout.encoding=windows-1251 -Dsun.stderr.encoding=windows-1251 -classpath "C:\Users\Scarada\AppData\Local\Programs\IntelliJ IDEA Community Edition\plugins\Kotlin\kotlinc\lib\kotlin-compiler.jar;D:\Users\Scarada\.gradle\caches\8.5\generated-gradle-jars\gradle-api-8.5.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\groovy-3.0.17.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\groovy-ant-3.0.17.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\groovy-astbuilder-3.0.17.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\groovy-console-3.0.17.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\groovy-datetime-3.0.17.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\groovy-dateutil-3.0.17.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\groovy-groovydoc-3.0.17.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\groovy-json-3.0.17.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\groovy-nio-3.0.17.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\groovy-sql-3.0.17.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\groovy-templates-3.0.17.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\groovy-test-3.0.17.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\groovy-xml-3.0.17.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\javaparser-core-3.17.0.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\kotlin-stdlib-1.9.20.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\kotlin-reflect-1.9.20.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\gradle-installation-beacon-8.5.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\gradle-kotlin-dsl-extensions-8.5.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\gradle-kotlin-dsl-8.5.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\gradle-kotlin-dsl-shared-runtime-8.5.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\gradle-kotlin-dsl-tooling-models-8.5.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-model\2.0.20\a23be6a5119ded89279f2bf9a095cddec6145614\kotlin-gradle-plugin-model-2.0.20.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\2.0.20\d2bb3020f72504d0455fcb9cef3af4bdf6564de5\kotlin-gradle-plugin-api-2.0.20.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin\2.0.20\5ca90c0173fffe0f4e9b73aca425fd99213cc43a\kotlin-gradle-plugin-2.0.20-gradle85.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-idea-proto\2.0.20\71e7e908bab748c5b035e551c8efd19a5215c0ca\kotlin-gradle-plugin-idea-proto-2.0.20.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-idea\2.0.20\dc54973fe68b0bb9b816bd04ef39648ca29526a6\kotlin-gradle-plugin-idea-2.0.20.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-klib-commonizer-api\2.0.20\c3f877ed653b2d5afc74e9ed8b44bee8856807b1\kotlin-klib-commonizer-api-2.0.20.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-build-statistics\2.0.20\fa1c73206997fe6ea912319041e105e6438accdf\kotlin-build-statistics-2.0.20.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-build-tools-api\2.0.20\7898f46131274ac85569ef30f965e3758e217551\kotlin-build-tools-api-2.0.20.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-compiler-runner\2.0.20\b7298471a2af50b32b7c460775c23759edb5bb70\kotlin-compiler-runner-2.0.20.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-native-utils\2.0.20\9041e552da8fe20f7835123822f9ee273655e34b\kotlin-native-utils-2.0.20.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-util-klib\2.0.20\8f1da03af6d8cc1230daa83fabb150891533fb50\kotlin-util-klib-2.0.20.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-compiler-embeddable\2.0.20\244b603e8c729f98baaf9088d90b5b9350c68af8\kotlin-compiler-embeddable-2.0.20.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-annotations\2.0.20\a68df0dc58b9bf664e96de49d673f30f24148224\kotlin-gradle-plugin-annotations-2.0.20.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-tooling-core\2.0.20\952179e9b7f114e78274ca73cea6df8fce3c8b3b\kotlin-tooling-core-2.0.20.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.8.9\8a432c1d6825781e21a02db2e2c33c5fde2833b9\gson-2.8.9.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-daemon-client\2.0.20\910b2107f6a7cc02366687b6e835ae0beaadb59b\kotlin-daemon-client-2.0.20.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlinx\kotlinx-coroutines-core-jvm\1.6.4\2c997cd1c0ef33f3e751d3831929aeff1390cb30\kotlinx-coroutines-core-jvm-1.6.4.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-util-io\2.0.20\b74831be580aa621e8158231fbd7904ab634ab7d\kotlin-util-io-2.0.20.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-daemon-embeddable\2.0.20\9eb02dce62f058efe6a121cf00cf5da9779e2746\kotlin-daemon-embeddable-2.0.20.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.jetbrains.intellij.deps\trove4j\1.0.20200330\3afb14d5f9ceb459d724e907a21145e8ff394f02\trove4j-1.0.20200330.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\org.gradle.toolchains\foojay-resolver\0.8.0\51af701a9c5fb46bb66a0e5ab9d6ef22720d7ec6\foojay-resolver-0.8.0.jar;D:\Users\Scarada\.gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.10.1\b3add478d4382b78ea20b1671390a858002feb6c\gson-2.10.1.jar;D:\Users\Scarada\.gradle\caches\8.5\kotlin-dsl\accessors\0e3ba65a237b0d321d39e799b42a4f8a\classes;D:\Users\Scarada\.gradle\caches\8.5\kotlin-dsl\accessors\55df801db12130f7223dd7abcf2e718d-PS\classes;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\gradle-core-8.5.jar;D:\Users\Scarada\.gradle\wrapper\dists\gradle-8.5-bin\5t9huq95ubn472n8rpzujfbqh\gradle-8.5\lib\gradle-core-api-8.5.jar" org.jetbrains.kotlin.cli.jvm.K2JVMCompiler -kotlin-home "C:\Users\Scarada\AppData\Local\Programs\IntelliJ IDEA Community Edition\plugins\Kotlin\kotlinc" -script C:\Users\Scarada\Documents\GitHub\Auroomy\Котлин-версия\Auroomy\build.gradle.kts
build.gradle.kts:1:1: error: unresolved reference: plugins
plugins {
^
build.gradle.kts:2:5: error: expression 'kotlin' cannot be invoked as a function. The function 'invoke()' is not found
    kotlin("jvm") version "2.0.20"
    ^
build.gradle.kts:2:5: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public val <T : Any> Class<TypeVariable(T)>.kotlin: KClass<TypeVariable(T)> defined in kotlin.jvm
    kotlin("jvm") version "2.0.20"
    ^
build.gradle.kts:3:5: error: unresolved reference: application
    application
    ^
build.gradle.kts:6:1: error: unresolved reference: group
group = "ru.deflecta.auroomy"
^
build.gradle.kts:7:1: error: unresolved reference: version
version = "1.0-SNAPSHOT"
^
build.gradle.kts:9:1: error: unresolved reference: repositories
repositories {
^
build.gradle.kts:10:5: error: unresolved reference: mavenCentral
    mavenCentral()
    ^
build.gradle.kts:11:5: error: unresolved reference: maven
    maven("https://jitpack.io") // Для JDA
    ^
build.gradle.kts:14:1: error: unresolved reference: dependencies
dependencies {
^
build.gradle.kts:15:5: error: unresolved reference: implementation
    implementation("net.dv8tion:JDA:5.1.1") {
    ^
build.gradle.kts:16:9: error: unresolved reference: exclude
        exclude(module = "opus-java") // Не использую голосовые функции
        ^
build.gradle.kts:18:5: error: unresolved reference: implementation
    implementation("com.squareup.okio:okio:3.9.1")
    ^
build.gradle.kts:19:5: error: unresolved reference: implementation
    implementation("com.google.apis:google-api-services-androidpublisher:v3-rev20240917-2.0.0") // Google Play Developer API
    ^
build.gradle.kts:20:5: error: unresolved reference: implementation
    implementation("com.google.auth:google-auth-library-oauth2-http:1.27.0")
    ^
build.gradle.kts:21:5: error: unresolved reference: implementation
    implementation("commons-codec:commons-codec:1.16.0")
    ^
build.gradle.kts:22:5: error: unresolved reference: implementation
    implementation("com.google.guava:guava:32.1.2-android")
    ^
build.gradle.kts:23:5: error: unresolved reference: implementation
    implementation("com.google.http-client:google-http-client-jackson2:1.45.0")
    ^
build.gradle.kts:26:1: error: unresolved reference: application
application {
^
build.gradle.kts:27:5: error: unresolved reference: mainClass
    mainClass.set("ru.deflecta.auroomy.BotKt")
    ^
build.gradle.kts:30:1: error: expression 'kotlin' cannot be invoked as a function. The function 'invoke()' is not found
kotlin {
^
build.gradle.kts:30:1: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public val <T : Any> Class<TypeVariable(T)>.kotlin: KClass<TypeVariable(T)> defined in kotlin.jvm
kotlin {
^
build.gradle.kts:31:5: error: unresolved reference: jvmToolchain
    jvmToolchain(21)
    ^
build.gradle.kts:34:1: error: unresolved reference: tasks
tasks.test {
^
build.gradle.kts:35:5: error: unresolved reference: useJUnitPlatform
    useJUnitPlatform()
    ^

Process finished with exit code 1