forked from MegaMek/megameklab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
52 lines (42 loc) · 1.5 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
plugins {
id 'org.ajoberstar.grgit' version '5.0.0'
}
allprojects {
apply plugin: 'java'
sourceCompatibility = 11
targetCompatibility = 11
repositories {
mavenLocal()
maven {
url 'https://github.com/MegaMek/mavenrepo/raw/master'
}
mavenCentral()
maven {
url 'https://jitpack.io'
}
}
}
subprojects {
group = 'org.megamek'
version = '0.49.20-SNAPSHOT'
}
ext {
mmGitRoot = 'https://github.com/MegaMek/megamek.git'
mmlGitRoot = 'https://github.com/MegaMek/megameklab.git'
// Work on MML or MHQ sometimes requires changes in MM as well. The maven publishing tasks use
// these properties to append the branch name to the artifact id if the repo is not in the master
// branch, making it available separately to the child project.
mmlBranch = grgit.branch.current().name
mmlBranchTag = mmlBranch.equals('master') ? '' : '-' + mmlBranch
// Allows setting a dependency on a different MM branch.
mmBranch = 'master'
mmBranchTag = mmBranch.equals('master') ? '' : '-' + mmBranch
mmDir = "${rootDir}/../megamek"
}
// A properties_local.gradle file can be used to override any of the above options. For instance,
// rootProject.ext.mmlGitRoot = 'file:///path/to/local/repo' will cause the release target to clone a
// local copy of the repository rather than downloading it.
def localProperties = file('properties_local.gradle')
if (localProperties.exists()) {
apply from: localProperties
}