Skip to content

Commit

Permalink
Simplify mojmap artifact declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
LambdAurora committed Nov 9, 2024
1 parent 2bd2cd6 commit 9aedab8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/moj_xplat/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ tasks.remapJar {
apiProject.configurations["mojmapApiElements"].artifacts.removeIf{
true
}
apiProject.artifacts.add("mojmapApiElements", tasks.remapJar.map { it.archiveFile }) {
apiProject.artifacts.add("mojmapApiElements", tasks.remapJar) {
classifier = "mojmap"
}
apiProject.configurations["mojmapRuntimeElements"].artifacts.removeIf{
true
}
apiProject.artifacts.add("mojmapRuntimeElements", tasks.remapJar.map { it.archiveFile }) {
apiProject.artifacts.add("mojmapRuntimeElements", tasks.remapJar) {
classifier = "mojmap"
}

Expand All @@ -55,6 +55,6 @@ val remapMojmapSourcesTask = tasks.register("remapMojmapSourcesJar", RemapSource
apiProject.configurations["mojmapSourcesElements"].artifacts.removeIf {
true
}
apiProject.artifacts.add("mojmapSourcesElements", remapMojmapSourcesTask.map { it.archiveFile }) {
apiProject.artifacts.add("mojmapSourcesElements", remapMojmapSourcesTask) {
classifier = "mojmap-sources"
}

0 comments on commit 9aedab8

Please sign in to comment.