-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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 all Gradle build warnings #1170
base: master
Are you sure you want to change the base?
Conversation
Rebased onto latest |
How about this? |
@@ -74,7 +76,7 @@ subprojects { project -> | |||
google() | |||
} | |||
|
|||
if (!project.name.equals('butterknife-gradle-plugin')) { | |||
if (project.name != 'butterknife-gradle-plugin') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -93,4 +95,26 @@ subprojects { project -> | |||
} | |||
} | |||
} | |||
|
|||
project.tasks.withType(JavaCompile) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -6,7 +6,7 @@ buildscript { | |||
} | |||
|
|||
dependencies { | |||
classpath "com.jakewharton:butterknife-gradle-plugin:${versions.release}" | |||
classpath deps.release.gradlePlugin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
} | ||
options { | ||
jFlags '-Xmx128M' | ||
addStringOption 'Xmaxwarns', '1000' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Feels like I should rebase again :) |
Initially re #1026 (comment), but then I fixed some (almost all) Gradle build warnings (full unabridged output sans ProGuard; daren't put the before log in the PR text, so attached 😉):
(both of the remaning warnings are because of Gradle plugin 3.0.1 + Gradle 4.4.1 combination, will disappear once 3.1.0 is used or downgrade to Gradle 4.2.1)
More details:
:butterknife:androidJavadocs
:(327 related to support-annotations, 2 to appcompat, and 2 to butterknife-annotations)
dependsOn javaPreCompileRelease
which jars dependent subprojects.DebouncingOnClickListener
: FQCN to get rid of 3 additional JavaDoc warningsXdoclint:none
can be removed nowButterKnifePlugin.kt
: warn at compile time:resolutionStrategy.force deps.kotlin.reflect
to fix:-Xlint:-options
hides-Xlint:all
+Werror
for strict compilation:ContextCompat.getBlah
or not, the generated code definitely uses those methods.SimpleActivityTest
also just suppressed, because it feels like new runner + Espresso is a bit overkill there