Skip to content

Commit

Permalink
Use JavaCompile.destinationDirectory instead of the whole task (#2405)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sandwwraith authored Aug 9, 2023
1 parent 6602fe4 commit e68f08e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Java9Modularity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ object Java9Modularity {
)

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

0 comments on commit e68f08e

Please sign in to comment.