自行编译时报错
class5class opened this issue · 0 comments
因为无法获取modrinth和curthforge token而删除了相关代码(应该不会影响编译),在编译dev/1.21分支时报错。
以下是构建日志
`上午10:37:16: 正在执行 ':defaults:1.21:classes'…
Starting Gradle Daemon...
Gradle Daemon started in 3 s 943 ms
Download https://plugins.gradle.org/m2/com/modrinth/minotaur/com.modrinth.minotaur.gradle.plugin/maven-metadata.xml, took 190 ms
Configure project :1.19.4
Fabric Loom: 1.7.2
Configure project :1.20.1
Fabric Loom: 1.7.2
Configure project :1.20.4
Fabric Loom: 1.7.2
Configure project :1.21
Fabric Loom: 1.7.2
Configure project :defaults:1.19.4
Fabric Loom: 1.7.2
Configure project :defaults:1.20.1
Fabric Loom: 1.7.2
Configure project :defaults:1.20.4
Fabric Loom: 1.7.2
Configure project :defaults:1.21
Fabric Loom: 1.7.2
Task :1.21:compileJava UP-TO-DATE
Task :1.21:processResources
Task :1.21:classes
Task :1.21:jar UP-TO-DATE
Task :defaults:1.21:compileJava
D:\Wemsur\other\cit\CITResewn\defaults\src\main\java\shcm\shsupercm\fabric\citresewn\defaults\mixin\types\armor\ArmorFeatureRendererMixin.java:42: 警告: Unable to determine descriptor for @Inject target method
@Inject(method = "getArmorTexture", cancellable = true, at = @at("HEAD"))
^
D:\Wemsur\other\cit\CITResewn\defaults\src\main\java\shcm\shsupercm\fabric\citresewn\defaults\mixin\types\enchantment\ItemRendererMixin.java:61: 警告: Unable to determine descriptor for @Inject target method
@Inject(method = /? <1.20 {?//"getDirectCompassGlintConsumer"/?} else {?/"getDirectDynamicDisplayGlintConsumer"/?}?*/, cancellable = true, at = @at("RETURN"))
^
D:\Wemsur\other\cit\CITResewn\defaults\src\main\java\shcm\shsupercm\fabric\citresewn\defaults\mixin\types\enchantment\RenderPhaseAccessor.java:9: 错误: Could not locate @Accessor target ARMOR_GLINT_PROGRAM in target net.minecraft.client.render.RenderPhase
@Accessor("ARMOR_GLINT_PROGRAM") static RenderPhase.ShaderProgram ARMOR_GLINT_SHADER() { throw new RuntimeException(); }
^
D:\Wemsur\other\cit\CITResewn\defaults\src\main\java\shcm\shsupercm\fabric\citresewn\defaults\mixin\types\enchantment\RenderPhaseAccessor.java:13: 错误: Could not locate @Accessor target DIRECT_GLINT_PROGRAM in target net.minecraft.client.render.RenderPhase
@Accessor("DIRECT_GLINT_PROGRAM") static RenderPhase.ShaderProgram DIRECT_GLINT_SHADER() { throw new RuntimeException(); }
^
D:\Wemsur\other\cit\CITResewn\defaults\src\main\java\shcm\shsupercm\fabric\citresewn\defaults\cit\types\TypeItem.java:26: 错误: 程序包shcm.shsupercm.fabric.citresewn.defaults.common不存在
import shcm.shsupercm.fabric.citresewn.defaults.common.ResewnItemModelIdentifier;
^
D:\Wemsur\other\cit\CITResewn\defaults\src\main\java\shcm\shsupercm\fabric\citresewn\defaults\mixin\common\ModelLoaderMixin.java:16: 错误: 程序包shcm.shsupercm.fabric.citresewn.defaults.common不存在
import shcm.shsupercm.fabric.citresewn.defaults.common.ResewnItemModelIdentifier;
^
D:\Wemsur\other\cit\CITResewn\defaults\src\main\java\shcm\shsupercm\fabric\citresewn\defaults\mixin\types\item\ModelLoaderMixin.java:24: 错误: 程序包shcm.shsupercm.fabric.citresewn.defaults.common不存在
import shcm.shsupercm.fabric.citresewn.defaults.common.ResewnItemModelIdentifier;
^
5 个错误
2 个警告
Task :defaults:1.21:compileJava FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
5 actionable tasks: 3 executed, 2 up-to-date
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':defaults:1.21:compileJava'.
Compilation failed; see the compiler error output for details.
- Try:
Run with --info option to get more log output.
Run with --scan to get full insights.
BUILD FAILED in 1m 3s
上午10:38:28: 执行完成 ':defaults:1.21:classes'。
`