소스 검색

[norelease] Update to archloom 0.7.2 and Gradle 7

Max 4 년 전
부모
커밋
43c8bae105
6개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 2 2
      build.gradle
  2. 1 1
      forge/gradle.properties
  3. 1 1
      gradle/wrapper/gradle-wrapper.properties
  4. 1 1
      testmod-common/build.gradle
  5. 2 2
      testmod-fabric/build.gradle
  6. 1 1
      testmod-forge/gradle.properties

+ 2 - 2
build.gradle

@@ -1,6 +1,6 @@
 plugins {
     id "architectury-plugin" version "3.1-SNAPSHOT"
-    id "forgified-fabric-loom" version "0.6-SNAPSHOT" apply false
+    id "dev.architectury.loom" version "0.7.2-SNAPSHOT" apply false
     id "org.cadixdev.licenser" version "0.5.0"
     id "com.matthewprenger.cursegradle" version "1.4.0" apply false
     id "maven-publish"
@@ -11,7 +11,7 @@ architectury {
 }
 
 subprojects {
-    apply plugin: "forgified-fabric-loom"
+    apply plugin: "dev.architectury.loom"
 
     loom {
         silentMojangMappingsLicense()

+ 1 - 1
forge/gradle.properties

@@ -1 +1 @@
-loom.forge=true
+loom.platform=forge

+ 1 - 1
gradle/wrapper/gradle-wrapper.properties

@@ -1,5 +1,5 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists

+ 1 - 1
testmod-common/build.gradle

@@ -3,7 +3,7 @@ dependencies {
     mappings loom.officialMojangMappings()
     // We depend on fabric loader here to use the fabric @Environment annotations
     // Do NOT use other classes from fabric loader
-    modCompile "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
+    modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
     implementation project(":common")
 }
 

+ 2 - 2
testmod-fabric/build.gradle

@@ -11,8 +11,8 @@ architectury {
 dependencies {
     minecraft "com.mojang:minecraft:${rootProject.architectury.minecraft}"
     mappings loom.officialMojangMappings()
-    modCompile "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
-    modCompile "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api_version}"
+    modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
+    modImplementation "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api_version}"
     modCompileOnly "io.github.prospector:modmenu:${rootProject.mod_menu_version}"
 
     implementation project(path: ":fabric", configuration: "dev")

+ 1 - 1
testmod-forge/gradle.properties

@@ -1 +1 @@
-loom.forge=true
+loom.platform=forge