diff options
author | Leonid Startsev <sandwwraith@users.noreply.github.com> | 2023-08-09 11:08:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 11:08:46 +0200 |
commit | e68f08ed02305fd536abcaf9e289dc72ca105324 (patch) | |
tree | 9eb24045f3313b22845296ea90563bc819700515 | |
parent | 6602fe4d03cdc6ff11ffd5c5fba681ba9dd36240 (diff) | |
download | kotlinx.serialization-e68f08ed02305fd536abcaf9e289dc72ca105324.tar.gz |
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
-rw-r--r-- | buildSrc/src/main/kotlin/Java9Modularity.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildSrc/src/main/kotlin/Java9Modularity.kt b/buildSrc/src/main/kotlin/Java9Modularity.kt index 99b17401..73621d8a 100644 --- a/buildSrc/src/main/kotlin/Java9Modularity.kt +++ b/buildSrc/src/main/kotlin/Java9Modularity.kt @@ -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/") } |