Skip to content

Commit

Permalink
pls work :(
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysdh540 committed Oct 24, 2023
1 parent 0a26e7e commit d09f3d1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,14 @@ def setup() {
subs.remove(rootProject.project(':common'))
subs.remove(rootProject.project(':forge'))

subs.each {
it.buildDir.toPath().resolve('libs').toFile().listFiles().each { file ->
File newFile = new File(file.parent, file.name.replace('.jar', "-${file.name}.jar"))
java.nio.file.Files.copy(file.toPath(), java.nio.file.Path.of("artifacts/unmerged/${rootProject.mcVer}", newFile.name))
with copySpec {
subs.each { p ->
p.buildDir.toPath().resolve('libs').toFile().listFiles().each { file ->
File newFile = new File(file.parent, file.name.replace('.jar', "-${p.name}.jar"))
file.renameTo newFile
from newFile
into "artifacts/unmerged/${rootProject.mcVer}"
}
}
}

Expand Down

0 comments on commit d09f3d1

Please sign in to comment.