diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 84186a48a..66ecee8ff 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -55,7 +55,7 @@ jobs: run: | find . -type f -name "pom.xml" -exec sed -i -e 's|${revision}|${{ steps.version.outputs.value }}|g' \ -e 's|^\( \).*\(\)$|\1${{ steps.version.outputs.value }}\2|' \ - -e 's|${parent.groupId}|tech.clickhouse|g' -e 's|.*argLine.*timezone=.*||g' '{}' \; + -e 's|${parent.groupId}|com.clickhouse|g' '{}' \; find . -type f -name "log4j.*" -exec rm -fv '{}' \; - name: Build project run: | @@ -99,7 +99,7 @@ jobs: run: | find . -type f -name "pom.xml" -exec sed -i -e 's|${revision}|${{ github.event.inputs.version }}|g' \ -e 's|^\( \).*\(\)$|\1${{ github.event.inputs.driver }}\2|' \ - -e 's|${parent.groupId}|tech.clickhouse|g' -e 's|.*argLine.*timezone=.*||g' '{}' \; + -e 's|${parent.groupId}|com.clickhouse|g' '{}' \; find . -type f -name "log4j.*" -exec rm -fv '{}' \; continue-on-error: true - name: Install driver as needed diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 73c72379b..cc7b0f51b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: run: | find . -type f -name "pom.xml" -exec sed -i -e 's|${revision}|${{ github.event.inputs.version }}|g' \ -e 's|^\( \).*\(\)$|\1${{ github.event.inputs.version }}\2|' \ - -e 's|${parent.groupId}|tech.clickhouse|g' -e 's|.*argLine.*timezone=.*||g' '{}' \; + -e 's|${parent.groupId}|com.clickhouse|g' '{}' \; find . -type f -name "log4j.*" -exec rm -fv '{}' \; - name: Release Maven package uses: samuelmeuli/action-maven-publish@v1 diff --git a/.github/workflows/release_3rd_party_libs.yml b/.github/workflows/release_3rd_party_libs.yml new file mode 100644 index 000000000..1306e392a --- /dev/null +++ b/.github/workflows/release_3rd_party_libs.yml @@ -0,0 +1,38 @@ +name: Release + +on: + workflow_dispatch: + inputs: + version: + description: "Release version" + required: true + default: "1.0.0" + +jobs: + release: + name: "Build and Publish Repackaged 3rd Party Libraries" + runs-on: "ubuntu-latest" + + steps: + - name: Check out Git repository + uses: actions/checkout@v2 + - name: Install Java and Maven + uses: actions/setup-java@v1 + with: + java-version: 9 + - name: Update pom files and reduce logs + run: | + find . -type f -name "pom.xml" -exec sed -i -e 's|${revision}|${{ github.event.inputs.version }}|g' \ + -e 's|^\( \).*\(\)$|\1${{ github.event.inputs.version }}\2|' \ + -e 's|${parent.groupId}|com.clickhouse|g' '{}' \; + find . -type f -name "log4j.*" -exec rm -fv '{}' \; + - name: Release Maven package + uses: samuelmeuli/action-maven-publish@v1 + with: + directory: third-party-libraries + maven_profiles: release + maven_args: -q --batch-mode + gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} + nexus_username: ${{ secrets.SONATYPE_USER }} + nexus_password: ${{ secrets.SONATYPE_PASSWD }} diff --git a/.github/workflows/timezone.yml b/.github/workflows/timezone.yml index b6ee3e631..3cc190dd6 100644 --- a/.github/workflows/timezone.yml +++ b/.github/workflows/timezone.yml @@ -56,7 +56,6 @@ jobs: ${{ runner.os }}-build- - name: Test using Maven run: | - find . -type f -name "pom.xml" -exec sed -i -e 's|.*argLine.*timezone=.*||g' '{}' \; mvn --batch-mode --update-snapshots \ -DclickhouseTimezone=${{ matrix.serverTz }} \ -DclickhouseVersion=21.8 \ diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 86fef8a0d..91725e5fb 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -85,7 +85,6 @@ jobs: - name: Verify with Maven if: steps.check.outputs.triggered == 'true' run: | - find . -type f -name "pom.xml" -exec sed -i -e 's|.*argLine.*timezone=.*||g' '{}' \; mvn --batch-mode --update-snapshots \ -DclickhouseVersion=${{ fromJSON(steps.commented.outputs.result).clickhouse }} \ -DclickhouseTimezone=Asia/Chongqing \ @@ -129,7 +128,6 @@ jobs: continue-on-error: true - name: Verify with Maven run: | - find . -type f -name "pom.xml" -exec sed -i -e 's|.*argLine.*timezone=.*||g' '{}' \; mvn --batch-mode --update-snapshots \ -DclickhouseVersion=${{ github.event.inputs.clickhouse }} \ -DclickhouseTimezone=${{ github.event.inputs.chTz }} \ diff --git a/third-party-libraries/io.grpc/pom.xml b/third-party-libraries/io.grpc/pom.xml index 35e0305ba..344831376 100644 --- a/third-party-libraries/io.grpc/pom.xml +++ b/third-party-libraries/io.grpc/pom.xml @@ -5,21 +5,18 @@ com.clickhouse third-party-libraries - 1.0.0 + ${revision} io.grpc - ${grpc.version} - Repackaged grpc-java for JPMS support - A Java modules compatible re-packaging of grpc-java + ${revision} + jar + + ${project.artifactId} + Repackaged grpc-java for JPMS support + https://github.com/ClickHouse/clickhouse-jdbc/tree/master/third-party-libraries/io.grpc - io.grpc grpc-api @@ -72,7 +69,6 @@ - org.apache.maven.plugins maven-jar-plugin @@ -82,8 +78,6 @@ - - org.apache.maven.plugins maven-shade-plugin @@ -114,14 +108,6 @@ - diff --git a/third-party-libraries/org.roaringbitmap/pom.xml b/third-party-libraries/org.roaringbitmap/pom.xml index 12afaa8e2..f85521e67 100644 --- a/third-party-libraries/org.roaringbitmap/pom.xml +++ b/third-party-libraries/org.roaringbitmap/pom.xml @@ -4,15 +4,15 @@ com.clickhouse third-party-libraries - 1.0.0 + ${revision} org.roaringbitmap - ${roaring-bitmap.version} + ${revision} jar ${project.artifactId} - Repackaged RoaringBitmap for JPMS compatibility + Repackaged RoaringBitmap for JPMS support https://github.com/ClickHouse/clickhouse-jdbc/tree/master/third-party-libraries/org.roaringbitmap diff --git a/third-party-libraries/pom.xml b/third-party-libraries/pom.xml index 312f8fefc..b076f683c 100644 --- a/third-party-libraries/pom.xml +++ b/third-party-libraries/pom.xml @@ -4,7 +4,7 @@ com.clickhouse third-party-libraries - 1.0.0 + ${revision} pom ${project.artifactId} @@ -68,6 +68,7 @@ + 1.0.0 2021 UTF-8 UTF-8 @@ -85,6 +86,7 @@ 3.2.4 3.2.1 3.2.0 + 3.2.0 @@ -188,6 +190,11 @@ maven-jar-plugin ${jar-plugin.version} + + org.apache.maven.plugins + maven-javadoc-plugin + ${javadoc-plugin.version} + org.apache.maven.plugins maven-shade-plugin @@ -260,6 +267,18 @@ + + org.apache.maven.plugins + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + org.apache.maven.plugins maven-gpg-plugin