-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Gradle version from 4.1 to 4.4
In Gradle 4.4, it is a bug to resolve a configuration before the lint task is created ([see [] Therefore, to upgrade gradle version, we need to change the "generateJavadoc" task to remove using files() call during initialization phase, but change move this to doFirst() instead. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=190634090
- Loading branch information
1 parent
82b72c9
commit 13592df
Showing
3 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13592df
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.
tried this, not solving the issue
do we have have to make any modifications to javadoc_combined.gradle file also?
following is my javadoc_library.gradle
android.libraryVariants.all { variant ->
def name = variant.buildType.name
if (!name.equals("release")) {
return; // Skip non-release builds.
}
task("generateJavadoc", type: Javadoc) {
description = "Generates Javadoc for the ${javadocTitle}."
title = "ExoPlayer ${javadocTitle}"
source = variant.javaCompile.source
}
}
13592df
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.
Update :
I fixed this issue by adding the classpath in the doFirst{ } block in build.gradle of our exoplayer module
alongwith applying the above mentioned fix.
13592df
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.
I don't think we have a file called
exoplayer.gradle
anywhere in our codebase, so I suspect this is something specific to your app or some library you're using. Please let us know if that's not the case.13592df
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.
thanks for your reply, I will drop an update about your query after discussing with my team.
13592df
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.
I think there is still something wrong with
javadoc_combined.gradle
. If you know how to fix it that would be helpful ;).13592df
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.
Well I haven't changed the
javadoc_combined.gradle
it is working fine for me but what makes you think that there is something wrong withjavadoc_combined.gradle
, can you please elaborate so that I can help.13592df
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.
./gradlew clean generateCombinedJavadoc
is failing.13592df
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.
This may however just be due to increased strictness around failing on errors. Setting
failOnError false
in theoptions {}
block seems to generate Javadoc that looks correct. There are missing links to the Android SDK documentation, but it appears that's also the case with our previous release.13592df
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.
ok , I will drop an update if I find anything
13592df
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.
Hi ojw28,
Sorry for the extremely late reply, I completely forgot about this issue as I had some really tedious tasks lined up. I was going through the project today and remembered this.
I fixed this issue for my project by putting the
classpath
variable in thedoFirst {}
enclosure in thebuild.gradle
(for the exoplayer module) andjavadoc_combined.gradle
files as well as you did in thejavadoc_library.gradle
file in this commit above.Hope this will be helpful.
I am really sorry again for the late response. :)
Thanks.
13592df
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.
@jatinmishra Thanks for replying. Do you see any remaining issue in our code?
javadoc_combined.gradle
already usesdoFirst{}
by now (see here).13592df
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.
@tonihei yes I checked the latest code and found it was good.
Also, I haven't encountered any issue till now. Actually, today I was upgrading the gradle in our project from 4.1 to 5.1 and till now its working great.
I will surely let you know if I encounter anything.
Thanks.