blob: c000df5871762b0d5143094a6f172f44b88deb41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
import org.jetbrains.DokkaPublicationBuilder
import org.jetbrains.registerDokkaArtifactPublication
plugins {
id("org.jetbrains.conventions.kotlin-jvm")
id("org.jetbrains.conventions.maven-publish")
id("com.github.johnrengelman.shadow")
}
dependencies {
implementation(projects.subprojects.analysisKotlinApi)
implementation(projects.subprojects.analysisKotlinSymbols.compiler)
implementation(projects.subprojects.analysisKotlinSymbols.ide)
}
tasks {
shadowJar {
val dokka_version: String by project
// cannot be named exactly like the artifact (i.e analysis-kotlin-symbols-VER.jar),
// otherwise leads to obscure test failures when run via CLI, but not via IJ
archiveFileName.set("analysis-kotlin-symbols-all-$dokka_version.jar")
archiveClassifier.set("")
// service files are merged to make sure all Dokka plugins
// from the dependencies are loaded, and not just a single one.
mergeServiceFiles()
}
}
registerDokkaArtifactPublication("analysisKotlinSymbols") {
artifactId = "analysis-kotlin-symbols"
component = DokkaPublicationBuilder.Component.Shadow
}
|