Skip to content

Commit e68f08e

Browse files
authored
Use JavaCompile.destinationDirectory instead of the whole task (#2405)
as a source directory for copying module-info.class to the multi-release jar. This ensures that no additional files except java compiler output get into jar. Fixes #2398
1 parent 6602fe4 commit e68f08e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildSrc/src/main/kotlin/Java9Modularity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ object Java9Modularity {
8282
)
8383

8484
// add the resulting module descriptor to this target's artifact
85-
artifactTask.from(compileModuleTask) {
85+
artifactTask.from(compileModuleTask.map { it.destinationDirectory }) {
8686
if (multiRelease) {
8787
into("META-INF/versions/9/")
8888
}

0 commit comments

Comments
 (0)