blob: 227c9240ba7d0f89ba064ce6e36e9a52c5b6eef1 [file] [log] [blame] [edit]
buildscript {
ext.kotlin_root = "$rootDir/.."
apply from: 'versions.gradle'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_gradle_plugin_version}"
}
}
allprojects {
group = 'org.jetbrains.kotlin'
version = "$kotlin_version"
}
apply from: 'commonConfiguration.gradle'
subprojects {
repositories {
mavenCentral()
}
configurations {
scriptCompile
scriptRuntime.extendsFrom(scriptCompile)
}
dependencies {
scriptCompile "org.jetbrains.kotlin:kotlin-compiler-embeddable:${kotlin_gradle_plugin_version}"
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile) {
compilerJarFile = bootstrapCompilerFile
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
}
}
task clean {
doLast {
delete "${buildDir}/repo"
}
}
if (isSonatypeRelease) {
println 'Applying configuration for sonatype release'
apply from: 'prepareSonatypeStaging.gradle'
}