Skip to content

Instantly share code, notes, and snippets.

View suztomo's full-sized avatar
🐢

Tomo Suzuki suztomo

🐢
View GitHub Profile
@suztomo
suztomo / 2023_macbook_air_m2.txt
Created July 12, 2023 03:50
Comparison between 2015 MacBook v.s. 2023 MacBook Air
+------+------------------------------+-------------+
| fastlane summary |
+------+------------------------------+-------------+
| Step | Action | Time (in s) |
+------+------------------------------+-------------+
| 1 | default_platform | 0 |
| 2 | ./increment_build_number.sh | 0 |
| 3 | flutter build ios --release | 28 |
| | --no-codesign | |
| 4 | build_ios_app | 143 |

Normally, protoc compiler itself is compiled from source code when we use proto_library. However, we can speed up the build by using prebuilt protoc compiler.

Declare a repository for prebuilt protoc compiler in WORKSPACE:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
  name = "com_google_protobuf_protoc_linux_x86_64",
  build_file_content = 'exports_files(["bin/protoc"])',
@suztomo
suztomo / pom.xml
Last active June 2, 2023 03:25
The effective POM of sdk-platform-java/java-shared-dependencies/first-party-dependencies
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO] ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]
[INFO] -------------< com.google.cloud:first-party-dependencies >--------------
[INFO] Building Google Cloud First-party Shared Dependencies 3.10.1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-help-plugin:3.2.0:effective-pom (default-cli) @ first-party-dependencies ---
@suztomo
suztomo / pom.xml
Created May 9, 2023 14:46
Pom.xml modification (not finished) to pass Java 7 build
suztomo@suztomo2:~/google-http-java-client$ cat /tmp/x
diff --git a/google-http-client-bom/pom.xml b/google-http-client-bom/pom.xml
index dbde7bb8..187b1467 100644
--- a/google-http-client-bom/pom.xml
+++ b/google-http-client-bom/pom.xml
@@ -114,6 +114,7 @@
</dependencyManagement>
<build>
<plugins>
+ <!-- Java 7 build
@suztomo
suztomo / gist:e53da14311ae05abd9a2d42343eb1c5e
Created April 14, 2023 18:42
The effective-pom of libraries-bom
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO] ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]
[INFO] -------------------< com.google.cloud:libraries-bom >-------------------
[INFO] Building Google Cloud Platform Supported Libraries 26.13.0-SNAPSHOT
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-help-plugin:3.2.0:effective-pom (default-cli) @ libraries-bom ---
@suztomo
suztomo / release_note.26.12.0-SNAPSHOT.md
Created April 4, 2023 21:26
Release note for 26.12.0-SNAPSHOT

GCP Libraries BOM 26.12.0-SNAPSHOT

Here are the differences from the previous version (26.11.0)

The group ID of the following artifacts is com.google.cloud.

Notable Changes

google-cloud-storage 2.21.0 (prev: 2.20.2)

@suztomo
suztomo / gist:0ea89900758e5f461d8870c85c9a7710
Created January 23, 2023 15:05
compiling google-cloud-java monorepo
This file has been truncated, but you can view the full file.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.google.cloud:google-cloud-resource-settings:jar:1.9.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.google.api:gax-httpjson:jar -> duplicate declaration of version (?) @ line 64, column 17
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.google.api:gax:jar:testlib -> duplicate declaration of version (?) @ line 92, column 17
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.google.api:gax-httpjson:jar:testlib -> duplicate declaration of version (?) @ line 110, column 17
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
@suztomo
suztomo / gist:4f2c5d03d5b4007ca6f6e1b17af7367d
Created November 15, 2022 04:45
How generation/check_existing_release_versions.sh runs in Release Please pull request
suztomo@suztomo:~/google-cloud-java$ git checkout origin/check_existing_release_versions -- generation/check_existing_release_versions.sh
suztomo@suztomo:~/google-cloud-java$ generation/check_existing_release_versions.sh
Checking com.google.cloud:gapic-libraries-bom:0.2.1: The version does not exists. Good
Checking com.google.cloud:google-cloud-jar-parent:0.2.1: The version does not exists. Good
Checking com.google.cloud:google-cloud-pom-parent:0.2.1: The version does not exists. Good
Checking com.google.cloud:google-cloud-accessapproval-bom:2.6.1: The version does not exists. Good
Checking com.google.cloud:google-cloud-accessapproval:2.6.1: The version does not exists. Good
Checking com.google.api.grpc:grpc-google-cloud-accessapproval-v1:2.6.1: The version does not exists. Good
Checking com.google.cloud:google-cloud-accessapproval-parent:2.6.1: The version does not exists. Good
Checking com.google.api.grpc:proto-google-cloud-accessapproval-v1:2.6.1: The version does not exists. Good
@suztomo
suztomo / gist:d459244f7fd75f346a02c115fa24da02
Created October 18, 2022 17:20
Running com.google.cloud.tools.opensource.dependencies.LibrariesBomReleaseNote com.google.cloud:libraries-bom:26.1.4-SNAPSHOT
GCP Libraries BOM 26.1.4-SNAPSHOT
Here are the differences from the previous version (26.1.3)
# New Addition
- com.google.cloud:google-identity-accesscontextmanager:1.5.0
- com.google.cloud:google-cloud-domains:1.1.0
- com.google.cloud:google-cloud-contact-center-insights:2.4.0
- com.google.cloud:google-cloud-notebooks:1.2.0
- com.google.cloud:google-cloud-apigee-connect:2.4.0
@suztomo
suztomo / gist:6c48106fda143b4d399529dae85e2daa
Created September 28, 2022 15:14
Investigation of OwlBot pull request https://github.com/googleapis/google-cloud-java/pull/8462. Before owlbot-java postprocessor
suztomo@suztomo2:~/google-cloud-java$ git show --name-only 5573023cc472fedb3ff085528918d40217cf97f2 |cat
commit 5573023cc472fedb3ff085528918d40217cf97f2
Author: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Date: Wed Sep 28 15:10:55 2022 +0000
chore: updated docs and code sturcture for Dataproc metric configuration
Committer: @akshatbhargava123
PiperOrigin-RevId: 477101789