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

Docs use wrong Maven repo and wrong Gradle syntax #10

Open
translatenix opened this issue Feb 9, 2024 · 0 comments
Open

Docs use wrong Maven repo and wrong Gradle syntax #10

translatenix opened this issue Feb 9, 2024 · 0 comments

Comments

@translatenix
Copy link
Contributor

Example: https://pkl-lang.org/main/current/pkl-core/index.html#gradle

Is:

dependencies {
  compile "org.pkl-lang:pkl-core:0.25.2"
}

repositories {
  maven { url "https://s01.oss.sonatype.org/content/groups/public" }
}

Should be:

dependencies {
  implementation "org.pkl-lang:pkl-core:0.25.2"
}

repositories {
  mavenCentral()
}

compile was replaced with implementation long ago and might no longer work at this point.

Gradle snippets should use mavenCentral(). Maven snippets don't need a repo because Maven Central is the default.

PS: I tried to come up with a permalink for https://pkl-lang.org/main/current/pkl-core/index.html, but replacing current with 0.25.2 didn't work.

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

No branches or pull requests

1 participant