File tree 2 files changed +18
-17
lines changed
2 files changed +18
-17
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import java.util.*
6
6
7
- buildscript {
8
- val cacheRedirectorEnabled = System .getenv(" CACHE_REDIRECTOR" )?.toBoolean() == true
9
-
10
- if (cacheRedirectorEnabled) {
11
- println (" Redirecting repositories for buildSrc buildscript" )
12
- }
13
-
14
- repositories {
15
- if (cacheRedirectorEnabled) {
16
- maven(" https://cache-redirector.jetbrains.com/plugins.gradle.org/m2" )
17
- } else {
18
- maven(" https://plugins.gradle.org/m2" )
19
- }
20
- }
21
- }
22
-
23
7
plugins {
24
8
`kotlin- dsl`
25
9
}
@@ -42,7 +26,7 @@ kotlinDslPluginOptions {
42
26
experimentalWarning.set(false )
43
27
}
44
28
45
- private val props = Properties ().apply {
29
+ val props = Properties ().apply {
46
30
file(" ../gradle.properties" ).inputStream().use { load(it) }
47
31
}
48
32
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3
+ */
4
+
5
+ pluginManagement {
6
+ repositories {
7
+ val cacheRedirectorEnabled = System .getenv(" CACHE_REDIRECTOR" )?.toBoolean() == true
8
+
9
+ if (cacheRedirectorEnabled) {
10
+ println (" Redirecting repositories for buildSrc buildscript" )
11
+
12
+ maven(" https://cache-redirector.jetbrains.com/plugins.gradle.org/m2" )
13
+ } else {
14
+ maven(" https://plugins.gradle.org/m2" )
15
+ }
16
+ }
17
+ }
You can’t perform that action at this time.
0 commit comments