From 35b2b762cd91f223477d142f79a2f9fb92d62212 Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Tue, 10 Jul 2018 00:00:29 +0300 Subject: [PATCH] Pill: fix name of ignored kotlin-scripting compiler plugin --- buildSrc/src/main/kotlin/pill/parser.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/pill/parser.kt b/buildSrc/src/main/kotlin/pill/parser.kt index 33f2e37c822..15e40c44341 100644 --- a/buildSrc/src/main/kotlin/pill/parser.kt +++ b/buildSrc/src/main/kotlin/pill/parser.kt @@ -1,3 +1,8 @@ +/* + * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license + * that can be found in the license/LICENSE.txt file. + */ + @file:Suppress("PackageDirectoryMismatch") package org.jetbrains.kotlin.pill @@ -290,7 +295,7 @@ private fun getKotlinOptions(kotlinCompileTask: Any): PSourceRootKotlinOptions? val loadBuiltinsFromDependencies = "Xload-builtins-from-dependencies" fun isOptionForScriptingCompilerPlugin(option: String) - = option.startsWith("-Xplugin=") && option.contains("kotlin-scripting-gradle") + = option.startsWith("-Xplugin=") && option.contains("kotlin-scripting-compiler") val extraArguments = compileArguments.filter { it.startsWith("-X") && !isOptionForScriptingCompilerPlugin(it)