diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index abd406e..f18c051 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -24,7 +24,7 @@ jobs: - name: Get Project version id: get_version - run: echo ::set-output name=VERSION::$(gradle properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}') + run: echo VERSION=$(gradle properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}') >> "$GITHUB_OUTPUT" - name: Decode run: | @@ -38,12 +38,11 @@ jobs: arguments: assemble publish -Psigning.keyId=${{secrets.SIGNING_KEY_ID}} -Psigning.password=${{secrets.SIGNING_PASSWORD}} -Psigning.secretKeyRingFile=/tmp/secring.gpg -PossrhUsername=${{secrets.SONATYPE_NEXUS_USERNAME}} -PossrhPassword=${{secrets.SONATYPE_NEXUS_PASSWORD}} --stacktrace - name: Create Release in Github - uses: actions/create-release@latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + uses: softprops/action-gh-release@v1 with: tag_name: ${{ steps.get_version.outputs.VERSION }} - release_name: ${{ steps.get_version.outputs.VERSION }} + name: ${{ steps.get_version.outputs.VERSION }} + generate_release_notes: true body: | Available in Sonatype repository under: [`io.reactiverse:aws-sdk:${{ steps.get_version.outputs.VERSION }}`](https://central.sonatype.com/artifact/io.reactiverse/aws-sdk/${{ steps.get_version.outputs.VERSION }}) diff --git a/.github/workflows/ci-snapshot.yml b/.github/workflows/ci-snapshot.yml index 689fd17..f5dedac 100644 --- a/.github/workflows/ci-snapshot.yml +++ b/.github/workflows/ci-snapshot.yml @@ -23,7 +23,7 @@ jobs: - name: Get Project version id: get_version - run: echo ::set-output name=VERSION::$(gradle properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}') + run: echo VERSION=$(gradle properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}') >> "$GITHUB_OUTPUT" - name: Decode run: | @@ -37,12 +37,11 @@ jobs: arguments: assemble publish -Psigning.keyId=${{secrets.SIGNING_KEY_ID}} -Psigning.password=${{secrets.SIGNING_PASSWORD}} -Psigning.secretKeyRingFile=/tmp/secring.gpg -PossrhUsername=${{secrets.SONATYPE_NEXUS_USERNAME}} -PossrhPassword=${{secrets.SONATYPE_NEXUS_PASSWORD}} --stacktrace - name: Create Release in Github - uses: actions/create-release@latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + uses: softprops/action-gh-release@v1 with: tag_name: ${{ steps.get_version.outputs.VERSION }} - release_name: ${{ steps.get_version.outputs.VERSION }} + name: ${{ steps.get_version.outputs.VERSION }} + generate_release_notes: true body: | Available in Sonatype SNAPSHOTs repository under: `io.reactiverse:aws-sdk:${{ steps.get_version.outputs.VERSION }}` diff --git a/README.md b/README.md index e2d4e3a..220f3ae 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Artifacts are published [here](https://search.maven.org/artifact/io.reactiverse/ | Project | Vert.x | AWS sdk | |---------|--------|----------| +| 1.2.2 | 4.4.5 | 2.20.138 | | 1.2.1 | 4.4.2 | 2.20.74 | | 1.2.0 | 4.4.0 | 2.20.2 | | 1.1.0 | 4.2.4 | 2.17.129 | diff --git a/build.gradle.kts b/build.gradle.kts index 8925919..405cedb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,12 +1,12 @@ -val vertxVersion = "4.4.2" -val awsSdkVersion = "2.20.74" +val vertxVersion = "4.4.5" +val awsSdkVersion = "2.20.138" val junit5Version = "5.8.2" val logbackVersion = "1.2.10" val localstackVersion = "0.2.22" val integrationOption = "tests.integration" group = "io.reactiverse" -version = "1.2.1" +version = "1.2.2-SNAPSHOT" plugins { `java-library` @@ -37,7 +37,7 @@ repositories { } fun isNonStable(version: String): Boolean { - val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.toUpperCase().contains(it) } + val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.uppercase().contains(it) } val regex = "^[0-9,.v-]+(-r)?$".toRegex() val isStable = stableKeyword || regex.matches(version) return isStable.not() diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..8fe20ee --- /dev/null +++ b/gradle.properties @@ -0,0 +1 @@ +org.gradle.jvmargs=-Xmx4096m diff --git a/src/main/java/io/reactiverse/awssdk/reactivestreams/WriteStreamSubscriber.java b/src/main/java/io/reactiverse/awssdk/reactivestreams/WriteStreamSubscriber.java index a5e164f..f17facc 100644 --- a/src/main/java/io/reactiverse/awssdk/reactivestreams/WriteStreamSubscriber.java +++ b/src/main/java/io/reactiverse/awssdk/reactivestreams/WriteStreamSubscriber.java @@ -36,7 +36,7 @@ public void onSubscribe(Subscription subscription) { @Override public void onNext(ByteBuffer byteBuffer) { - if (byteBuffer.array().length != 0) { + if (byteBuffer.hasRemaining()) { Buffer buffer = Buffer.buffer(Unpooled.wrappedBuffer(byteBuffer)); stream.write(buffer); }