Skip to content

Commit

Permalink
Adding exclusion file for autoconfigure package (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
suztomo authored Apr 2, 2021
1 parent 96b2758 commit 67f9a2b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/linkageCheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
run: |
./mvnw \
--activate-profiles linkage-check \
--projects spring-cloud-gcp-dependencies \
--batch-mode \
--show-version \
--threads 1.5C \
Expand Down
21 changes: 21 additions & 0 deletions spring-cloud-gcp-dependencies/linkage-checker-exclusion-rules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<LinkageCheckerFilter>
<LinkageError>
<Source>
<Package name="com.google.cloud.spring.autoconfigure"/>
</Source>
<Reason>
Spring's autoconfigure classes work only when certain classes are available.
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Class name="org.springframework.integration.file.remote.handler.FileTransferringMessageHandler"/>
</Target>
<Source>
<Class name="com.google.cloud.spring.storage.integration.outbound.GcsMessageHandler"/>
</Source>
<Reason>
The source class is used only when the target class is available.
</Reason>
</LinkageError>
</LinkageCheckerFilter>
1 change: 1 addition & 0 deletions spring-cloud-gcp-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@
implementation="com.google.cloud.tools.dependencies.enforcer.LinkageCheckerRule">
<dependencySection>DEPENDENCY_MANAGEMENT</dependencySection>
<reportOnlyReachable>true</reportOnlyReachable>
<exclusionFile>spring-cloud-gcp-dependencies/linkage-checker-exclusion-rules.xml</exclusionFile>
</LinkageCheckerRule>
</rules>
</configuration>
Expand Down

0 comments on commit 67f9a2b

Please sign in to comment.