Skip to content

Commit b6f046e

Browse files
committed
πŸ¦€πŸ¦€πŸ¦€ JITPACK IS GONE πŸ¦€πŸ¦€πŸ¦€
1 parent 91474b6 commit b6f046e

1 file changed

Lines changed: 16 additions & 13 deletions

File tree

β€Žbuild.gradleβ€Ž

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,20 @@ sourceSets.main.java.srcDirs = ["src"]
77
repositories{
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

1326
java{
@@ -33,19 +46,9 @@ allprojects{
3346
}
3447

3548
dependencies{
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

5154
tasks.register('jarAndroid'){

0 commit comments

Comments
Β (0)