]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blobdiff - build.gradle
Port to 1.19
[BoundingBoxOutlineReloaded.git] / build.gradle
index eba553db66e82b7b23057de1d94e761a0d8a2e23..cfe05e8dc523f83f6b653904741ee28b572a9b0b 100644 (file)
@@ -1,17 +1,23 @@
 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'
 
@@ -19,8 +25,8 @@ group 'com.irtimaled'
 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
@@ -29,22 +35,17 @@ tasks.withType(JavaCompile).configureEach {
     // 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'
-    modImplementation 'net.fabricmc:fabric-loader:0.11.6'
+    mappings 'net.fabricmc:yarn:' + project.mcVersion + '+build.1:v2'
+    modImplementation 'net.fabricmc:fabric-loader:0.13.3'
 }
 
 loom {
-    accessWidener "src/main/resources/bbor.accesswidener"
-}
-
-minecraft {
-    refmapName = 'mixins.bbor.refmap.json'
+    accessWidenerPath = file("src/main/resources/bbor.accesswidener")
 }
 
 processResources {
@@ -55,7 +56,7 @@ processResources {
 
 java {
     toolchain {
-        languageVersion = JavaLanguageVersion.of(16)
+        languageVersion = JavaLanguageVersion.of(17)
     }
     withSourcesJar()
 }
@@ -78,3 +79,9 @@ jar {
 afterEvaluate {
     remapJar.classifier = 'fabric'
 }
+
+afterEvaluate {
+    migrateMappings.configure {
+        outputDir = project.file("src/main/java")
+    }
+}