Skip to content

Commit fdc3ecb

Browse files
committed
Build: Fix Scala publishing
Ensure javadoc and source artifacts are included JAVA-5874
1 parent ea5e698 commit fdc3ecb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

buildSrc/src/main/kotlin/project/scala.gradle.kts

+9
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ package project
1717

1818
import ProjectExtensions.configureMavenPublication
1919
import ProjectExtensions.scalaVersion
20+
import gradle.kotlin.dsl.accessors._473b9544fb0ec2c6cc860d9af4296ace.java
2021

2122
plugins {
2223
id("scala")
@@ -51,6 +52,14 @@ tasks.withType<Test> {
5152

5253
tasks.named<Delete>("clean") { delete.add(rootProject.file("build/docs/")) }
5354

55+
java {
56+
sourceCompatibility = JavaVersion.VERSION_1_8
57+
targetCompatibility = JavaVersion.VERSION_1_8
58+
59+
withSourcesJar()
60+
withJavadocJar()
61+
}
62+
5463
afterEvaluate {
5564
configureMavenPublication { artifactId = "${base.archivesName.get()}_${scalaVersion}" }
5665

0 commit comments

Comments
 (0)