aboutsummaryrefslogtreecommitdiff
path: root/kotlin-analysis
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 /kotlin-analysis
parentbed2450c8d6ddd5c1ef05e3e451443c286eddea1 (diff)
downloaddokka-7001425367a4db79c6fcdf6b8d0c53508ba50aa7.tar.gz
dokka-7001425367a4db79c6fcdf6b8d0c53508ba50aa7.tar.bz2
dokka-7001425367a4db79c6fcdf6b8d0c53508ba50aa7.zip
Simplify publishing configuration and enable sourcejars
Diffstat (limited to 'kotlin-analysis')
-rw-r--r--kotlin-analysis/build.gradle.kts13
-rw-r--r--kotlin-analysis/dependencies/build.gradle.kts15
2 files changed, 4 insertions, 24 deletions
diff --git a/kotlin-analysis/build.gradle.kts b/kotlin-analysis/build.gradle.kts
index 67480f82..5acc1f06 100644
--- a/kotlin-analysis/build.gradle.kts
+++ b/kotlin-analysis/build.gradle.kts
@@ -1,4 +1,4 @@
-import org.jetbrains.configureBintrayPublication
+import org.jetbrains.configurePublication
plugins {
id("com.github.johnrengelman.shadow")
@@ -15,13 +15,4 @@ dependencies {
api(project(":kotlin-analysis:dependencies", configuration = "shadow"))
}
-publishing {
- publications {
- register<MavenPublication>("analysis") {
- artifactId = "dokka-analysis"
- from(components["java"])
- }
- }
-}
-
-configureBintrayPublication("analysis")
+configurePublication("dokka-analysis")
diff --git a/kotlin-analysis/dependencies/build.gradle.kts b/kotlin-analysis/dependencies/build.gradle.kts
index 5bba6422..1fd13630 100644
--- a/kotlin-analysis/dependencies/build.gradle.kts
+++ b/kotlin-analysis/dependencies/build.gradle.kts
@@ -1,5 +1,4 @@
-import org.jetbrains.configureBintrayPublication
-
+import org.jetbrains.configurePublication
plugins {
id("com.github.johnrengelman.shadow")
@@ -54,14 +53,4 @@ tasks {
}
}
-
-publishing {
- publications {
- register<MavenPublication>("kotlin-analysis-dependencies") {
- artifactId = "kotlin-analysis-dependencies"
- project.shadow.component(this)
- }
- }
-}
-
-configureBintrayPublication("kotlin-analysis-dependencies")
+configurePublication("kotlin-analysis-dependencies", useShadow = true)