11// Copyright 2021 The Terasology Foundation
22// SPDX-License-Identifier: Apache-2.0
3-
4- /*
5- * This is a Gradle build file:
6- * - Gradle Homepage: http://gradle.org/
7- * - Gradle Documentation: http://gradle.org/documentation
8- * - View tasks for this project: $ gradlew tasks
9- */
10-
113buildscript {
124 repositories {
135 google()
@@ -26,39 +18,51 @@ buildscript {
2618 }
2719 dependencies {
2820 classpath ' com.android.tools.build:gradle:3.5.3'
29- classpath ' org.terasology:reflections:0.9.12-MB'
30- // NOTE: Do not place your application dependencies here; they belong
31- // in the individual module build.gradle files
21+ classpath ' org.terasology:reflections:0.9.12-MB' // This goes away in v8
3222 }
33- ext {
34- // Android version support
35- android_annotation_version = " 28.0.0"
23+ }
3624
37- // Standard Utility
38- guava_version = " 27.0.1-android"
39- slf4j_version = " 1.7.25"
40- gson_version = " 2.8.5"
41- jcip_annotation_version = " 1.0"
25+ ext {
26+ // Android version support
27+ android_annotation_version = " 28.0.0"
4228
43- // Testing
44- junit_version = " 4.13.2"
45- jupiter_version = " 5.7.1"
46- logback_version = " 1.2.3"
47- mockito_version = " 3.7.7"
48- }
29+ // Standard Utility
30+ guava_version = " 27.0.1-android"
31+ slf4j_version = " 1.7.25"
32+ gson_version = " 2.8.5"
33+ jcip_annotation_version = " 1.0"
34+
35+ // Testing
36+ junit_version = " 4.13.2"
37+ jupiter_version = " 5.7.1"
38+ logback_version = " 1.2.3"
39+ mockito_version = " 3.7.7"
4940}
5041
5142allprojects {
5243 repositories {
5344 google()
5445 mavenCentral()
55- // org.jetbrains.trove4j:trove4j
56- gradlePluginPortal()
46+
47+ // Terasology Artifactory instance for libs not readily available elsewhere plus our own libs
5748 maven {
58- name = " Terasology Artifactory"
59- url = " http://artifactory.terasology.org/artifactory/libs-release-local"
60- allowInsecureProtocol = true // 😱
49+ def repoViaEnv = System . getenv()[" RESOLUTION_REPO" ]
50+ if (rootProject. hasProperty(" alternativeResolutionRepo" )) {
51+ // If the user supplies an alternative repo via gradle.properties then use that
52+ name " from alternativeResolutionRepo property"
53+ url alternativeResolutionRepo
54+ } else if (repoViaEnv != null && repoViaEnv != " " ) {
55+ name " from \$ RESOLUTION_REPO"
56+ url = repoViaEnv
57+ } else {
58+ // Our default is the main virtual repo containing everything except repos for testing Artifactory itself
59+ name " Terasology Artifactory"
60+ url " http://artifactory.terasology.org/artifactory/virtual-repo-live"
61+ allowInsecureProtocol true // 😱
62+ }
6163 }
64+
65+ // SemVer lib
6266 maven {
6367 url ' https://heisluft.de/maven'
6468 }
@@ -71,5 +75,3 @@ description = 'A set of libraries providing core capabilities for games and game
7175task clean (type : Delete ) {
7276 delete rootProject. buildDir
7377}
74-
75-
0 commit comments