From e35bfebf95b886277578d29737448954c74540ef Mon Sep 17 00:00:00 2001 From: Tom Desair Date: Fri, 6 Oct 2023 21:23:39 +0200 Subject: [PATCH 1/2] feat: Added build step for Java 21 --- .github/workflows/build.yml | 2 +- .github/workflows/codestyle.yml | 4 ++-- README.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f8c477..b39353b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: mvn-install: strategy: matrix: - java: [17] + java: [17, 21] os: [ubuntu-latest, windows-latest] include: - os: ubuntu-latest diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index d3b9f5e..9456cd1 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -23,10 +23,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Set up JDK 17 + - name: Set up JDK 21 uses: actions/setup-java@v3 with: - java-version: "17" + java-version: "21" distribution: "temurin" cache: maven - name: Check codestyle with Maven diff --git a/README.md b/README.md index c296a2b..1907b15 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ The first step is to create a `TusFileUploadService` object using its constructo * `withUploadUri(String)`: Set the relative URL under which the main tus upload endpoint will be made available, for example `/files/upload`. Optionally, this URI may contain regex parameters in order to support endpoints that contain URL parameters, for example `/users/[0-9]+/files/upload`. * `withMaxUploadSize(Long)`: Specify the maximum number of bytes that can be uploaded per upload. If you don't call this method, the maximum number of bytes is `Long.MAX_VALUE`. * `withStoragePath(String)`: If you're using the default file system-based storage service, you can use this method to specify the path where to store the uploaded bytes and upload information. -* `withChunkedTransferDecoding`: You can enable or disable the decoding of chunked HTTP requests by this library. Enable this feature in case the web container in which this service is running does not decode chunked transfers itself. By default, chunked decoding via this library is disabled (as modern frameworks tend to already do this for you). +* `withChunkedTransferDecoding`: You can enable or disable the decoding of chunked HTTP requests by this library. Enable this feature in case the web container in which this service is running does not decode chunked transfers itself. **By default, chunked decoding via this library is disabled (as modern frameworks tend to already do this for you)**. * `withThreadLocalCache(Boolean)`: Optionally you can enable (or disable) an in-memory (thread local) cache of upload request data to reduce load on the storage backend and potentially increase performance when processing upload requests. * `withUploadExpirationPeriod(Long)`: You can set the number of milliseconds after which an upload is considered as expired and available for cleanup. * `withDownloadFeature()`: Enable the unofficial `download` extension that also allows you to download uploaded bytes. From e31a9062ec5c077f8939c69c802b4da54398225f Mon Sep 17 00:00:00 2001 From: Tom Desair Date: Fri, 6 Oct 2023 21:36:01 +0200 Subject: [PATCH 2/2] fix: temporarily use early access version of Java 21 --- .github/workflows/build.yml | 4 ++-- .github/workflows/codestyle.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b39353b..4b6cfa5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,11 +22,11 @@ jobs: mvn-install: strategy: matrix: - java: [17, 21] + java: ['17', '21-ea'] os: [ubuntu-latest, windows-latest] include: - os: ubuntu-latest - java: 17 + java: '17' upload-dependency-graph: true run-sonarcloud: true run-coveralls: true diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index 9456cd1..d3b9f5e 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -23,10 +23,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Set up JDK 21 + - name: Set up JDK 17 uses: actions/setup-java@v3 with: - java-version: "21" + java-version: "17" distribution: "temurin" cache: maven - name: Check codestyle with Maven