aboutsummaryrefslogtreecommitdiff
path: root/build-logic/src/main/kotlin/dokkabuild.publish-jvm.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'build-logic/src/main/kotlin/dokkabuild.publish-jvm.gradle.kts')
-rw-r--r--build-logic/src/main/kotlin/dokkabuild.publish-jvm.gradle.kts19
1 files changed, 19 insertions, 0 deletions
diff --git a/build-logic/src/main/kotlin/dokkabuild.publish-jvm.gradle.kts b/build-logic/src/main/kotlin/dokkabuild.publish-jvm.gradle.kts
new file mode 100644
index 00000000..6c7a978d
--- /dev/null
+++ b/build-logic/src/main/kotlin/dokkabuild.publish-jvm.gradle.kts
@@ -0,0 +1,19 @@
+/*
+ * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
+ */
+
+import dokkabuild.PublicationName
+
+plugins {
+ id("dokkabuild.java")
+ id("dokkabuild.publish-base")
+}
+
+java {
+ withSourcesJar()
+ withJavadocJar()
+}
+
+publishing.publications.register<MavenPublication>(PublicationName.JVM) {
+ from(components["java"])
+}