Skip to content

Commit

Permalink
Fix: syntax issue in non-live regular Gradle files
Browse files Browse the repository at this point in the history
  • Loading branch information
Cervator committed Dec 15, 2024
1 parent a204ea8 commit 4e12a75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions templates/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ buildscript {
if (rootProject.hasProperty("alternativeResolutionRepo")) {
// If the user supplies an alternative repo via gradle.properties then use that
name = "from alternativeResolutionRepo property"
url = URI(rootProject.properties["alternativeResolutionRepo"] as String)
url = rootProject.properties["alternativeResolutionRepo"]
} else if (repoViaEnv != null && repoViaEnv != "") {
name = "from \$RESOLUTION_REPO"
url = URI(repoViaEnv)
url = repoViaEnv
} else {
// Our default is the main virtual repo containing everything except repos for testing Artifactory itself
name = "Terasology Artifactory"
url = URI("https://artifactory.terasology.io/artifactory/virtual-repo-live")
url = "https://artifactory.terasology.io/artifactory/virtual-repo-live"
}
}

Expand Down
6 changes: 3 additions & 3 deletions templates/facades.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ repositories {
if (rootProject.hasProperty("alternativeResolutionRepo")) {
// If the user supplies an alternative repo via gradle.properties then use that
name = "from alternativeResolutionRepo property"
url = URI(rootProject.properties["alternativeResolutionRepo"] as String)
url = rootProject.properties["alternativeResolutionRepo"]
} else if (repoViaEnv != null && repoViaEnv != "") {
name = "from \$RESOLUTION_REPO"
url = URI(repoViaEnv)
url = repoViaEnv
} else {
// Our default is the main virtual repo containing everything except repos for testing Artifactory itself
name = "Terasology Artifactory"
url = URI("https://artifactory.terasology.io/artifactory/virtual-repo-live")
url = "https://artifactory.terasology.io/artifactory/virtual-repo-live"
}
}
}
Expand Down

0 comments on commit 4e12a75

Please sign in to comment.