question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Docs] Discrepancy in Gradle instruction between docs on Tribuo.org and GitHub README.md

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
Craigacpcommented, Oct 19, 2020

We should probably change it to:

// for build.gradle
// for build.gradle.kts

I think that’s how the gradle daemon figures out what kind of file it is.

1reaction
Craigacpcommented, Oct 19, 2020

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:

implementation ("org.tribuo:tribuo-all:4.0.1@pom") {
    transitive = true
}

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found