Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: exclude commons logging from artifacts. #2407

Merged
merged 4 commits into from
Dec 7, 2023
Merged

Conversation

zhumin8
Copy link
Contributor

@zhumin8 zhumin8 commented Dec 5, 2023

Spring Boot starters ships with spring-jcl module (doc), which comes with its own Commons Logging bridge implemented in the spring-jcl module (Spring Framework doc ). This has potential conflicts with commons-logging.jar from classpath.

In particular, this causes failure for native compilation when logging gets accidentally initialized at runtime instead of build time.

This pr tries to exclude commons-logging from SCGCP artifacts. With 2 exceptions: preview modules and spanner-data-spring-data-r2dbc module.
Also removes this flag for native builds:
<buildArg>--initialize-at-build-time=org.apache.commons.logging.LogFactory</buildArg>

@@ -24,10 +24,5 @@
<artifactId>spring-cloud-gcp-vision</artifactId>
</dependency>

<dependency>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This dependency is redundant as it's part of spring-cloud-gcp-vision above.

Copy link

sonarqubecloud bot commented Dec 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@zhumin8 zhumin8 marked this pull request as ready for review December 5, 2023 22:34
@zhumin8 zhumin8 requested review from a team as code owners December 5, 2023 22:34
@zhumin8 zhumin8 requested a review from burkedavison December 5, 2023 22:34
@burkedavison
Copy link
Member

If we merge this PR, please create an issue to remove it once googleapis/google-http-java-client#1905 has been released.

@zhumin8 zhumin8 merged commit 4c084e1 into main Dec 7, 2023
53 checks passed
@zhumin8 zhumin8 deleted the exclude-commons-logging branch December 7, 2023 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants