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

fix non android gradle instructions #467

Closed
wants to merge 1 commit into from
Closed

fix non android gradle instructions #467

wants to merge 1 commit into from

Conversation

xenoterracide
Copy link

@xenoterracide xenoterracide commented Apr 29, 2021

resolves #466

@CLAassistant
Copy link

CLAassistant commented Apr 29, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@msridhar msridhar left a comment

Choose a reason for hiding this comment

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

Thanks for this! Couple comments

@@ -23,15 +23,17 @@ plugins {
}

dependencies {
annotationProcessor "com.uber.nullaway:nullaway:0.9.1"
errorprone("com.uber.nullaway:nullaway:0.9.1")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we also update the suggested version of net.ltgt.errorprone while we are at it? I noticed the latest version is 2.0.1, so maybe 0.6 is quite old now

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, lower down where it says "the annotationProcessor line loads NullAway", that should also be changed to "the first errorprone line" or something like that

Copy link
Author

@xenoterracide xenoterracide Apr 29, 2021

Choose a reason for hiding this comment

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

yeah, that version is ancient, honestly I didn't really notice, or worry about fixing that, but maybe that's why this was written this way. Maybe the better change would just be to point to the plugin's documentation as it actually covers all of this... let me know if you'd rather I do it that way.

@@ -73,7 +75,7 @@ Snapshots of the development version are available in [Sonatype's snapshots repo

The configuration for an Android project is very similar to the Java case, with one key difference: The `com.google.code.findbugs:jsr305:3.0.2` dependency can be removed; you can use the `android.support.annotation.Nullable` annotation from the Android Support library.

```gradle
```
Copy link
Collaborator

Choose a reason for hiding this comment

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

why this change?

Copy link
Author

Choose a reason for hiding this comment

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

you know, I don't actually know how this happened, I'm questioning whether githubs web editor removed it, as an unrecognized extension, really it should probably be groovy or kts

@msridhar
Copy link
Collaborator

msridhar commented Jun 3, 2021

Sorry for not circling back to this PR for a bit. Fixing it up requires a bit of thought and I haven't had time. I do plan to circle back when I have more cycles, hopefully in the next couple of weeks or so

@msridhar
Copy link
Collaborator

msridhar commented Oct 9, 2023

@xenoterracide I finally got around to fixing up the docs in #843. Sorry for the huge delay, and thanks again for the contribution here.

@msridhar msridhar closed this Oct 9, 2023
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.

Instructions for plain gradle incorrect
3 participants