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 {
|
|
|
|
compileOnly(project(":mc-stubs"))
|
|
|
|
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 {
|
|
|
|
// Depend on
|
|
|
|
classpath += docApi
|
|
|
|
}
|