File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
2- set -ex
2+ set -e
33# This script should be run at the root of the repository.
44# This script is used to update googleapis_commitish, gapic_generator_version,
55# and libraries_bom_version in generation configuration at the time of running
@@ -15,10 +15,8 @@ set -ex
1515function get_latest_released_version() {
1616 local group_id=$1
1717 local artifact_id=$2
18- group_id_url_path=" $( sed ' s|\.|/|g' <<< " ${group_id}" ) "
19- url=" https://repo1.maven.org/maven2/${group_id_url_path} /${artifact_id} /maven-metadata.xml"
20- xml_content=$( curl -s --fail " ${url} " )
21- latest=$( xmllint --xpath ' metadata/versioning/latest/text()' - <<< " ${xml_content}" )
18+ json_content=$( curl -s " https://search.maven.org/solrsearch/select?q=g:${group_id} +AND+a:${artifact_id} &core=gav&rows=500&wt=json" )
19+ latest=$( jq -r ' .response.docs[] | select(.v | test("^[0-9]+(\\.[0-9]+)*$")) | .v' <<< " ${json_content}" | sort -V | tail -n 1)
2220 if [[ -z " ${latest} " ]]; then
2321 echo " The latest version of ${group_id} :${artifact_id} is empty."
2422 echo " The returned json from maven.org is invalid: ${json_content} "
@@ -174,4 +172,4 @@ if [ -z "${pr_num}" ]; then
174172else
175173 git push
176174 gh pr edit " ${pr_num} " --title " ${title} " --body " ${title} "
177- fi
175+ fi
Original file line number Diff line number Diff line change 1818 schedule :
1919 - cron : ' 0 2 * * *'
2020 workflow_dispatch :
21+
2122jobs :
2223 update-generation-config :
2324 runs-on : ubuntu-24.04
2930 with :
3031 fetch-depth : 0
3132 token : ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
32- - name : Install Dependencies
33- shell : bash
34- run : sudo apt-get update && sudo apt-get install -y libxml2-utils
3533 - name : Update params in generation config to latest
3634 shell : bash
3735 run : |
4240 --base_branch "${base_branch}" \
4341 --repo ${{ github.repository }}
4442 env :
45- GH_TOKEN : ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
43+ GH_TOKEN : ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
44+
Original file line number Diff line number Diff line change @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigtable'
5656If you are using Gradle without BOM, add this to your dependencies:
5757
5858``` Groovy
59- implementation 'com.google.cloud:google-cloud-bigtable:2.62 .0'
59+ implementation 'com.google.cloud:google-cloud-bigtable:2.63 .0'
6060```
6161
6262If you are using SBT, add this to your dependencies:
6363
6464``` Scala
65- libraryDependencies += " com.google.cloud" % " google-cloud-bigtable" % " 2.62 .0"
65+ libraryDependencies += " com.google.cloud" % " google-cloud-bigtable" % " 2.63 .0"
6666```
6767
6868## Authentication
@@ -470,7 +470,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
470470[kokoro-badge-link-5] : http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigtable/java11.html
471471[stability-image] : https://img.shields.io/badge/stability-stable-green
472472[maven-version-image] : https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigtable.svg
473- [maven-version-link] : https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigtable/2.62 .0
473+ [maven-version-link] : https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigtable/2.63 .0
474474[authentication] : https://github.com/googleapis/google-cloud-java#authentication
475475[auth-scopes] : https://developers.google.com/identity/protocols/oauth2/scopes
476476[predefined-iam-roles] : https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
You can’t perform that action at this time.
0 commit comments