Comments (19)
I'm not an expert in the gradle api, but I fixed this in my personal .gradle
files like this:
task javadoc(type: Javadoc) {
excludes = ['**/*.kt'] // < ---- Exclude all kotlin files from javadoc file.
// ...
}
from bintray-release.
I don't think this is the best way but it works for me. Add
tasks.withType(Javadoc).all {
enabled = false
}
to your build.gradle.
Hope it helps.
from bintray-release.
you can try add the followed code to ignore checking javadoc's error(add these code into build.gradle file):
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
}
}
hope it helps you.
from bintray-release.
... -x mavenAndroidJavadocs
... helps me
you can read more about skipping tasks here http://www.practicalgradle.org/blog/2010/10/skipping-tasks/
from bintray-release.
It did not help, same error. Any ideas?
from bintray-release.
I face the same problem, How can I skip the javadoc task for kotlin sources
from bintray-release.
This is a problem in the Javadoc generation itself and not in this plugin, many suggestions in this thread work, for me adding this to the library build.gradle
file worked well
tasks.withType(Javadoc) {
options.addBooleanOption('Xdoclint:none', true)
}
from: http://stackoverflow.com/questions/34874175/disable-all-javadoc-in-gradle
Thanks all for your input.
from bintray-release.
thank you very much
from bintray-release.
@ebnbin It worked for me!
from bintray-release.
@ebnbin your solution worked! Thank you!!!
@BennyWang, @asarazan, @xrigau I tried inserting your code in my project level build.gradle, but unfortunately having the same issue.
@busylee999 Unfortunately your link from December 25, 2015 above no longer works. http://www.practicalgradle.org/blog/2010/10/skipping-tasks/.
from bintray-release.
It seems this issue has become a place to discuss problems with Kotlin and androidJavadocs
... 😹
@hendraanggrian Yes, dokka can fix the problem if you disable androidJavadocs
and let dokka create docs for all languages in you project (e.g. Java and Kotlin). It can also create Javadoc, if you want you documentation to look just like if you just have Java.
However, in my particular project I have problems with the generation of Javadocs, but nothing breaking; it just takes a long time to generate the docs compared to androidJavadocs
: 3 minutes vs. 10 seconds.
So, can it replace androidJavadocs
: yes. Does it replace it with flair and grace: no.
from bintray-release.
Have you tried to exclude explicit tasks?
from bintray-release.
@ebnbin worked!! Ty
from bintray-release.
I'm just wondering here, is dokka in any way supposed to fix this issue?
from bintray-release.
After doing @ebnbin solution, i clean & rebuild my project and it worked. Thank you!!
from bintray-release.
@asarazan
Its giving me this Cannot add task ':<...>:javadoc' as a task with that name already exists.
from bintray-release.
The thing is that dokka generated javadoc/kdoc can't be displayed in IntelliJ somehow.
I don't know why but the issue is described here.
Meaning if you don't publish your sources and generate the javadoc via dokka, the consumer of your lib will not be see the javadoc in IntelliJ.
from bintray-release.
I have tried all solutions what explained above comments.
But I am getting error like below:
...
> Task :library-kt-beta:javadoc FAILED
javadoc: error - Illegal package name: "....\xxxManager.kt"
javadoc: error - Illegal package name: "....\xxxActivity.kt"
javadoc: error - Illegal package name: "....\xxxFragment.kt"
javadoc: error - Illegal package name: "....\xxxObject.kt"
...
7 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':library-kt-beta:javadoc'.
> Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): '....\library-kt-beta\build\tmp\javadoc\javadoc.options'
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 5s
37 actionable tasks: 33 executed, 4 up-to-date
from bintray-release.
@ebnbin worked! Thanks!
from bintray-release.
Related Issues (20)
- Do you consider adding like 'archivesPath ' feature,to add progurad jar HOT 1
- I push my kotlin module to bintray and find it is empty when I test it. HOT 3
- Android databinding support..?
- The attempt to release the Android library ends up being successful even if bintray user/key are wrong HOT 2
- Do you consider adding like 'archivesPath ' feature,to add progurad jar/aar
- error for: 'com.android.tools.build:gradle:4.0.0' HOT 2
- Cause: org/gradle/api/internal/java/usagecontext/LazyConfigurationUsageContext HOT 11
- Q: how can i configure to enable only particular publications to maven local? HOT 6
- POM project file is not valid HOT 3
- Execution failed for task ':Csj:mockableAndroidJar'. > java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.builder.utils.FileCache$FileCreatorException: java.lang.IllegalArgumentException
- publishReleasePublicationToMavenLocal ---- Failed HOT 1
- When to support gradle6.1.1 HOT 1
- Is this library abandoned? HOT 1
- When an Android Module is published, it references exceptions
- The new plugin bintray-publish supports Gradle 6.0+ and Android Gradle Plugin 4.0+ HOT 3
- When targetSdkVersion>=29 under app, click the selected photos and the application crashes with the error message as follows:
- When can update gradle support 6.0+ HOT 9
- unable to upload due to 401 unauthorized error HOT 1
- Task 'releaseAndroidJavadocs' not found in root project HOT 1
- Can it support to config and publish to GitHub packages? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bintray-release.