We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea5e698 commit fdc3ecbCopy full SHA for fdc3ecb
buildSrc/src/main/kotlin/project/scala.gradle.kts
@@ -17,6 +17,7 @@ package project
17
18
import ProjectExtensions.configureMavenPublication
19
import ProjectExtensions.scalaVersion
20
+import gradle.kotlin.dsl.accessors._473b9544fb0ec2c6cc860d9af4296ace.java
21
22
plugins {
23
id("scala")
@@ -51,6 +52,14 @@ tasks.withType<Test> {
51
52
53
tasks.named<Delete>("clean") { delete.add(rootProject.file("build/docs/")) }
54
55
+java {
56
+ sourceCompatibility = JavaVersion.VERSION_1_8
57
+ targetCompatibility = JavaVersion.VERSION_1_8
58
+
59
+ withSourcesJar()
60
+ withJavadocJar()
61
+}
62
63
afterEvaluate {
64
configureMavenPublication { artifactId = "${base.archivesName.get()}_${scalaVersion}" }
65
0 commit comments