Skip to content

Commit 4e12a75

Browse files
committed
Fix: syntax issue in non-live regular Gradle files
1 parent a204ea8 commit 4e12a75

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

templates/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ buildscript {
1111
if (rootProject.hasProperty("alternativeResolutionRepo")) {
1212
// If the user supplies an alternative repo via gradle.properties then use that
1313
name = "from alternativeResolutionRepo property"
14-
url = URI(rootProject.properties["alternativeResolutionRepo"] as String)
14+
url = rootProject.properties["alternativeResolutionRepo"]
1515
} else if (repoViaEnv != null && repoViaEnv != "") {
1616
name = "from \$RESOLUTION_REPO"
17-
url = URI(repoViaEnv)
17+
url = repoViaEnv
1818
} else {
1919
// Our default is the main virtual repo containing everything except repos for testing Artifactory itself
2020
name = "Terasology Artifactory"
21-
url = URI("https://artifactory.terasology.io/artifactory/virtual-repo-live")
21+
url = "https://artifactory.terasology.io/artifactory/virtual-repo-live"
2222
}
2323
}
2424

templates/facades.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ repositories {
1515
if (rootProject.hasProperty("alternativeResolutionRepo")) {
1616
// If the user supplies an alternative repo via gradle.properties then use that
1717
name = "from alternativeResolutionRepo property"
18-
url = URI(rootProject.properties["alternativeResolutionRepo"] as String)
18+
url = rootProject.properties["alternativeResolutionRepo"]
1919
} else if (repoViaEnv != null && repoViaEnv != "") {
2020
name = "from \$RESOLUTION_REPO"
21-
url = URI(repoViaEnv)
21+
url = repoViaEnv
2222
} else {
2323
// Our default is the main virtual repo containing everything except repos for testing Artifactory itself
2424
name = "Terasology Artifactory"
25-
url = URI("https://artifactory.terasology.io/artifactory/virtual-repo-live")
25+
url = "https://artifactory.terasology.io/artifactory/virtual-repo-live"
2626
}
2727
}
2828
}

0 commit comments

Comments
 (0)