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

Commit

Permalink
chore: remove Linkage Monitor (#1596)
Browse files Browse the repository at this point in the history
  • Loading branch information
chanseokoh authored Jan 7, 2022
1 parent 540c22a commit 73d078e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 650 deletions.
6 changes: 0 additions & 6 deletions .github/sync-repo-settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ branchProtectionRules:
requiresStrictStatusChecks: true
requiredStatusCheckContexts:
- bazel
- linkage-monitor (8)
- linkage-monitor (11)
- units (7)
- units (8)
- units (11)
Expand All @@ -32,8 +30,6 @@ branchProtectionRules:
requiresStrictStatusChecks: true
requiredStatusCheckContexts:
- bazel
- linkage-monitor (8)
- linkage-monitor (11)
- units (7)
- units (8)
- units (11)
Expand All @@ -45,8 +41,6 @@ branchProtectionRules:
requiresStrictStatusChecks: true
requiredStatusCheckContexts:
- bazel
- linkage-monitor (8)
- linkage-monitor (11)
- units (7)
- units (8)
- units (11)
Expand Down
12 changes: 0 additions & 12 deletions .kokoro/presubmit/linkage-monitor.cfg

This file was deleted.

37 changes: 0 additions & 37 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,9 @@ configure(javaProjects) {

configurations {
shadowNoGuava
linkageChecker
implementation.exclude group: 'com.google.guava', module: 'guava-jdk5'
}

dependencies {
// Separate configuration (class path) for Linkage Checker
linkageChecker 'com.google.cloud.tools:dependencies:1.5.12'
}

jacoco.toolVersion = '0.8.5'
jacocoTestReport {
reports {
Expand Down Expand Up @@ -276,22 +270,6 @@ configure(normalReleasableProjects) {
}
}
}

task checkJavaLinkage(type: JavaExec) {
// Example invocation:
// ./gradlew gax-httpjson:checkJavaLinkage
dependsOn project.getTasksByName('publishMavenJavaPublicationToMavenLocal', true)
classpath = configurations.linkageChecker
mainClass = 'com.google.cloud.tools.opensource.classpath.LinkageCheckerMain'

def arguments = ['-a', "com.google.api:${project.name}:${project.version}"]
if (project.name == 'gax-grpc') {
// The exclusion file can be regenerated by '-o' option. See its Wiki for details:
// https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/LinkageCheckerMain#exclusion-files
arguments += ['--exclusion-file', 'linkage-checker-exclusion.xml']
}
args arguments
}
}

signing {
Expand Down Expand Up @@ -335,18 +313,3 @@ task javadocCombinedV3(type: Javadoc) {
clean {
delete 'tmp_docs/'
}

// Linkage Monitor searches for pom.xml but gax-java uses Gradle. Alternatively Linkage Monitor
// reads linkage-monitor-artifacts.txt to get list of artifacts.
// https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/Linkage-Monitor#linkage-monitor-artifactstxt
task createLinkageMonitorArtifactList {
doLast {
def httpJsonVersion = project(':gax-httpjson').version

new File('linkage-monitor-artifacts.txt').text = """
com.google.api:gax:$version
com.google.api:gax-grpc:$version
com.google.api:gax-httpjson:$httpJsonVersion
"""
}
}
Loading

0 comments on commit 73d078e

Please sign in to comment.