Skip to content

Commit b7d44ea

Browse files
committed
Added option to depend on latest mindustry version
1 parent 202e599 commit b7d44ea

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

build.gradle

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ repositories{
1414
metadataSources{ artifact() }
1515
}
1616

17+
//"Latest" option to depend on BE builds.
18+
ivy{
19+
url 'https://github.com/'
20+
patternLayout{artifact '/[organisation]/[module]/releases/download/master/[revision].jar'}
21+
metadataSources{ artifact() }
22+
}
23+
1724
//Do the same with jabel
1825
ivy{
1926
url 'https://github.com/'
@@ -28,8 +35,7 @@ java{
2835
}
2936

3037
ext{
31-
//the build number that this mod is made for
32-
mindustryVersion = 'v155.4'
38+
mindustryVersion = 'v155.4' //the build number that this mod is made for
3339
jabelVersion = "93fde537c7"
3440
isWindows = System.getProperty("os.name").toLowerCase().contains("windows")
3541
sdkRoot = System.getenv("ANDROID_HOME") ?: System.getenv("ANDROID_SDK_ROOT")
@@ -45,7 +51,9 @@ allprojects{
4551
}
4652

4753
dependencies{
48-
compileOnly "Anuken:Mindustry:$mindustryVersion"
54+
def useLatest = false //set to "true" to always depend on the newest version of mindustry
55+
56+
compileOnly useLatest ? "Anuken:MindustryBuilds:latest" : "Anuken:Mindustry:$mindustryVersion"
4957

5058
annotationProcessor "Anuken:jabel:v1.0.0"
5159
}

0 commit comments

Comments
 (0)