Skip to content

Error when adding mod as a local dependency #43

Description

@NeOzay

I'm trying to add a project as a dependency like this:
dependencies.gradle:

implementation(project(':StorageDrawers'))

settings.gradle:

include ':StorageDrawers'
project(':StorageDrawers').projectDir = new File('../StorageDrawers')

Run the Gradle command:

./gradlew build

but a compilation error occurs.

FAILURE: Build failed with an exception.

*Where:
Build file 'C:\Users\colpa\IdeaProjects\GTNH-Mods\StorageDrawers\build.gradle' line: 4

* What went wrong:
An exception occurred applying plugin request [id: 'com.gtnewhorizons.gtnhconvention']
> Failed to apply plugin 'com.gtnewhorizons.gtnhconvention'. 
> Cannot invoke "org.gradle.api.plugins.ExtensionAware.getExtensions()" because "o" is null

the error occurs here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions