diff --git a/backend/tests/repository_pins.rs b/backend/tests/repository_pins.rs index a2a7401..66acaea 100644 --- a/backend/tests/repository_pins.rs +++ b/backend/tests/repository_pins.rs @@ -340,6 +340,17 @@ fn managed_dependencies_pin_all_six_platforms_and_bind_only_the_service_tool() { assert_eq!(dependency["version"], pins["version"]); assert_eq!(artifact["url"], pins["archiveURL"]); assert_eq!(artifact["sha256"], pins["archiveSHA256"]); + let mirrors = artifact["mirrors"].as_array().expect("jdtls mirrors array"); + assert!(!mirrors.is_empty(), "jdtls mirrors must not be empty"); + for mirror in mirrors { + assert!( + mirror + .as_str() + .is_some_and(|value| value.starts_with("https://")), + "jdtls mirror must be HTTPS: {mirror}" + ); + } + assert_eq!(artifact["mirrors"], pins["archiveMirrors"]); } } assert_eq!( diff --git a/io.github.lithe-idea.java-support/plugin.json b/io.github.lithe-idea.java-support/plugin.json index aafe0aa..ca51c2c 100644 --- a/io.github.lithe-idea.java-support/plugin.json +++ b/io.github.lithe-idea.java-support/plugin.json @@ -106,6 +106,9 @@ "os": "linux", "arch": "arm64", "url": "https://download.eclipse.org/jdtls/milestones/1.61.0/jdt-language-server-1.61.0-202609031315.tar.gz", + "mirrors": [ + "https://cnb.cool/lithe-idea/Lithe-store/-/releases/download/managed-runtimes/jdt-language-server-1.61.0-202609031315.tar.gz" + ], "sha256": "338e7e73d61836651ba2453919a0d34fa763eb4e7c03342092309bffb8934c64", "archive": "tar.gz", "home": "" @@ -114,6 +117,9 @@ "os": "linux", "arch": "x86_64", "url": "https://download.eclipse.org/jdtls/milestones/1.61.0/jdt-language-server-1.61.0-202609031315.tar.gz", + "mirrors": [ + "https://cnb.cool/lithe-idea/Lithe-store/-/releases/download/managed-runtimes/jdt-language-server-1.61.0-202609031315.tar.gz" + ], "sha256": "338e7e73d61836651ba2453919a0d34fa763eb4e7c03342092309bffb8934c64", "archive": "tar.gz", "home": "" @@ -122,6 +128,9 @@ "os": "macos", "arch": "arm64", "url": "https://download.eclipse.org/jdtls/milestones/1.61.0/jdt-language-server-1.61.0-202609031315.tar.gz", + "mirrors": [ + "https://cnb.cool/lithe-idea/Lithe-store/-/releases/download/managed-runtimes/jdt-language-server-1.61.0-202609031315.tar.gz" + ], "sha256": "338e7e73d61836651ba2453919a0d34fa763eb4e7c03342092309bffb8934c64", "archive": "tar.gz", "home": "" @@ -130,6 +139,9 @@ "os": "macos", "arch": "x86_64", "url": "https://download.eclipse.org/jdtls/milestones/1.61.0/jdt-language-server-1.61.0-202609031315.tar.gz", + "mirrors": [ + "https://cnb.cool/lithe-idea/Lithe-store/-/releases/download/managed-runtimes/jdt-language-server-1.61.0-202609031315.tar.gz" + ], "sha256": "338e7e73d61836651ba2453919a0d34fa763eb4e7c03342092309bffb8934c64", "archive": "tar.gz", "home": "" @@ -138,6 +150,9 @@ "os": "windows", "arch": "arm64", "url": "https://download.eclipse.org/jdtls/milestones/1.61.0/jdt-language-server-1.61.0-202609031315.tar.gz", + "mirrors": [ + "https://cnb.cool/lithe-idea/Lithe-store/-/releases/download/managed-runtimes/jdt-language-server-1.61.0-202609031315.tar.gz" + ], "sha256": "338e7e73d61836651ba2453919a0d34fa763eb4e7c03342092309bffb8934c64", "archive": "tar.gz", "home": "" @@ -146,6 +161,9 @@ "os": "windows", "arch": "x86_64", "url": "https://download.eclipse.org/jdtls/milestones/1.61.0/jdt-language-server-1.61.0-202609031315.tar.gz", + "mirrors": [ + "https://cnb.cool/lithe-idea/Lithe-store/-/releases/download/managed-runtimes/jdt-language-server-1.61.0-202609031315.tar.gz" + ], "sha256": "338e7e73d61836651ba2453919a0d34fa763eb4e7c03342092309bffb8934c64", "archive": "tar.gz", "home": "" diff --git a/third_party/jdtls/manifest.json b/third_party/jdtls/manifest.json index bf3263f..700db80 100644 --- a/third_party/jdtls/manifest.json +++ b/third_party/jdtls/manifest.json @@ -1,6 +1,9 @@ { "version": "1.61.0", "archiveURL": "https://download.eclipse.org/jdtls/milestones/1.61.0/jdt-language-server-1.61.0-202609031315.tar.gz", + "archiveMirrors": [ + "https://cnb.cool/lithe-idea/Lithe-store/-/releases/download/managed-runtimes/jdt-language-server-1.61.0-202609031315.tar.gz" + ], "archiveSHA256": "338e7e73d61836651ba2453919a0d34fa763eb4e7c03342092309bffb8934c64", "licenseURL": "https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt", "licenseSHA256": "0becf16567beb77fa252b7664631dd177c8f9a1889e48995b45379c7130e5303",