Vsevolod Tolstopyatov | fa2231c | 2019-05-29 17:39:15 +0300 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. |
| 3 | */ |
| 4 | |
| 5 | gradle.taskGraph.whenReady { |
| 6 | println("Using Kotlin compiler version: $compilerVersion") |
| 7 | if (build_snapshot_train) { |
Leonid Startsev | a148260 | 2020-08-03 14:40:25 +0300 | [diff] [blame] | 8 | configure(subprojects.findAll { it.name == "core" }) { |
Vsevolod Tolstopyatov | fa2231c | 2019-05-29 17:39:15 +0300 | [diff] [blame] | 9 | 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 | } |