mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Bump SecureJarHandler to fix package meta issue. Closes #7881
Fix version.json having duplicate libraries.
This commit is contained in:
1 parent
be5446b91c
commit
b027a92dd2
2 files changed
+9
-6
No files matched your search
+1
-1
@@ -51,7 +51,7 @@ ext {
|
||||
COREMODS_VERSION = '5.0.1'
|
||||
EVENTBUS_VERSION = '5.0.3'
|
||||
MODLAUNCHER_VERSION = '9.0.7'
|
||||
SECUREJARHANDLER_VERSION = '0.9.44'
|
||||
SECUREJARHANDLER_VERSION = '0.9.45'
|
||||
BOOTSTRAPLAUNCHER_VERSION = '0.1.15'
|
||||
ASM_VERSION = '9.1'
|
||||
INSTALLER_VERSION = '2.1.4'
|
||||
|
||||
@@ -48,14 +48,16 @@ abstract class LauncherJson extends DefaultTask {
|
||||
protected void exec() {
|
||||
if (!json.libraries)
|
||||
json.libraries = []
|
||||
getArtifacts(project, project.configurations.installer, false).each { key, lib -> json.libraries.add(lib) }
|
||||
getArtifacts(project, project.configurations.moduleonly, false).each { key, lib -> json.libraries.add(lib) }
|
||||
def libs = [:]
|
||||
getArtifacts(project, project.configurations.installer, false).each { key, lib -> libs[key] = lib }
|
||||
getArtifacts(project, project.configurations.moduleonly, false).each { key, lib -> libs[key] = lib }
|
||||
|
||||
packedDependencies.get().collect{ project.rootProject.tasks.findByPath(it) }.forEach {
|
||||
def path = Util.getMavenPath(it)
|
||||
def key = Util.getMavenDep(it)
|
||||
|
||||
json.libraries.add([
|
||||
name: Util.getMavenDep(it),
|
||||
libs[key] = [
|
||||
name: key,
|
||||
downloads: [
|
||||
artifact: [
|
||||
path: path,
|
||||
@@ -64,8 +66,9 @@ abstract class LauncherJson extends DefaultTask {
|
||||
size: it.archiveFile.get().asFile.length()
|
||||
]
|
||||
]
|
||||
])
|
||||
]
|
||||
}
|
||||
libs.each { key, lib -> json.libraries.add(lib) }
|
||||
Files.writeString(output.get().asFile.toPath(), new JsonBuilder(json).toPrettyString())
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user