Skip to content

Docs use wrong Maven repo and wrong Gradle syntax #10

@odenix

Description

@odenix

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions