forked from MegaMek/megamek
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
39 lines (31 loc) · 1.16 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
plugins {
id 'org.ajoberstar.grgit' version '2.3.0'
}
allprojects {
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
maven { url 'https://jitpack.io' } // SerialKiller master branch
}
}
subprojects {
group = 'org.megamek'
version = '0.47.10-SNAPSHOT'
}
ext {
mmGitRoot = 'https://github.com/MegaMek/megamek.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.
mmBranch = grgit.branch.current().name
mmBranchTag = mmBranch.equals('master')? '' : '-' + mmBranch
}
// A properties_local.gradle file can be used to override any of the above options. For instance,
// rootProject.ext.gitRoot = '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
}