|
| 1 | +plugins { |
| 2 | + id 'babric-loom' version '1.4.+' |
| 3 | + id 'java' |
| 4 | +} |
| 5 | + |
| 6 | +group = project.mod_group |
| 7 | +archivesBaseName = project.mod_name |
| 8 | +version = project.mod_version |
| 9 | + |
| 10 | +loom { |
| 11 | + gluedMinecraftJar() |
| 12 | + noIntermediateMappings() |
| 13 | + customMinecraftManifest.set("https://github.com/Turnip-Labs/bta-manifest-repo/releases/download/v${project.bta_version}/${project.bta_version}.json") |
| 14 | +} |
| 15 | + |
| 16 | +dependencies { |
| 17 | + if(findProject(":catalyst") != null){ |
| 18 | + implementation project(path: ':catalyst', configuration: "namedElements") |
| 19 | + } else { |
| 20 | + implementation project(path: ':', configuration: "namedElements") |
| 21 | + } |
| 22 | + |
| 23 | + minecraft "bta-download-repo:bta:${project.bta_version}" |
| 24 | + mappings loom.layered() {} |
| 25 | + |
| 26 | + implementation "org.slf4j:slf4j-api:1.8.0-beta4" |
| 27 | + implementation "org.apache.logging.log4j:log4j-slf4j18-impl:2.16.0" |
| 28 | + implementation 'com.google.guava:guava:33.0.0-jre' |
| 29 | + implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.9' |
| 30 | + var log4jVersion = "2.20.0" |
| 31 | + implementation("org.apache.logging.log4j:log4j-core:${log4jVersion}") |
| 32 | + implementation("org.apache.logging.log4j:log4j-api:${log4jVersion}") |
| 33 | + implementation("org.apache.logging.log4j:log4j-1.2-api:${log4jVersion}") |
| 34 | + |
| 35 | + modRuntimeOnly "objects:client:43db9b498cb67058d2e12d394e6507722e71bb45" // https://piston-data.mojang.com/v1/objects/43db9b498cb67058d2e12d394e6507722e71bb45/client.jar |
| 36 | + modImplementation "fabric-loader:fabric-loader:${project.loader_version}" |
| 37 | + |
| 38 | + modImplementation "bta-halplibe:halplibe:${project.halplibe_version}" |
| 39 | + modImplementation "ModMenu:ModMenu:${project.mod_menu_version}" |
| 40 | + modImplementation "DragonFly:dragonfly:${project.dragonfly_version}" |
| 41 | +} |
| 42 | + |
| 43 | +java { |
| 44 | + sourceCompatibility = JavaVersion.VERSION_1_8 |
| 45 | + targetCompatibility = JavaVersion.VERSION_1_8 |
| 46 | + withSourcesJar() |
| 47 | +} |
| 48 | + |
| 49 | +tasks.withType(JavaCompile).configureEach { |
| 50 | + options.release.set 8 |
| 51 | +} |
| 52 | + |
| 53 | +processResources { |
| 54 | + inputs.property "version", version |
| 55 | + |
| 56 | + filesMatching("fabric.mod.json") { |
| 57 | + expand "version": version |
| 58 | + } |
| 59 | +} |
| 60 | + |
| 61 | +remapJar { |
| 62 | + destinationDirectory.set(file("$parent.projectDir/jars")) |
| 63 | + archiveVersion.set(archiveVersion.get()+"-${bta_version}") |
| 64 | +} |
0 commit comments