预生成 openjfx-dependencies.json (#3322)

This commit is contained in:
Glavo
2024-10-13 19:52:00 +08:00
committed by GitHub
parent c3917082ee
commit e9c3795ffc
3 changed files with 315 additions and 8 deletions

View File

@@ -27,7 +27,7 @@ data class Platform(
val jfxModules = listOf("base", "graphics", "controls")
val jfxMirrorRepos = listOf("https://mirrors.cloud.tencent.com/nexus/repository/maven-public")
val jfxDependenciesFile = project("HMCL").layout.buildDirectory.file("openjfx-dependencies.json").get().asFile
val jfxDependenciesFile = project.file("HMCL/src/main/resources/assets/openjfx-dependencies.json")
val jfxPlatforms = listOf(
Platform("windows-x86", "win-x86"),
Platform("windows-x86_64", "win"),
@@ -86,8 +86,6 @@ if (!jfxInClasspath && JavaVersion.current() >= JavaVersion.VERSION_11) {
}
rootProject.tasks.create("generateOpenJFXDependencies") {
outputs.file(jfxDependenciesFile)
doLast {
val jfxDependencies = jfxPlatforms.associate { platform ->
platform.name to jfxModules.map { module ->