blob: b95452929b6961639d6fe38447ff6c7cfd85209f [file] [log] [blame]
Vsevolod Tolstopyatovfa2231c2019-05-29 17:39:15 +03001/*
2 * Copyright 2017-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 */
4
5gradle.taskGraph.whenReady {
6 println("Using Kotlin compiler version: $compilerVersion")
7 if (build_snapshot_train) {
Leonid Startseva1482602020-08-03 14:40:25 +03008 configure(subprojects.findAll { it.name == "core" }) {
Vsevolod Tolstopyatovfa2231c2019-05-29 17:39:15 +03009 configurations.matching { it.name == "kotlinCompilerClasspath" }.all {
10 println "Manifest of kotlin-compiler-embeddable.jar for serialization"
11 resolvedConfiguration.getFiles().findAll { it.name.contains("kotlin-compiler-embeddable") }.each {
12 def manifest = zipTree(it).matching {
13 include 'META-INF/MANIFEST.MF'
14 }.getFiles().first()
15
16 manifest.readLines().each {
17 println it
18 }
19 }
20 }
21 }
22 }
23}