old-bugs

Minecraft: Better than Adventure! mod that brings back bugs from older versions
git clone git://memoryshards.xyz/old-bugs.git
Log | Files | Refs | README | LICENSE

build.gradle (3275B)


      1 plugins {
      2 	id 'babric-loom' version '1.1.+'
      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 repositories {
     17 	mavenCentral()
     18 	maven { url = "https://jitpack.io" }
     19 	maven {
     20 		name = 'Babric'
     21 		url = 'https://maven.glass-launcher.net/babric'
     22 	}
     23 	maven {
     24 		name = 'Fabric'
     25 		url = 'https://maven.fabricmc.net/'
     26 	}
     27 	ivy {
     28 		url = "https://github.com/Better-than-Adventure"
     29 		patternLayout {
     30 			artifact "[organisation]/releases/download/v[revision]/[module].jar"
     31 			m2compatible = true
     32 		}
     33 		metadataSources { artifact() }
     34 	}
     35 	ivy {
     36 		url = "https://github.com/Turnip-Labs"
     37 		patternLayout {
     38 			artifact "[organisation]/releases/download/v[revision]/[module]-[revision].jar"
     39 			m2compatible = true
     40 		}
     41 		metadataSources { artifact() }
     42 	}
     43 	ivy {
     44 		url = "https://github.com/Turnip-Labs"
     45 		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"
     55 			m2compatible = true
     56 		}
     57 		metadataSources { artifact() }
     58 	}
     59 	ivy {
     60 		url = "https://piston-data.mojang.com"
     61 		patternLayout {
     62 			artifact "v1/[organisation]/[revision]/[module].jar"
     63 			m2compatible = true
     64 		}
     65 		metadataSources { artifact() }
     66 	}
     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 }
     76 
     77 dependencies {
     78 	minecraft "bta-download-repo:bta:${project.bta_version}"
     79 	mappings loom.layered() {}
     80 
     81 	modRuntimeOnly "objects:client:43db9b498cb67058d2e12d394e6507722e71bb45" // https://piston-data.mojang.com/v1/objects/43db9b498cb67058d2e12d394e6507722e71bb45/client.jar
     82 	modImplementation "fabric-loader:fabric-loader:${project.loader_version}"
     83 
     84 	// Helper library
     85 	// If you do not need Halplibe you can comment this line out or delete this line
     86 	modImplementation "com.github.Turnip-Labs:bta-halplibe:${project.halplibe_version}"
     87 
     88 	modImplementation "ModMenu:ModMenu:2.0.3"
     89 
     90 	implementation "org.slf4j:slf4j-api:1.8.0-beta4"
     91 	implementation "org.apache.logging.log4j:log4j-slf4j18-impl:2.16.0"
     92 
     93 	implementation 'com.google.guava:guava:30.0-jre'
     94 	implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1'
     95 	var log4jVersion = "2.20.0"
     96 	implementation("org.apache.logging.log4j:log4j-core:${log4jVersion}")
     97 	implementation("org.apache.logging.log4j:log4j-api:${log4jVersion}")
     98 	implementation("org.apache.logging.log4j:log4j-1.2-api:${log4jVersion}")
     99 }
    100 
    101 java {
    102 	sourceCompatibility = JavaVersion.VERSION_1_8
    103 	targetCompatibility = JavaVersion.VERSION_1_8
    104 	withSourcesJar()
    105 }
    106 
    107 tasks.withType(JavaCompile) {
    108 	options.release.set 8
    109 }
    110 
    111 jar {
    112 	from("LICENSE") {
    113 		rename { "${it}_${archivesBaseName}" }
    114 	}
    115 }
    116 
    117 processResources {
    118 	inputs.property "version", version
    119 
    120 	filesMatching("fabric.mod.json") {
    121 		expand "version": version
    122 	}
    123 }