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

Include working sample code in the Java docs #314

Closed
andrasfuchs opened this issue Jan 23, 2022 · 1 comment
Closed

Include working sample code in the Java docs #314

andrasfuchs opened this issue Jan 23, 2022 · 1 comment

Comments

@andrasfuchs
Copy link

I followed the Java tutorial to get things running with Segment, but I got some errors, and it's still not working.

The first one was because newer Gradle versions support the implementation keyword instead of compile for defining dependencies.

You have this in your docs:
image

...but it's deprecated: https://docs.gradle.org/6.9.1/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations

The second problem I ran into is that your sample code uses ImmutableMap which changed with the newer versions of the guava.
Could you change the code to use a simple HashMap instead?

Also, it would be great to have a working Java example project that we can run right away.

@nd4p90x
Copy link
Collaborator

nd4p90x commented Mar 23, 2022

PR #2592

@nd4p90x nd4p90x closed this as completed Mar 23, 2022
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

No branches or pull requests

2 participants