Change a parameter "context" in script templates to environment: Map<String, Any?>?

This commit is contained in:
Ilya Chernikov
2016-06-21 18:34:34 +02:00
committed by Pavel V. Talanov
parent bf683a63fb
commit f30b402640
4 changed files with 9 additions and 9 deletions
@@ -35,7 +35,7 @@ class GradleScriptTemplateProvider(project: Project, gim: GradleInstallationMana
gradleLibsPath?.listFiles { file -> file.extension == "jar" && depLibsPrefixes.any { file.name.startsWith(it) } }
?.map { it.canonicalPath }
?: emptyList()
override val context: Any? = gradleHome
override val environment: Map<String, Any?>? = kotlin.collections.mapOf("gradleHome" to gradleHome)
companion object {
private val depLibsPrefixes = listOf("gradle-script-kotlin", "gradle-core")