11plugins {
2- id ' babric -loom' version ' 1.4.+ '
2+ id ' fabric -loom' version ' 1.10.0-bta '
33 id ' java'
4+ id ' maven-publish'
5+ }
6+
7+ import org.gradle.internal.os.OperatingSystem
8+
9+ project. ext. lwjglVersion = " 3.3.4"
10+
11+ switch (OperatingSystem . current()) {
12+ case OperatingSystem . LINUX :
13+ project. ext. lwjglNatives = " natives-linux"
14+ break
15+ case OperatingSystem . WINDOWS :
16+ project. ext. lwjglNatives = " natives-windows"
17+ break
18+ case OperatingSystem . MAC_OS :
19+ project. ext. lwjglNatives = " natives-macos"
20+ break
421}
522
623group = project. mod_group
724archivesBaseName = project. mod_name
825version = project. mod_version
926
1027loom {
11- gluedMinecraftJar()
1228 noIntermediateMappings()
13- customMinecraftManifest . set(" https://github.com/Turnip-Labs/ bta-manifest-repo/releases/download/v ${ project.bta_version } / ${ project.bta_version} .json" )
29+ customMinecraftMetadata . set(" https://downloads.betterthanadventure.net/ bta-client/ ${ project.bta_channel } /v ${ project.bta_version} /manifest .json" )
1430}
1531
1632repositories {
@@ -24,6 +40,14 @@ repositories {
2440 name = ' Fabric'
2541 url = ' https://maven.fabricmc.net/'
2642 }
43+ maven {
44+ name = ' SignalumMavenInfrastructure'
45+ url = ' https://maven.thesignalumproject.net/infrastructure'
46+ }
47+ maven {
48+ name = ' SignalumMavenReleases'
49+ url = ' https://maven.thesignalumproject.net/releases'
50+ }
2751 ivy {
2852 url = " https://github.com/Better-than-Adventure"
2953 patternLayout {
@@ -33,25 +57,17 @@ repositories {
3357 metadataSources { artifact() }
3458 }
3559 ivy {
36- url = " https://github.com/Turnip-Labs "
60+ url = " https://downloads.betterthanadventure.net/bta-client/ ${ project.bta_channel } / "
3761 patternLayout {
38- artifact " [organisation]/releases/download/ v[revision]/[module]-[revision] .jar"
62+ artifact " / v[revision]/client .jar"
3963 m2compatible = true
4064 }
4165 metadataSources { artifact() }
4266 }
4367 ivy {
44- url = " https://github.com/Turnip-Labs "
68+ url = " https://downloads.betterthanadventure.net/bta-server/ ${ project.bta_channel } / "
4569 patternLayout {
46- artifact " [organisation]/releases/download/[revision]/[module]-[revision].jar"
47- m2compatible = true
48- }
49- metadataSources { artifact() }
50- }
51- ivy {
52- url = " https://github.com/Turnip-Labs"
53- patternLayout {
54- artifact " [organisation]/releases/download/[revision]/[module]-bta-[revision].jar"
70+ artifact " /v[revision]/server.jar"
5571 m2compatible = true
5672 }
5773 metadataSources { artifact() }
@@ -64,44 +80,26 @@ repositories {
6480 }
6581 metadataSources { artifact() }
6682 }
67- ivy {
68- url = " https://github.com/MartinSVK12"
69- patternLayout {
70- artifact " [organisation]/releases/download/[revision]/[module]-[revision].jar"
71- m2compatible = true
72- }
73- metadataSources { artifact() }
74- }
75- ivy {
76- url = " https://github.com/UselessSolutions"
77- patternLayout {
78- artifact " [organisation]/releases/download/v[revision]/[module]-[revision].jar"
79- m2compatible = true
80- }
81- metadataSources { artifact() }
82- }
8383}
8484
8585dependencies {
86- minecraft " bta-download-repo:bta :${ project.bta_version} "
86+ minecraft " : :${ project.bta_version} "
8787 mappings loom. layered() {}
8888
8989 modRuntimeOnly " objects:client:43db9b498cb67058d2e12d394e6507722e71bb45" // https://piston-data.mojang.com/v1/objects/43db9b498cb67058d2e12d394e6507722e71bb45/client.jar
90- modImplementation " fabric-loader:fabric-loader:${ project.loader_version} "
91-
92- // Helper library
93- // If you do not need Halplibe you can comment this line out or delete this line
94- modImplementation " com.github.Turnip-Labs:bta-halplibe:${ project.halplibe_version} "
95- modImplementation " TerrainAPI:terrainapi:${ project.terrainapi_version} "
96- modImplementation project. files(" libs/catalyst-core-1.5.0.jar" )
97- modImplementation project. files(" libs/catalyst-fluids-1.3.0.jar" )
98- modImplementation " DragonFly:dragonfly:${ project.dragonfly_version} "
99- // modImplementation "BTA_Babric_PrismaticLibe:prismaticlibe:${project.prismatic_version}"
100- modImplementation project. files(" libs/modnametooltip-1.1.1.jar" )
101- modImplementation project. files(" libs/btwaila-1.1.2-7.2-pre2.jar" )
102- modImplementation project. files(" libs/enchantmentlib-1.0.3.jar" )
103-
104- modImplementation " ModMenu:ModMenu:2.0.4"
90+ modImplementation " net.fabricmc:fabric-loader:${ project.loader_version} "
91+
92+ modImplementation(" turniplabs:halplibe:${ project.halplibe_version} " )
93+
94+ modImplementation(" turniplabs:modmenu-bta:${ project.mod_menu_version} " )
95+
96+ modImplementation(project. files(" libs/dragonfly-${ project.dragonfly_version} .jar" ))
97+ modImplementation(project. files(" libs/tmb-${ project.tmb_version} .jar" ))
98+ modImplementation(project. files(" libs/btwaila-${ project.btwaila_version} .jar" ))
99+ modImplementation(project. files(" libs/catalyst-core-2.1.4-7.3_04.jar" ))
100+ modImplementation(project. files(" libs/catalyst-fluids-2.1.7-7.3_04.jar" ))
101+ modImplementation(project. files(" libs/catalyst-multiblocks-2.1.0-7.3_04.jar" ))
102+ modImplementation(project. files(" libs/enchantmentlib-1.0.5-7.3_04.jar" ))
105103
106104 implementation " org.slf4j:slf4j-api:1.8.0-beta4"
107105 implementation " org.apache.logging.log4j:log4j-slf4j18-impl:2.16.0"
@@ -114,6 +112,20 @@ dependencies {
114112 implementation(" org.apache.logging.log4j:log4j-1.2-api:${ log4jVersion} " )
115113
116114 include(implementation(" org.apache.commons:commons-lang3:3.12.0" ))
115+ modImplementation(" com.github.zarzelcow:legacy-lwjgl3:1.0.4" )
116+
117+ runtimeOnly " org.lwjgl:lwjgl::$lwjglNatives "
118+ runtimeOnly " org.lwjgl:lwjgl-assimp::$lwjglNatives "
119+ runtimeOnly " org.lwjgl:lwjgl-glfw::$lwjglNatives "
120+ runtimeOnly " org.lwjgl:lwjgl-openal::$lwjglNatives "
121+ runtimeOnly " org.lwjgl:lwjgl-opengl::$lwjglNatives "
122+ runtimeOnly " org.lwjgl:lwjgl-stb::$lwjglNatives "
123+ implementation " org.lwjgl:lwjgl:$lwjglVersion "
124+ implementation " org.lwjgl:lwjgl-assimp:$lwjglVersion "
125+ implementation " org.lwjgl:lwjgl-glfw:$lwjglVersion "
126+ implementation " org.lwjgl:lwjgl-openal:$lwjglVersion "
127+ implementation " org.lwjgl:lwjgl-opengl:$lwjglVersion "
128+ implementation " org.lwjgl:lwjgl-stb:$lwjglVersion "
117129}
118130
119131java {
@@ -132,6 +144,10 @@ jar {
132144 }
133145}
134146
147+ configurations. configureEach {
148+ exclude group : " org.lwjgl.lwjgl"
149+ }
150+
135151processResources {
136152 inputs. property " version" , version
137153
0 commit comments