aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-02-13 12:52:39 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-02-13 17:10:17 +0100
commite730b82c4db6306a5b9e552d8a4c6578b0c1e01a (patch)
tree4dfbc0bd31cbe2c8305684aa5ed6ac7083f35e04 /core
parentbca6d8c524a4c1a8174e1e2e301b3cd32d5e8fd4 (diff)
downloaddokka-e730b82c4db6306a5b9e552d8a4c6578b0c1e01a.tar.gz
dokka-e730b82c4db6306a5b9e552d8a4c6578b0c1e01a.tar.bz2
dokka-e730b82c4db6306a5b9e552d8a4c6578b0c1e01a.zip
Update packaging structure, fix testAPI publication, simplify dependencies handling in plugins
Fixes #627 This commit removes repackaging `dokka-core` with all its dependencies by creating a publication for those dependencies. Moreover it moves `kotlinx-markdown` dependency to `coreDependencies` as this library is only present in Kotlin Bintray repository. TestAPI now publishes correctly
Diffstat (limited to 'core')
-rw-r--r--core/build.gradle.kts18
1 files changed, 4 insertions, 14 deletions
diff --git a/core/build.gradle.kts b/core/build.gradle.kts
index e70791f3..c8cae2d6 100644
--- a/core/build.gradle.kts
+++ b/core/build.gradle.kts
@@ -7,30 +7,20 @@ plugins {
}
dependencies {
- implementation(project(":coreDependencies", configuration = "shadow"))
+ api(project(":coreDependencies", configuration = "shadow"))
val kotlin_version: String by project
- implementation("org.jetbrains.kotlin:kotlin-compiler:$kotlin_version")
- implementation("org.jetbrains.kotlin:kotlin-script-runtime:$kotlin_version")
+ api("org.jetbrains.kotlin:kotlin-compiler:$kotlin_version")
+ implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.6.10")
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version")
implementation("org.jsoup:jsoup:1.12.1")
implementation("com.google.code.gson:gson:2.8.5")
- implementation("org.jetbrains:markdown:0.1.41")
- implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.6.10")
testImplementation(project(":testApi"))
testImplementation("junit:junit:4.13")
}
-tasks {
- shadowJar {
- val dokka_version: String by project
- archiveFileName.set("dokka-core-$dokka_version.jar")
- archiveClassifier.set("")
- }
-}
-
val sourceJar by tasks.registering(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets["main"].allSource)
@@ -40,7 +30,7 @@ publishing {
publications {
register<MavenPublication>("dokkaCore") {
artifactId = "dokka-core"
- project.shadow.component(this)
+ from(components["java"])
artifact(sourceJar.get())
}
}