forked from MovingBlocks/gestalt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (59 loc) · 1.88 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
// Only needed for the two Android modules as of April 2021
buildscript {
repositories {
mavenCentral()
// Needed for the Android Gradle Plugin to work
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
}
}
plugins {
id 'idea'
}
ext {
// Android version support
android_annotation_version = "28.0.0"
// Standard Utility
guava_version = "27.0.1-android"
slf4j_version = "1.7.25"
gson_version = "2.8.5"
jcip_annotation_version = "1.0"
// Testing
junit_version = "4.12"
logback_version = "1.2.3"
mockito_version = "1.10.19"
}
allprojects {
repositories {
google()
mavenCentral()
// Terasology Artifactory instance for libs not readily available elsewhere plus our own libs
maven {
def repoViaEnv = System.getenv()["RESOLUTION_REPO"]
if (rootProject.hasProperty("alternativeResolutionRepo")) {
// If the user supplies an alternative repo via gradle.properties then use that
name "from alternativeResolutionRepo property"
url alternativeResolutionRepo
} else if (repoViaEnv != null && repoViaEnv != "") {
name "from \$RESOLUTION_REPO"
url = repoViaEnv
} else {
// Our default is the main virtual repo containing everything except repos for testing Artifactory itself
name "Terasology Artifactory"
url "http://artifactory.terasology.org/artifactory/virtual-repo-live"
allowInsecureProtocol true // 😱
}
}
// SemVer lib
maven {
url 'https://heisluft.de/maven'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}