diff --git a/.github/workflows/bld.yml b/.github/workflows/bld.yml index 9d11b55..eef7857 100644 --- a/.github/workflows/bld.yml +++ b/.github/workflows/bld.yml @@ -94,7 +94,7 @@ jobs: steps: - name: Checkout source repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 with: clean: true submodules: 'true' @@ -115,11 +115,8 @@ jobs: key: ${{ runner.os }}-bld-java${{ matrix.java-version}}-lib restore-keys: ${{ runner.os }}-bld-java${{ matrix.java-version}}-lib - - name: Download dependencies - run: ./bld clean download - - name: Compile source - run: ./bld compile + run: ./bld clean compile - name: Run tests id: tests @@ -143,7 +140,7 @@ jobs: steps: - name: Checkout source repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 with: clean: true submodules: 'true' @@ -190,7 +187,7 @@ jobs: run: git config --global core.autocrlf input - name: Checkout source repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 with: clean: true submodules: 'true' diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 1679e89..d68a3a2 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -31,7 +31,7 @@ jobs: steps: - name: Checkout source repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 with: clean: true submodules: 'true' @@ -57,4 +57,4 @@ jobs: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v5 \ No newline at end of file + uses: actions/deploy-pages@v5 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 06905a1..cc2a94f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,7 +9,7 @@ jobs: steps: - name: Checkout source repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 with: fetch-depth: 0 diff --git a/core b/core index fa56772..5f97763 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit fa567721c00d99626ed439db4f0340eadff0ec03 +Subproject commit 5f977636531d1b978b762a615d720097baa37830 diff --git a/src/main/java/rife/bld/dependencies/ArtifactRetriever.java b/src/main/java/rife/bld/dependencies/ArtifactRetriever.java index 7364fac..ac98ebd 100644 --- a/src/main/java/rife/bld/dependencies/ArtifactRetriever.java +++ b/src/main/java/rife/bld/dependencies/ArtifactRetriever.java @@ -6,6 +6,8 @@ package rife.bld.dependencies; import rife.bld.BldVersion; import rife.tools.FileUtils; +import rife.tools.HttpUtils; +import rife.tools.Product; import rife.tools.exceptions.FileUtilsErrorException; import java.io.File; @@ -191,7 +193,7 @@ public abstract class ArtifactRetriever { private static URLConnection openUrlConnection(RepositoryArtifact artifact) throws IOException { var connection = new URL(artifact.location()).openConnection(); connection.setUseCaches(false); - connection.setRequestProperty("User-Agent", "bld " + BldVersion.getVersion()); + connection.setRequestProperty(HttpUtils.HEADER_USER_AGENT, Product.BLD.toUserAgent(BldVersion.getVersion())); return connection; } diff --git a/src/main/java/rife/bld/wrapper/Wrapper.java b/src/main/java/rife/bld/wrapper/Wrapper.java index 3164b5d..bf2c939 100644 --- a/src/main/java/rife/bld/wrapper/Wrapper.java +++ b/src/main/java/rife/bld/wrapper/Wrapper.java @@ -830,7 +830,7 @@ public class Wrapper { throws IOException { var connection = url.openConnection(); connection.setUseCaches(false); - connection.setRequestProperty("User-Agent", "bld " + version); + connection.setRequestProperty(HttpUtils.HEADER_USER_AGENT, Product.BLD.toUserAgent(version)); try (var in = connection.getInputStream()) { return new String(in.readAllBytes(), StandardCharsets.UTF_8); }