[Docs] Discrepancy in Gradle instruction between docs on Tribuo.org and GitHub README.md
See original GitHub issueDescribe the bug
The Gradle tab in https://tribuo.org/#gradle says:
implementation ("org.tribuo:tribuo-all:4.0.1@pom") {
transitive = true // for Groovy
// isTransitive = true // for Kotlin
}
while the README on GitHub says:
api 'org.tribuo:tribuo-all:4.0.0@pom'
The former works in Gradle 6.5, the latter does not work, and gives the below error:
* What went wrong:
A problem occurred evaluating root project 'tribuo-classification'.
> Could not find method api() for arguments [org.tribuo:tribuo-all:4.0.1@pom] on object of
type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Expected behaviour
Both docs to refer to the same information. Also would help if there was a bit more context to the Gradle docs, i.e.:
dependencies {
implementation ("org.tribuo:tribuo-all:4.0.1@pom")
....
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
gradle/README.md at master - docs - GitHub
The docs project produces the user manual, DSL reference, javadoc and release notes (as well as some other minor bits).
Read more >gradle-doc-plugin/README.md at master - GitHub
Overview. This plugin provides a facility for converting markdown and LaTeX into HTML, PDF, EPUB and Eclipse documentations output.
Read more >doc-builder/README.md at main - GitHub
The package used to build the documentation of our Hugging Face repos - doc-builder/README.md at main · huggingface/doc-builder.
Read more >docdir value inconsistent with gradle plugin #387 - GitHub
I got different docdir values. For docs/other/other.adoc. With maven: docfile: /<path to example>/docs/ ...
Read more >runningcode/gradle-doctor: The right prescription for ... - GitHub
The right prescription for your Gradle build. Contribute to runningcode/gradle-doctor development by creating an account on GitHub. ... README.md ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We should probably change it to:
I think that’s how the gradle daemon figures out what kind of file it is.
You’ve not uncommented the appropriate transitive flag, nor put it in the braces, so it only downloads the pom and thus fails to find the other bits. It should look like this:
We have it as a pom dependency as otherwise the pom file that gradle generates for downstream deployment into maven repositories says that the
tribuo-all
dependency is a jar and it breaks maven projects which consume the library built with gradle.