From 1b0c2ff3ee7803f146d9c04c903dc0ccc2569bc4 Mon Sep 17 00:00:00 2001 From: Guillaume Le Floch Date: Thu, 17 Jun 2021 16:57:38 +0200 Subject: [PATCH] Export JBANG_REPO env variable for release test ci job --- .github/workflows/release-build.yml | 1 + .../src/main/java/io/quarkus/cli/build/JBangRunner.java | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 6a6141c6333db..09bcb8cdbff6b 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -12,6 +12,7 @@ jobs: if: github.repository == 'quarkusio/quarkus' env: MAVEN_OPTS: -Xmx2048m -XX:MaxMetaspaceSize=1000m + JBANG_REPO: $HOME/release/repository steps: - uses: actions/checkout@v2 with: diff --git a/devtools/cli/src/main/java/io/quarkus/cli/build/JBangRunner.java b/devtools/cli/src/main/java/io/quarkus/cli/build/JBangRunner.java index 1c79a441af8af..2cea8ce57d985 100644 --- a/devtools/cli/src/main/java/io/quarkus/cli/build/JBangRunner.java +++ b/devtools/cli/src/main/java/io/quarkus/cli/build/JBangRunner.java @@ -14,7 +14,6 @@ import io.quarkus.cli.common.RegistryClientMixin; import io.quarkus.cli.common.RunModeOption; import io.quarkus.devtools.project.BuildTool; -import io.quarkus.registry.config.RegistriesConfigLocator; public class JBangRunner implements BuildSystemRunner { static final String[] windowsWrapper = { "jbang.cmd", "jbang.ps1" }; @@ -72,7 +71,6 @@ public BuildCommandArgs prepareBuild(BuildOptions buildOptions, RunModeOption ru args.add("--native"); } args.add("build"); - setJbangProperties(args, false); args.addAll(params); args.add(getMainPath()); return prependExecutable(args); @@ -126,10 +124,4 @@ String getMainPath() { } return mainPath; } - - void setJbangProperties(ArrayDeque args, boolean batchMode) { - ExecuteUtil.propagatePropertyIfSet("maven.repo.local", args); - ExecuteUtil.propagatePropertyIfSet(RegistriesConfigLocator.CONFIG_FILE_PATH_PROPERTY, args); - ExecuteUtil.propagatePropertyIfSet("io.quarkus.maven.secondary-local-repo", args); - } }