File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,20 @@ sourceSets.main.java.srcDirs = ["src"]
77repositories {
88 mavenCentral()
99 maven{ url = " https://raw.githubusercontent.com/Zelaux/MindustryRepo/master/repository" }
10- maven{ url = ' https://www.jitpack.io' }
10+
11+ // Downloads the server-release JAR file from Mindustry releases; does not use any real repository. Surprisingly, this is the most reliable option.
12+ ivy{
13+ url ' https://github.com/'
14+ patternLayout{artifact ' /[organisation]/[module]/releases/download/[revision]/server-release.jar' }
15+ metadataSources{ artifact() }
16+ }
17+
18+ // Do the same with jabel
19+ ivy{
20+ url ' https://github.com/'
21+ patternLayout{artifact ' /[organisation]/[module]/releases/download/[revision]/jabel.jar' }
22+ metadataSources{ artifact() }
23+ }
1124}
1225
1326java {
@@ -33,19 +46,9 @@ allprojects{
3346}
3447
3548dependencies {
36- compileOnly " com.github.Anuken.Arc:arc-core:$mindustryVersion "
37- compileOnly " com.github.Anuken.Mindustry:core:$mindustryVersion "
49+ compileOnly " Anuken:Mindustry:$mindustryVersion "
3850
39- annotationProcessor " com.github.Anuken:jabel:$jabelVersion "
40- }
41-
42- // force arc version
43- configurations. configureEach {
44- resolutionStrategy. eachDependency { details ->
45- if (details. requested. group == ' com.github.Anuken.Arc' ){
46- details. useVersion " $mindustryVersion "
47- }
48- }
51+ annotationProcessor " Anuken:jabel:v1.0.0"
4952}
5053
5154tasks. register(' jarAndroid' ){
You canβt perform that action at this time.
0 commit comments