aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAurimas Liutikas <aurimas@google.com>2020-07-13 18:33:28 -0700
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-07-14 11:41:31 +0200
commit7001425367a4db79c6fcdf6b8d0c53508ba50aa7 (patch)
tree8e3d80556de27b9cf1ee93f51e7d46a498a905f6 /core
parentbed2450c8d6ddd5c1ef05e3e451443c286eddea1 (diff)
downloaddokka-7001425367a4db79c6fcdf6b8d0c53508ba50aa7.tar.gz
dokka-7001425367a4db79c6fcdf6b8d0c53508ba50aa7.tar.bz2
dokka-7001425367a4db79c6fcdf6b8d0c53508ba50aa7.zip
Simplify publishing configuration and enable sourcejars
Diffstat (limited to 'core')
-rw-r--r--core/build.gradle.kts19
-rw-r--r--core/dependencies/build.gradle.kts13
2 files changed, 4 insertions, 28 deletions
diff --git a/core/build.gradle.kts b/core/build.gradle.kts
index 45ddccf3..030db5c6 100644
--- a/core/build.gradle.kts
+++ b/core/build.gradle.kts
@@ -1,4 +1,4 @@
-import org.jetbrains.configureBintrayPublication
+import org.jetbrains.configurePublication
plugins {
`maven-publish`
@@ -16,11 +16,6 @@ dependencies {
testImplementation(kotlin("test-junit"))
}
-val sourceJar by tasks.registering(Jar::class) {
- archiveClassifier.set("sources")
- from(sourceSets["main"].allSource)
-}
-
tasks {
processResources {
val dokka_version: String by project
@@ -34,14 +29,4 @@ tasks {
}
}
-publishing {
- publications {
- register<MavenPublication>("dokkaCore") {
- artifactId = "dokka-core"
- from(components["java"])
- artifact(sourceJar.get())
- }
- }
-}
-
-configureBintrayPublication("dokkaCore")
+configurePublication("dokka-core")
diff --git a/core/dependencies/build.gradle.kts b/core/dependencies/build.gradle.kts
index a26d109e..082861b6 100644
--- a/core/dependencies/build.gradle.kts
+++ b/core/dependencies/build.gradle.kts
@@ -1,4 +1,4 @@
-import org.jetbrains.configureBintrayPublication
+import org.jetbrains.configurePublication
plugins {
id("com.github.johnrengelman.shadow")
@@ -28,13 +28,4 @@ tasks {
}
}
-publishing {
- publications {
- register<MavenPublication>("dokkaCoreDependencies") {
- artifactId = "dokka-core-dependencies"
- project.shadow.component(this)
- }
- }
-}
-
-configureBintrayPublication("dokkaCoreDependencies")
+configurePublication("dokka-core-dependencies", useShadow = true)