[kotlin compiler][update] 1.2.40-dev-610
Switch to pinned teamcity builds.
This commit is contained in:
committed by
Vasily Levchenko
parent
9e8d784dac
commit
1a0f9bfe2e
Vendored
-83
@@ -37,89 +37,6 @@ buildscript {
|
||||
}
|
||||
}
|
||||
|
||||
def kotlinGradleModule = "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinGradlePluginVersion"
|
||||
def kotlinStdLibJdk8Module = "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlinStdLibJdk8Version"
|
||||
|
||||
def modules = ['compiler' : kotlinCompilerModule,
|
||||
'gradle_plugin' : kotlinGradleModule,
|
||||
'stdlib_jdk8' : kotlinStdLibJdk8Module,
|
||||
'stdlib' : kotlinStdLibModule,
|
||||
'reflect' : kotlinReflectModule,
|
||||
'script_runtime': kotlinScriptRuntimeModule
|
||||
]
|
||||
|
||||
Map.metaClass.moduleEntry = { key, version ->
|
||||
delegate[key] = "org.jetbrains.kotlin:kotlin-${key.replace('_', '-')}:$version"
|
||||
}
|
||||
|
||||
modules.moduleEntry('gradle_plugin_api', kotlinGradlePluginApiVersion)
|
||||
modules.moduleEntry('compiler_embeddable', kotlinCompilerEmbeddableVersion)
|
||||
modules.moduleEntry('annotation_processing_gradle', kotlinAnnotationProcessingGradleVersion)
|
||||
modules.moduleEntry('android_extensions', kotlinAndroidExtensionsVersion)
|
||||
modules.moduleEntry('compiler_runner', kotlinCompilerRunnerVersion)
|
||||
modules.moduleEntry('stdlib_jre7', kotlinStdLibJdk7Version)
|
||||
modules.moduleEntry('build_common', kotlinBuildCommonVersion)
|
||||
modules.moduleEntry('daemon_client', kotlinDaemonClientVersion)
|
||||
|
||||
private static String configurationJar(x) {
|
||||
"kotlin_${x}_jar".toString()
|
||||
}
|
||||
|
||||
private static String configurationPom(x) {
|
||||
"kotlin_${x}_pom".toString()
|
||||
}
|
||||
|
||||
private static String configurationSrc(x) {
|
||||
"kotlin_${x}_src".toString()
|
||||
}
|
||||
|
||||
private static String configurationDoc(x) {
|
||||
"kotlin_${x}_doc".toString()
|
||||
}
|
||||
|
||||
modules.forEach{ x, _ ->
|
||||
configurations.create(configurationJar(x))
|
||||
configurations.create(configurationPom(x))
|
||||
configurations.create(configurationSrc(x))
|
||||
configurations.create(configurationDoc(x))
|
||||
}
|
||||
|
||||
modules.forEach { k, v ->
|
||||
dependencies.add(configurationJar(k), "${v}@jar")
|
||||
dependencies.add(configurationPom(k), "${v}@pom")
|
||||
dependencies.add(configurationSrc(k), "${v}:sources@jar")
|
||||
dependencies.add(configurationDoc(k), "${v}:javadoc@jar")
|
||||
}
|
||||
|
||||
// TODO: Check if we really need the our bintray mirror and delete the uploading code below if we don't.
|
||||
repositories {
|
||||
maven { url kotlinCompilerRepo }
|
||||
}
|
||||
|
||||
def uploads = modules.keySet()
|
||||
uploads.each { target ->
|
||||
task("${target}Upload", type:GradleBuild) {
|
||||
tasks = ['bintrayUpload']
|
||||
buildFile project.file("upload.gradle")
|
||||
dir project.projectDir
|
||||
startParameter.projectProperties = [
|
||||
'user' : "${project.hasProperty('bintrayUser') ? project['bintrayUser'] : System.getenv('BINTRAY_USER')}",
|
||||
'key' : "${ project.hasProperty('bintrayKey') ? project.property('bintrayKey') : System.getenv('BINTRAY_KEY')}",
|
||||
'module' : modules["${target}"],
|
||||
'jar' : project.configurations.getByName(configurationJar(target)).files.collect {it.path},
|
||||
'src' : project.configurations.getByName(configurationSrc(target)).files.collect {it.path},
|
||||
'doc' : project.configurations.getByName(configurationDoc(target)).files.collect {it.path},
|
||||
'pom' : project.configurations.getByName(configurationPom(target)).files.collect {it.path},
|
||||
'override': project.hasProperty("override") && project["override"]
|
||||
]
|
||||
startParameter.useEmptySettings()
|
||||
}
|
||||
}
|
||||
|
||||
task update_kotlin_compiler(type: DefaultTask) {
|
||||
dependsOn uploads.collect{"${it}Upload"}
|
||||
}
|
||||
|
||||
abstract class NativeDep extends DefaultTask {
|
||||
static final String baseUrl = "https://download.jetbrains.com/kotlin/native"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user