From 4b3a989b90f443047e2abd028aa86fdc167bf82e Mon Sep 17 00:00:00 2001 From: Vyacheslav Gerasimov Date: Sat, 9 Jun 2018 19:55:21 +0300 Subject: [PATCH] Build: Workaround IndexOutOfBoundsException on configuration with gradle 4.7 Using delegated property syntax somehow causes IndexOutOfBoundsException from kotlin-reflect, needs further investigation Should be reverted after #KT-23413 is resolved --- build.gradle.kts | 2 +- build.gradle.kts.182 | 2 +- prepare/cidr-plugin/build.gradle.kts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 40e04e2ac6e..7d6c7989adb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -286,7 +286,7 @@ allprojects { // therefore it is disabled by default // buildDir = File(commonBuildDir, project.name) - val repos: List by rootProject.extra + val repos = rootProject.extra["repos"] as List repositories { intellijSdkRepo(project) androidDxJarRepo(project) diff --git a/build.gradle.kts.182 b/build.gradle.kts.182 index 7ad82c22885..3359c210f9b 100644 --- a/build.gradle.kts.182 +++ b/build.gradle.kts.182 @@ -285,7 +285,7 @@ allprojects { // therefore it is disabled by default // buildDir = File(commonBuildDir, project.name) - val repos: List by rootProject.extra + val repos = rootProject.extra["repos"] as List repositories { intellijSdkRepo(project) androidDxJarRepo(project) diff --git a/prepare/cidr-plugin/build.gradle.kts b/prepare/cidr-plugin/build.gradle.kts index 730100db276..e5f4952be5c 100644 --- a/prepare/cidr-plugin/build.gradle.kts +++ b/prepare/cidr-plugin/build.gradle.kts @@ -20,7 +20,7 @@ dependencies { } val pluginXml by tasks.creating { - val kotlinVersion: String by rootProject.extra + val kotlinVersion = rootProject.extra["kotlinVersion"] as String val pluginFullVersionNumber = findProperty("pluginVersion") as? String ?: "$kotlinVersion-CIDR"