6 url = 'https://maven.fabricmc.net/'
10 classpath "net.fabricmc:fabric-loom:0.8-SNAPSHOT"
14 apply plugin: 'fabric-loom'
19 version project.buildVersion + '-' + project.mcVersion
20 archivesBaseName = 'BBOutlineReloaded'
22 sourceCompatibility = JavaVersion.VERSION_16
23 targetCompatibility = JavaVersion.VERSION_16
25 tasks.withType(JavaCompile).configureEach {
26 // ensure that the encoding is set to UTF-8, no matter what the system default is
27 // this fixes some edge cases with special characters not displaying correctly
28 // see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
29 // If Javadoc is generated, this must be specified in that task too.
30 it.options.encoding = "UTF-8"
32 // Minecraft 1.17 (21w19a) upwards uses Java 16.
33 it.options.release = 16
37 minecraft 'com.mojang:minecraft:' + project.mcVersion
38 mappings 'net.fabricmc:yarn:' + project.mcVersion + '+build.1:v2'
39 modImplementation 'net.fabricmc:fabric-loader:0.11.6'
43 refmapName = 'mixins.bbor.refmap.json'
47 filesMatching('fabric.mod.json') {
48 expand version: project.version
54 languageVersion = JavaLanguageVersion.of(16)
62 "Main-Class": "com.irtimaled.bbor.Main",
63 "Specification-Title": "bbor",
64 "Specification-Vendor": "Irtimaled",
65 "Specification-Version": "1", // We are version 1 of ourselves
66 "Implementation-Title": project.name,
67 "Implementation-Version": "${version}",
68 "Implementation-Vendor": "Irtimaled",
69 "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
75 remapJar.classifier = 'fabric'