Skip to content

Commit ec22aa3

Browse files
gwimmeltobrun
authored andcommitted
keep *.java - files in source.jar artifacts (#1064)
1 parent 131df81 commit ec22aa3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ def RELEASE_MODULES = ["services",
9191

9292
subprojects { subproject ->
9393

94-
tasks.withType(Jar) {
95-
exclude "**/*.java"
94+
tasks.withType(Jar) { jarTask ->
95+
if (!jarTask.name.endsWith("SourcesJar")) {
96+
jarTask.exclude("**/*.java")
97+
}
9698
}
9799

98100
if (TESTABLE_MODULES.contains(subproject.name)) {

0 commit comments

Comments
 (0)