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.29:v2'
39 modImplementation 'net.fabricmc:fabric-loader:0.11.6'
43 accessWidener "src/main/resources/bbor.accesswidener"
47 refmapName = 'mixins.bbor.refmap.json'
51 filesMatching('fabric.mod.json') {
52 expand version: project.version
58 languageVersion = JavaLanguageVersion.of(16)
66 "Main-Class": "com.irtimaled.bbor.Main",
67 "Specification-Title": "bbor",
68 "Specification-Vendor": "Irtimaled",
69 "Specification-Version": "1", // We are version 1 of ourselves
70 "Implementation-Title": project.name,
71 "Implementation-Version": "${version}",
72 "Implementation-Vendor": "Irtimaled",
73 "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
79 remapJar.classifier = 'fabric'