1 /* 2 * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. 3 */ <lambda>null4pluginManagement { 5 val build_snapshot_train: String? by settings 6 repositories { 7 val cacheRedirectorEnabled = System.getenv("CACHE_REDIRECTOR")?.toBoolean() == true 8 if (cacheRedirectorEnabled) { 9 println("Redirecting repositories for buildSrc buildscript") 10 maven("https://cache-redirector.jetbrains.com/plugins.gradle.org/m2") 11 } else { 12 maven("https://plugins.gradle.org/m2") 13 } 14 if (build_snapshot_train?.toBoolean() == true) { 15 mavenLocal() 16 } 17 } 18 } 19