Skip to content

Commit 57008f2

Browse files
committed
Fix build
1 parent 2634f4d commit 57008f2

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

build.gradle

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -559,28 +559,6 @@ project(':mohist') {
559559
changing = true
560560
}
561561

562-
task downloadMultipleFiles(type: Download) {
563-
src([
564-
'https://maven.mohistmc.com/libraries/1.12.2/mohist/libraries.zip'
565-
])
566-
dest layout.buildDirectory.dir("libraries")
567-
}
568-
569-
task packageLibraries(type: Zip, dependsOn: [downloadMultipleFiles]) {
570-
archiveFileName = 'libraries.zip'
571-
destinationDirectory = file("build/distributions")
572-
outputs.upToDateWhen {
573-
false // TODO: Not 100% sure how to make this task re-run when libraries are changed...
574-
}
575-
576-
configurations.installer.resolvedConfiguration.resolvedArtifacts.collect {
577-
def moduleVersion = it.moduleVersion
578-
from (it.file) {
579-
into ("${moduleVersion.id.group.replace('.', '/')}/${moduleVersion.id.name}/${moduleVersion.id.version}/")
580-
}
581-
}
582-
}
583-
584562
universalJar {
585563
archiveClassifier = 'server'
586564
dependsOn(deobfDataLzma)
@@ -610,14 +588,6 @@ project(':mohist') {
610588
}
611589
}
612590
}
613-
614-
from(zipTree(packageLibraries.outputs.getFiles().asPath)) {
615-
into 'META-INF/libraries'
616-
}
617-
618-
from(zipTree(downloadMultipleFiles.outputs.getFiles().asPath)) {
619-
into 'META-INF/libraries'
620-
}
621591
}
622592

623593
task installerJar(type: Zip, dependsOn: [downloadInstaller, installerJson, launcherJson, genClientBinPatches, genServerBinPatches, 'signUniversalJar']) {

0 commit comments

Comments
 (0)