buildscript {
repositories {
- jcenter()
+ mavenCentral()
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
+ maven {
+ name = 'Cotton'
+ url = 'https://server.bbkr.space/artifactory/libs-release/'
+ }
}
dependencies {
- classpath "net.fabricmc:fabric-loom:0.8-SNAPSHOT"
+ classpath "net.fabricmc:fabric-loom:0.11-SNAPSHOT"
+ classpath "io.github.juuxel:loom-quiltflower:1.6.0"
}
}
apply plugin: 'fabric-loom'
+apply plugin: 'io.github.juuxel.loom-quiltflower'
apply plugin: 'java'
apply plugin: 'idea'
version project.buildVersion + '-' + project.mcVersion
archivesBaseName = 'BBOutlineReloaded'
-sourceCompatibility = JavaVersion.VERSION_16
-targetCompatibility = JavaVersion.VERSION_16
+sourceCompatibility = JavaVersion.VERSION_17
+targetCompatibility = JavaVersion.VERSION_17
tasks.withType(JavaCompile).configureEach {
// ensure that the encoding is set to UTF-8, no matter what the system default is
// If Javadoc is generated, this must be specified in that task too.
it.options.encoding = "UTF-8"
- // Minecraft 1.17 (21w19a) upwards uses Java 16.
- it.options.release = 16
+ it.options.release = 17
}
dependencies {
minecraft 'com.mojang:minecraft:' + project.mcVersion
- mappings 'net.fabricmc:yarn:' + project.mcVersion + '+build.29:v2'
- modImplementation 'net.fabricmc:fabric-loader:0.11.6'
+ mappings 'net.fabricmc:yarn:' + project.mcVersion + '+build.22:v2'
+ modImplementation 'net.fabricmc:fabric-loader:0.12.12'
}
loom {
- accessWidener "src/main/resources/bbor.accesswidener"
-}
-
-minecraft {
- refmapName = 'mixins.bbor.refmap.json'
+ accessWidenerPath = file("src/main/resources/bbor.accesswidener")
}
processResources {
java {
toolchain {
- languageVersion = JavaLanguageVersion.of(16)
+ languageVersion = JavaLanguageVersion.of(17)
}
withSourcesJar()
}
afterEvaluate {
remapJar.classifier = 'fabric'
}
+
+afterEvaluate {
+ migrateMappings.configure {
+ outputDir = project.file("src/main/java")
+ }
+}