// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers
//
// SPDX-License-Identifier: MPL-2.0

plugins {
    id("cc-tweaked.java-convention")
    id("cc-tweaked.publishing")
    id("cc-tweaked")
}

// Due to the slightly circular nature of our API, add the main API jars to the javadoc classpath.
val docApi by configurations.registering {
    isTransitive = false
}

dependencies {
    compileOnlyApi(libs.bundles.annotations)

    "docApi"(project(":common-api"))
}

tasks.javadoc {
    // Depend on the common API when publishing javadoc
    classpath += docApi.get()
}

cct.linters(minecraft = false, loader = null)
