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

Add provided dependencies to classpath of androidJavadocs #43

Open
jfresen opened this issue Jan 5, 2015 · 4 comments
Open

Add provided dependencies to classpath of androidJavadocs #43

jfresen opened this issue Jan 5, 2015 · 4 comments

Comments

@jfresen
Copy link

jfresen commented Jan 5, 2015

I'm using provided dependencies in my library project, which works fine but for one issue. When the uploadArchives task executes the androidJavadocs task, it gives compiler errors (interpreted by androidJavadocs as warnings) for all references to the provided dependencies. Is there a way in which I can add the provided dependencies to the classpath of androidJavadocs?

@mathieudebrito
Copy link

+1

@koral--
Copy link

koral-- commented Mar 20, 2015

I encountered the same problem.

It looks that path needs to be appended here: https://github.com/chrisbanes/gradle-mvn-push/blob/master/gradle-mvn-push.gradle#L97

If you are using
apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'
that snippet should do the trick:

afterEvaluate { project ->
    android.libraryVariants.all { variant ->
        tasks.androidJavadocs.doFirst {
            classpath += files(variant.javaCompile.classpath.files)
        }
    }
}

@MerlinYu
Copy link

MerlinYu commented Sep 8, 2016

@jfresen I meet the error :Could not get unknown property 'android' for task ':androidJavadocs' Did you solve your problem?

@drakeet
Copy link

drakeet commented Dec 21, 2016

I have fixed it in my library using: drakeet/MultiType@ef940c0

Maybe I could create a PR for the project? @chrisbanes

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

5 participants