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

Provide download links to the Guava JAR files #3151

Closed
mojojojo94 opened this issue May 20, 2018 · 8 comments
Closed

Provide download links to the Guava JAR files #3151

mojojojo94 opened this issue May 20, 2018 · 8 comments
Assignees
Labels
P3 status=fixed type=documentation Documentation that is other than for an API type=enhancement Make an existing feature better

Comments

@mojojojo94
Copy link

No description provided.

@jbduncan
Copy link
Contributor

Hi @mojojojo94. Good question! Unless you're using Maven or Gradle to manage dependencies like Guava for you, it's not that easy to find a compiled JAR file for the latest Guava version (25.0 at time of writing).

Try looking into http://central.maven.org/maven2/com/google/guava/guava/25.0-jre/. You should find guava-25.0-jre.jar there and be able to download it, which I believe is what you're after.

(Alternatively, if you're developing for Android, try looking into http://central.maven.org/maven2/com/google/guava/guava/25.0-android/ and searching for guava-25.0-android.jar instead.)

I hope this helps!

@jbduncan
Copy link
Contributor

@cpovirk @cgdecker I wonder if we should start providing again links to downloadable jars for each release in https://github.com/google/guava/releases, as what used to happen up until version 21.0.

WDYT?

@jbduncan
Copy link
Contributor

@mojojojo94 I should note a caveat with downloading just the Guava jar by itself.

Downloading just the Guava jar means that you won't have access to Guava's own dependencies either, of which there are a few.

On the plus side, these dependencies aren't mandatory (by my understanding), as they just contain various annotations.

But if you intend to use Guava with tools like error-prone, or if you intend to use the Java command-line options -Werror and -Xlint:all, then you'll likely have problems as described in #2721.

@mojojojo94
Copy link
Author

@jbduncan Thank you for your reply! Needed the library for a small program and did not need to set up a maven or gradle dependency. JAR files are nice if you need them in a snap.

@netdpb netdpb changed the title Where is the guava JAR file? Provide download links to the Guava JAR files May 21, 2018
@netdpb netdpb added status=triaged type=documentation Documentation that is other than for an API P2 labels May 21, 2018
@netdpb
Copy link
Member

netdpb commented May 21, 2018

@jbduncan Not a bad idea.

@jrtom
Copy link
Member

jrtom commented May 21, 2018

I'm pretty sure that there used to be download links from the main README file; I know because that's where I got the idea to do the same for JUNG (which still has them: https://github.com/jrtom/jung).

It could be that we removed those because it made it more of a pain to update when we started doing more frequent releases, I don't know.

@cgdecker
Copy link
Member

I partly stopped doing this because A) I wasn't sure anyone did manual dependency management anymore, and B) you could get the jars from central.maven.org. But I guess we also aren't including the links to central.maven.org for the releases in the release notes now either.

I don't think it's worth including direct links in the main README; to me it seems preferable to just provide a link to the release page for the latest release from the README and provide any links specific to that release from there. I'm actually thinking about maybe getting rid of the release-specific stuff in our README (anything the references the version number) and just providing a link to the latest release via https://github.com/google/guava/releases/latest and/or a Github badge that uses that link. We might still want to include the general XML for including the dependency there, but with ${version} instead of an actual version number.

@raghsriniv raghsriniv added type=enhancement Make an existing feature better P3 and removed P2 labels Jul 29, 2019
@cgdecker
Copy link
Member

I've added links to jar file downloads to the release page for the latest release (30.1.1) and updated our script that generates the base release page format to include those links for future releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 status=fixed type=documentation Documentation that is other than for an API type=enhancement Make an existing feature better
Projects
None yet
Development

No branches or pull requests

6 participants