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
Include flogger-system-backend
in library pom as a runtime dep
#213
Comments
flogger-system-backend
a runtime dependencyflogger-system-backend
a runtime dependency in library pom
flogger-system-backend
a runtime dependency in library pomflogger-system-backend
in library pom as a runtime dep
The thing is, I don't think flogger-system-backend is a runtime dep. SOME system backend is, but it could just as easily be a remote logger instead of a stdout one |
Part of the issue as the pom.xml stand right now is that it is not possible for a user to run the pubsub lite client without picking a flogger backend due to the following exception being thrown.
It is correct that a user could choose to pick a different backend for their environment, but right now we're pushing an incomplete library definition. With maven, gradle etc it's possible for a user to exclude a library and swap to a different backend if they prefer it. For those users which are using std/err logging (which is the vast majority) I think it makes sense to provide a default backend which works out of the box. The above exception can be seen by trying to run the "Publishing Messages" code sample here with the following <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.cloud.testing</groupId>
<artifactId>pubsub-lite-testing</artifactId>
<version>0.1.0-SNAPSHOT</version>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-pubsublite</artifactId>
<version>0.2.0</version>
</dependency>
</dependencies>
</project>
|
If we make
flogger-system-backend
a runtime dependency ingoogle-cloud-pubsublite/pom.xml
, do we still need to specify it for samples? The goal is to clean up dependencies in the samples pom.xml if possible:java-pubsublite/samples/snippets/pom.xml
Lines 44 to 64 in 30a276b
Cc: @BenWhitehead
The text was updated successfully, but these errors were encountered: