Skip to content

Unable to add a dependency. #24

@harley-codes

Description

@harley-codes

Trying to implement org.jetbrains:annotations into the project but builds fail. Not sure if this is an issue with the project template, or something else.

I add the dependency in build.gradle.kts - have tried compileOnly, implementation, and annotationProcessor option.

dependencies {
    // Hytale Server API (provided by server at runtime)
    compileOnly(files("./libs/HytaleServer.jar"))
    compileOnly("org.jetbrains:annotations:26.0.2")
error: package org.jetbrains.annotations does not exist
import org.jetbrains.annotations.Nullable;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions