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

[Kotlindoc] Missing "dokkaRuntime" configuration #139

Closed
tlinkowski opened this issue Jun 30, 2019 · 5 comments
Closed

[Kotlindoc] Missing "dokkaRuntime" configuration #139

tlinkowski opened this issue Jun 30, 2019 · 5 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@tlinkowski
Copy link
Contributor

tlinkowski commented Jun 30, 2019

When I apply the kotlindoc plugin, I get the following error: https://travis-ci.com/tlinkowski/tlinkowski-superpom/builds/117405671

Apparently, simply creating an empty dokkaRuntime configuration solves the problem: https://travis-ci.com/tlinkowski/tlinkowski-superpom/builds/117406767

tlinkowski added a commit to tlinkowski/tlinkowski-superpom that referenced this issue Jun 30, 2019
@aalmiray
Copy link
Collaborator

Could you re-run with -s to get a full stacktrace? I'm not sure the problem is on the Kordamp plugin side as there are no explicit mentions of dokkaRuntime in its codebase. It might be related to the version of Kotlin/Dokka.

@tlinkowski
Copy link
Contributor Author

There you go:

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':kotlindocHtml'.
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:151)
	[... => more Gradle stuff]
Caused by: org.gradle.api.artifacts.UnknownConfigurationException: Configuration with name 'dokkaRuntime' not found.
	at org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer.createNotFoundException(DefaultConfigurationContainer.java:150)
	at org.gradle.api.internal.DefaultNamedDomainObjectCollection.getByName(DefaultNamedDomainObjectCollection.java:323)
	at org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer.getByName(DefaultConfigurationContainer.java:140)
	at org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer.getByName(DefaultConfigurationContainer.java:58)
	at org.jetbrains.dokka.gradle.DokkaTask.generate(main.kt:301)
	[... => Java reflection stuff]
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:103)
	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:48)
	[... => more Gradle stuff]

Let me know in case you needed me to debug the build to provide you with more details.

@aalmiray
Copy link
Collaborator

There's no mention of org.kordamp on that stacktrace, is it? Have you tried using a different version of Dokka?

@tlinkowski
Copy link
Contributor Author

There's no mention of org.kordamp on that stacktrace, is it?

No, there isn't.

Have you tried using a different version of Dokka?

I haven't. But I don't even have an explicit dependency on Dokka. I just relied on your Kotlindoc plugin, and its documentation says:

This plugin relies on the org.jetbrains.dokka plugin but does not apply it.

If it's easy to switch the version of Dokka and you'd like me to investigate this, please give me a hint on how I do it (I already found a workaround so I wouldn't like to spend too much time digging into it).

@aalmiray
Copy link
Collaborator

The kotlindoc plugins does not apply the dokka plugin as the latter may add configuration that's not suitable for a project.

You can update the dokka version by adding another classpath entry in the buldscript block.

@aalmiray aalmiray self-assigned this Mar 16, 2020
@aalmiray aalmiray added the bug Something isn't working label Mar 16, 2020
@aalmiray aalmiray added this to the 0.33.0 milestone Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants