Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,22 @@ jobs:
distribution: temurin
cache: maven
- name: Install Maven modules to local Maven repository
run: .kokoro/build.sh
env:
JOB_TYPE: install
shell: bash
run: |
# validate-bom checks POM and coordinate resolution without reading .class bytecode.
mkdir -p "${HOME}/.m2"
cp settings.xml "${HOME}/.m2"
mvn jar:jar jar:test-jar install:install -B -ntp \
-pl sdk-platform-java/java-core/google-cloud-core,java-spanner/google-cloud-spanner
mvn install -Pquick-build -B -ntp -T 1C \
-Dmaven.main.skip=true \
-Dmaven.test.skip=true \
-Dmaven.resources.skip=true \
-Dmaven.javadoc.skip=true \
-Dmaven.source.skip=true \
-Dprotoc.skip=true \
-Dexec.skip=true \
-DskipShade=true
- name: Validate gapic-libraries-bom
uses: googleapis/java-cloud-bom/tests/validate-bom@a634dd9327474415b45a6c1c0e42c3375800a249 # v26.84.0
with:
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/java-cloud-bom-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,24 @@ jobs:
java-version: 11
cache: maven
- run: java -version
- name: Install modules locally
- name: Install modules locally (metadata only)
if: github.head_ref != 'release-please--branches--main'
# Non-release PRs only run validate-bom, which checks POM and coordinate resolution without reading .class bytecode.
run: |
mvn jar:jar jar:test-jar install:install -B -ntp \
-pl sdk-platform-java/java-core/google-cloud-core,java-spanner/google-cloud-spanner
mvn install -B -ntp -Pquick-build -T 1C \
-Dmaven.main.skip=true \
-Dmaven.test.skip=true \
-Dmaven.resources.skip=true \
-Dmaven.javadoc.skip=true \
-Dmaven.source.skip=true \
-Dprotoc.skip=true \
-Dexec.skip=true \
-DskipShade=true
- name: Install modules locally (full compile for release checks)
if: github.head_ref == 'release-please--branches--main'
# Release PRs run BomContentTest#testLibrariesBom (assertUniqueClasses), which scans compiled .class files.
# Parallel in-process javac (-T 1C) intermittently hits type-inference races across
# generated grpc-* modules. Use -fae so independent modules still finish in parallel,
# then fall back to a single-threaded install (Maven skips already-compiled modules).
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/unmanaged_dependency_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,18 @@ jobs:
- name: Install all modules
shell: bash
run: |
mvn install -Pquick-build -DskipTests -B -ntp -T 1C
# UnmanagedDependencyCheck resolves POM metadata and artifact coordinates without reading .class bytecode.
mvn jar:jar jar:test-jar install:install -B -ntp \
-pl sdk-platform-java/java-core/google-cloud-core,java-spanner/google-cloud-spanner
mvn install -Pquick-build -B -ntp -T 1C \
-Dmaven.main.skip=true \
-Dmaven.test.skip=true \
-Dmaven.resources.skip=true \
-Dmaven.javadoc.skip=true \
-Dmaven.source.skip=true \
-Dprotoc.skip=true \
-Dexec.skip=true \
-DskipShade=true
- name: Unmanaged dependency check
uses: ./sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check
with:
Expand Down
1 change: 0 additions & 1 deletion java-spanner-jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,6 @@
<argument>${project.basedir}/documentation/connection_properties.md</argument>
</arguments>
<classpathScope>test</classpathScope>
<skip>false</skip>
</configuration> </execution>
</executions>
</plugin>
Expand Down
Loading