2023-03-15 21:52:13 +00:00
|
|
|
// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2022-11-04 21:41:59 +00:00
|
|
|
plugins {
|
|
|
|
id("cc-tweaked.java-convention")
|
|
|
|
id("cc-tweaked.publishing")
|
|
|
|
id("cc-tweaked")
|
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
withJavadocJar()
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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.jsr305)
|
|
|
|
compileOnlyApi(libs.checkerFramework)
|
2022-11-06 11:55:26 +00:00
|
|
|
compileOnlyApi(libs.jetbrainsAnnotations)
|
2022-11-04 21:41:59 +00:00
|
|
|
|
2022-11-08 16:43:27 +00:00
|
|
|
"docApi"(project(":common-api"))
|
2022-11-04 21:41:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.javadoc {
|
2022-12-13 20:31:59 +00:00
|
|
|
// Depend on the common API when publishing javadoc
|
|
|
|
classpath += docApi.get()
|
2022-11-04 21:41:59 +00:00
|
|
|
}
|