import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

buildscript {
    repositories { gradleScriptKotlin() }
    dependencies { classpath(kotlinModule("gradle-plugin")) }
}

allprojects {

    group = "org.gradle.script.kotlin.samples.multiprojectci"

    version = "1.0"

    configure(listOf(repositories, buildscript.repositories)) {
        gradleScriptKotlin()
    }
}

// Configure all KotlinCompile tasks on each sub-project
subprojects {
    tasks.withType<KotlinCompile> {
        println("Configuring ${name} in project ${project.name}...")
        kotlinOptions.suppressWarnings = true
    }
}

apply {
    plugin("base")
}

dependencies {
    // Make the root project archives configuration depend on every subproject
    subprojects.forEach {
        archives(it)
    }
}

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

buildscript {
    repositories { gradleScriptKotlin() }
    dependencies { classpath(kotlinModule("gradle-plugin")) }
}

allprojects {

    group = "org.gradle.script.kotlin.samples.multiprojectci"

    version = "1.0"

    configure(listOf(repositories, buildscript.repositories)) {
        gradleScriptKotlin()
    }
}

// Configure all KotlinCompile tasks on each sub-project
subprojects {
    tasks.withType<KotlinCompile> {
        println("Configuring ${name} in project ${project.name}...")
        kotlinOptions {
            suppressWarnings = true
        }
    }
}

apply {
    plugin("base")
}

dependencies {
    // Make the root project archives configuration depend on every subproject
    subprojects.forEach {
        archives(it)
    }
}

Revert sample to block structure
Revert sample to block structure

After upgrade to distro containing Kotlin 1.1-M02.

gradle/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle-script-kotlin,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle-script-kotlin,robinverduijn/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle