CC: Tweaked

CC: Tweaked

57M Downloads

CC:Tweaked Dependency build fail

Povstalec opened this issue ยท 1 comments

commented

Hello, I've been using CC:Tweaked in my dev environment and it works well, however, when I try to compile my mod, I get the following:

> Task :compileJava FAILED
Note: SpongePowered MIXIN Annotation Processor Version=0.8.5
Note: Supported obfuscation types: ObfuscationServiceMCP supports [searge,notch]
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\block_entities\BasicInterfaceEntity.java:7: error: cannot find symbol
import dan200.computercraft.api.peripheral.IPeripheral;
                                          ^
  symbol:   class IPeripheral
  location: package dan200.computercraft.api.peripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\block_entities\BasicInterfaceEntity.java:8: error: package dan200.computercraft.shared does not exist
import dan200.computercraft.shared.Capabilities;
                                  ^
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\block_entities\BasicInterfaceEntity.java:26: error: cannot find symbol
        public LazyOptional<IPeripheral> peripheral = LazyOptional.of(() -> new BasicInterfacePeripheral(this));
                            ^
  symbol:   class IPeripheral
  location: class BasicInterfaceEntity
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\block_entities\CrystalInterfaceEntity.java:7: error: cannot find symbol
import dan200.computercraft.api.peripheral.IPeripheral;
                                          ^
  symbol:   class IPeripheral
  location: package dan200.computercraft.api.peripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\block_entities\CrystalInterfaceEntity.java:8: error: package dan200.computercraft.shared does not exist
import dan200.computercraft.shared.Capabilities;
                                  ^
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\block_entities\CrystalInterfaceEntity.java:20: error: cannot find symbol
        public LazyOptional<IPeripheral> peripheral = LazyOptional.of(() -> new CrystalInterfacePeripheral(this));
                            ^
  symbol:   class IPeripheral
  location: class CrystalInterfaceEntity
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:3: error: package dan200.computercraft.api.lua does not exist
import dan200.computercraft.api.lua.LuaException;
                                   ^
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:4: error: package dan200.computercraft.api.lua does not exist
import dan200.computercraft.api.lua.LuaFunction;
                                   ^
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:5: error: cannot find symbol
import dan200.computercraft.api.peripheral.IPeripheral;
                                          ^
  symbol:   class IPeripheral
  location: package dan200.computercraft.api.peripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:10: error: cannot find symbol
public class BasicInterfacePeripheral implements IPeripheral
                                                 ^
  symbol: class IPeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:26: error: cannot find symbol
        public boolean equals(IPeripheral other)
                              ^
  symbol:   class IPeripheral
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:51: error: cannot find symbol
        public final long getStargateEnergy() throws LuaException
                                                     ^
  symbol:   class LuaException
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:60: error: cannot find symbol
        public final void raiseChevron() throws LuaException
                                                ^
  symbol:   class LuaException
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:70: error: cannot find symbol
        public final void lowerChevron() throws LuaException
                                                ^
  symbol:   class LuaException
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:81: error: cannot find symbol
        public final void rotateClockwise(int symbol) throws LuaException
                                                             ^
  symbol:   class LuaException
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:95: error: cannot find symbol
        public final void rotateAntiClockwise(int symbol) throws LuaException
                                                                 ^
  symbol:   class LuaException
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:109: error: cannot find symbol
        public final int getChevronsEngaged() throws LuaException
                                                     ^
  symbol:   class LuaException
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:118: error: cannot find symbol
        public final int getOpenTime() throws LuaException
                                              ^
  symbol:   class LuaException
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:127: error: cannot find symbol
        public final boolean isCurrentSymbol(int symbol) throws LuaException
                                                                ^
  symbol:   class LuaException
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\CrystalInterfacePeripheral.java:3: error: package dan200.computercraft.api.lua does not exist
import dan200.computercraft.api.lua.LuaException;
                                   ^
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\CrystalInterfacePeripheral.java:4: error: package dan200.computercraft.api.lua does not exist
import dan200.computercraft.api.lua.LuaFunction;
                                   ^
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\CrystalInterfacePeripheral.java:5: error: cannot find symbol
import dan200.computercraft.api.peripheral.IPeripheral;
                                          ^
  symbol:   class IPeripheral
  location: package dan200.computercraft.api.peripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\CrystalInterfacePeripheral.java:25: error: cannot find symbol
        public boolean equals(IPeripheral other)
                              ^
  symbol:   class IPeripheral
  location: class CrystalInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\CrystalInterfacePeripheral.java:44: error: cannot find symbol
        public void inputSymbol(int symbol) throws LuaException
                                                   ^
  symbol:   class LuaException
  location: class CrystalInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:44: error: cannot find symbol
        @LuaFunction
         ^
  symbol:   class LuaFunction
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:50: error: cannot find symbol
        @LuaFunction
         ^
  symbol:   class LuaFunction
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:59: error: cannot find symbol
        @LuaFunction
         ^
  symbol:   class LuaFunction
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:69: error: cannot find symbol
        @LuaFunction
         ^
  symbol:   class LuaFunction
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:80: error: cannot find symbol
        @LuaFunction
         ^
  symbol:   class LuaFunction
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:94: error: cannot find symbol
        @LuaFunction
         ^
  symbol:   class LuaFunction
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:108: error: cannot find symbol
        @LuaFunction
         ^
  symbol:   class LuaFunction
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:117: error: cannot find symbol
        @LuaFunction
         ^
  symbol:   class LuaFunction
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\BasicInterfacePeripheral.java:126: error: cannot find symbol
        @LuaFunction
         ^
  symbol:   class LuaFunction
  location: class BasicInterfacePeripheral
E:\Modding\MinecraftModding\StargateJourney\src\main\java\net\povstalec\sgjourney\peripherals\CrystalInterfacePeripheral.java:43: error: cannot find symbol
        @LuaFunction
         ^
  symbol:   class LuaFunction
  location: class CrystalInterfacePeripheral
34 errors

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

I'll be honest, I'm not great with dependencies, but I've registered them as described in https://github.com/cc-tweaked/CC-Tweaked#using, but since the build is failing, I'd like to ask what I'm doing wrong.

commented

Maybe core-api isn't included on the dependencies. Try to find if it's included.