Skip to content

Instantly share code, notes, and snippets.

View suztomo's full-sized avatar
🐢

Tomo Suzuki suztomo

🐢
View GitHub Profile
@suztomo
suztomo / tree.txt
Created May 16, 2024 16:26
Dependency trees of google-http-java-client artifacts
~/google-http-java-client $ mvn dependency:tree -Dverbose
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.google.http-client:google-http-client:jar:1.44.2-SNAPSHOT
[WARNING] 'build.pluginManagement.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-source-plugin @ com.google.http-client:google-http-client-parent:1.44.2-SNAPSHOT, /Users/suztomo/google-http-java-client/pom.xml, line 391, column 17
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.google.http-client:google-http-client-parent:pom:1.44.2-SNAPSHOT
[WARNING] 'build.pluginManagement.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-source-plugin @ line 391, column 17
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build
@suztomo
suztomo / gist:e3e70b8eb78f7314ebb7e7c68b65c39b
Created April 16, 2024 12:56
Effective POM of Libraries BOM 26.34.0
suztomo@suztomo-macbookpro.roam.internal ~/java-cloud-bom/libraries-bom
~/java-cloud-bom/libraries-bom $ git log -1
commit 67faa24576bea7259e5ab757553b5969c78f85de (HEAD, tag: v26.34.0)
Author: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Date: Thu Mar 7 17:03:26 2024 -0500
chore: release main (#6472)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
suztomo@suztomo-macbookpro.roam.internal ~/java-cloud-bom/libraries-bom
@suztomo
suztomo / effective-pom.txt
Created April 5, 2024 03:02
The effective-pom of google-cloud-pubsublite
[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:google-cloud-pubsublite >--------------
[INFO] Building Google Cloud Pub/Sub Lite 1.13.3-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-help-plugin:3.4.0:effective-pom (default-cli) @ google-cloud-pubsublite ---
@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.