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

Typo in docs: version should be versionRef. #20852

Closed
digulla opened this issue May 25, 2022 · 1 comment · Fixed by #20861
Closed

Typo in docs: version should be versionRef. #20852

digulla opened this issue May 25, 2022 · 1 comment · Fixed by #20861
Assignees
Labels
Milestone

Comments

@digulla
Copy link

digulla commented May 25, 2022

Typo in documentation https://docs.gradle.org/current/userguide/platforms.html#sec:multiple

library("junit-api", "org.junit.jupiter", "junit-jupiter-api").version(junit5)

should be

library("junit-api", "org.junit.jupiter", "junit-jupiter-api").versionRef(junit5)

This is a very confusing error since the build will fail because of a missing dependency (it will try to load "org.junit.jupiter:junit-jupiter-api:junit", i.e. the alias instead of the version number).

@h0tk3y h0tk3y added in:documentation DO NOT USE and removed to-triage labels May 26, 2022
@h0tk3y h0tk3y self-assigned this May 26, 2022
@bot-gradle bot-gradle added this to the 7.6 RC1 milestone May 26, 2022
@digulla
Copy link
Author

digulla commented May 27, 2022

Thanks, @gabrielfeo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants