@@ -10,12 +10,12 @@ buildscript {
10
10
google()
11
11
}
12
12
dependencies {
13
- classpath ' com.android.tools.build:gradle:7.4.1'
13
+ classpath( " com.android.tools.build:gradle:7.4.1" )
14
14
}
15
15
}
16
16
17
17
plugins {
18
- id ' idea'
18
+ id( " idea" )
19
19
}
20
20
21
21
allprojects {
@@ -25,24 +25,24 @@ allprojects {
25
25
26
26
// Terasology Artifactory instance for libs not readily available elsewhere plus our own libs
27
27
maven {
28
- def repoViaEnv = System . getenv()[ " RESOLUTION_REPO" ]
28
+ val repoViaEnv = System .getenv(" RESOLUTION_REPO" )
29
29
if (rootProject.hasProperty(" alternativeResolutionRepo" )) {
30
30
// If the user supplies an alternative repo via gradle.properties then use that
31
- name " from alternativeResolutionRepo property"
32
- url alternativeResolutionRepo
33
- } else if (repoViaEnv != null && repoViaEnv != " " ) {
34
- name " from \$ RESOLUTION_REPO"
35
- url = repoViaEnv
31
+ name = " from alternativeResolutionRepo property"
32
+ url = uri(rootProject.property( " alternativeResolutionRepo" ) as String )
33
+ } else if (! repoViaEnv.isNullOrEmpty() ) {
34
+ name = " from \$ RESOLUTION_REPO"
35
+ url = uri( repoViaEnv)
36
36
} else {
37
37
// Our default is the main virtual repo containing everything except repos for testing Artifactory itself
38
- name " Terasology Artifactory"
39
- url " https://artifactory.terasology.io/artifactory/virtual-repo-live"
38
+ name = " Terasology Artifactory"
39
+ url = uri( " https://artifactory.terasology.io/artifactory/virtual-repo-live" )
40
40
}
41
41
}
42
42
43
43
// SemVer lib
44
44
maven {
45
- url ' https://heisluft.de/maven'
45
+ url = uri( " https://heisluft.de/maven" )
46
46
}
47
47
}
48
48
}
0 commit comments