Getting a strange error: ```An exception occurred ...
# gradle
m
Getting a strange error:
Copy code
An exception occurred applying plugin request [id: 'org.jetbrains.kotlin.multiplatform']
> Failed to apply plugin 'org.jetbrains.kotlin.multiplatform'.
   > Circular evaluation detected: property(org.gradle.api.file.Directory, map(org.gradle.api.file.Directory <CIRCULAR REFERENCE> org.gradle.api.internal.file.DefaultFilePropertyFactory$PathToDirectoryTransformer@2b9dc739))
      -> map(org.gradle.api.file.Directory property(org.gradle.api.file.Directory, <CIRCULAR REFERENCE>) org.gradle.api.internal.file.DefaultFilePropertyFactory$PathToDirectoryTransformer@2b9dc739)
      -> property(org.gradle.api.file.Directory, map(org.gradle.api.file.Directory <CIRCULAR REFERENCE> org.gradle.api.internal.file.DefaultFilePropertyFactory$PathToDirectoryTransformer@2b9dc739))
My `build.gradle.kts`:
Copy code
group = "com.martmists.skript"
version = "1.0-SNAPSHOT"

subprojects {
    group = rootProject.group
    version = rootProject.version
    layout.buildDirectory = rootProject.layout.buildDirectory.dir(name)

    repositories {
        mavenCentral()
        google()
    }
}
The subproject `build.gradle.kts`:
Copy code
plugins {
    kotlin("multiplatform")
}

kotlin {
    linuxX64()
}
The buildSrc `build.gradle.kts`:
Copy code
plugins {
    `kotlin-dsl`
}

repositories {
    gradlePluginPortal()
    mavenCentral()
    google()
    maven("<https://maven.martmists.com/releases|https://maven.martmists.com/releases>")
}

dependencies {
    implementation(kotlin("gradle-plugin", "2.0.20"))
}
h
Why do you set any build directory to the root directory that causes the circular dependency conflict?
And you don’t need the allprojects at all. Define the group and version in the root dir gradle.properties file and move the repository into the settings file