Missing GregTech build dependency/API
josephcsible opened this issue ยท 1 comments
When trying to compile a fresh git clone of this mod, running bash ./gradlew build
gives the following errors:
:compileJava
/home/joe/MinecraftMods/NuclearCraft/build/sources/main/java/nc/tile/energy/TileEnergy.java:3: error: package gregtech.api.capability does not exist
import gregtech.api.capability.GregtechCapabilities;
^
/home/joe/MinecraftMods/NuclearCraft/build/sources/main/java/nc/tile/energy/TileEnergy.java:4: error: package gregtech.api.capability does not exist
import gregtech.api.capability.IEnergyContainer;
^
/home/joe/MinecraftMods/NuclearCraft/build/sources/main/java/nc/tile/internal/energy/EnergyTileWrapperGT.java:3: error: package gregtech.api.capability does not exist
import gregtech.api.capability.IEnergyContainer;
^
/home/joe/MinecraftMods/NuclearCraft/build/sources/main/java/nc/tile/internal/energy/EnergyTileWrapperGT.java:12: error: cannot find symbol
public class EnergyTileWrapperGT implements IEnergyContainer {
^
symbol: class IEnergyContainer
/home/joe/MinecraftMods/NuclearCraft/build/sources/main/java/nc/item/energy/ItemEnergyCapabilityProvider.java:3: error: package gregtech.api.capability does not exist
import gregtech.api.capability.GregtechCapabilities;
^
/home/joe/MinecraftMods/NuclearCraft/build/sources/main/java/nc/item/energy/ItemEnergyWrapperGT.java:7: error: package gregtech.api.capability does not exist
import gregtech.api.capability.IElectricItem;
^
/home/joe/MinecraftMods/NuclearCraft/build/sources/main/java/nc/item/energy/ItemEnergyWrapperGT.java:15: error: cannot find symbol
public class ItemEnergyWrapperGT implements IElectricItem {
^
symbol: class IElectricItem
/home/joe/MinecraftMods/NuclearCraft/build/sources/main/java/nc/tile/dummy/TileFissionPort.java:3: error: package gregtech.api.capability does not exist
import gregtech.api.capability.GregtechCapabilities;
^
/home/joe/MinecraftMods/NuclearCraft/build/sources/main/java/nc/tile/dummy/TileFissionPort.java:4: error: package gregtech.api.capability does not exist
import gregtech.api.capability.IEnergyContainer;
^
/home/joe/MinecraftMods/NuclearCraft/build/sources/main/java/nc/tile/passive/TilePassiveAbstract.java:9: error: package gregtech.api.capability does not exist
import gregtech.api.capability.GregtechCapabilities;
^
10 errors
:compileJava FAILED
The problem is that this mod needs GregTech's API to be built, but it isn't present in src/api and isn't imported in Maven.
Hey there! This is because I am using the API from a local jar, as it is a mod still very much in development. You can find the download here :)