Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit f28808b

Browse files
authored
Merge c9dfb25 into 533152a
2 parents 533152a + c9dfb25 commit f28808b

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ jobs:
8383
- run: java -version
8484
- name: Build and install local Maven repository
8585
run: ./gradlew build publishToMavenLocal -x test -x signMavenJavaPublication
86+
- name: Generate artifact list (linkage-monitor-artifacts.txt) for Linkage Monitor
87+
run: ./gradlew createLinkageMonitorArtifactList
8688
- name: Check dependency conflicts with the latest Libraries BOM
8789
uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor
8890
- name: Check dependency conflicts in the gax artifacts

build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,3 +492,18 @@ task finalizeRelease {
492492
}
493493
}
494494
}
495+
496+
// Linkage Monitor searches for pom.xml but gax-java uses Gradle. Alternatively Linkage Monitor
497+
// reads linkage-monitor-artifacts.txt to get list of artifacts.
498+
// https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/Linkage-Monitor#linkage-monitor-artifactstxt
499+
task createLinkageMonitorArtifactList {
500+
doLast {
501+
def httpJsonVersion = project(":gax-httpjson").version
502+
503+
new File(projectDir, "linkage-monitor-artifacts.txt").text = """
504+
com.google.api:gax:$version
505+
com.google.api:gax-grpc:$version
506+
com.google.api:gax-httpjson:$httpJsonVersion
507+
"""
508+
}
509+
}

0 commit comments

Comments
 (0)