From 0a328fafed3324d1dff026d44be62196ba58a46e Mon Sep 17 00:00:00 2001 From: Fruxz <28064149+TheFruxz@users.noreply.github.com> Date: Mon, 8 Apr 2024 23:28:56 +0200 Subject: [PATCH] Fix gradle dependency declare issue compile(...) is not supported in Gradle Kotlin DSL by default. Changed it to implementation(...). Also moved Kotlin to the first tab in Gradle, because it is now the default Gradle Language --- .../pages/pkl-config-kotlin.adoc | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/docs/modules/kotlin-binding/pages/pkl-config-kotlin.adoc b/docs/modules/kotlin-binding/pages/pkl-config-kotlin.adoc index 77a32df8..84ee5b5d 100644 --- a/docs/modules/kotlin-binding/pages/pkl-config-kotlin.adoc +++ b/docs/modules/kotlin-binding/pages/pkl-config-kotlin.adoc @@ -20,6 +20,26 @@ To use the library in a Gradle project, declare the following dependency: [tabs] ==== +Kotlin:: ++ +.build.gradle.kts +[source,kotlin,subs="+attributes"] +---- +dependencies { + implementation("org.pkl-lang:pkl-config-kotlin:{pkl-artifact-version}") +} + +repositories { +ifdef::is-release-version[] + mavenCentral() +endif::[] +ifndef::is-release-version[] + maven { url = uri("{uri-sonatype}") } +endif::[] +} +---- + + Groovy:: + .build.gradle @@ -38,25 +58,6 @@ ifndef::is-release-version[] endif::[] } ---- - -Kotlin:: -+ -.build.gradle.kts -[source,kotlin,subs="+attributes"] ----- -dependencies { - compile("org.pkl-lang:pkl-config-kotlin:{pkl-artifact-version}") -} - -repositories { -ifdef::is-release-version[] - mavenCentral() -endif::[] -ifndef::is-release-version[] - maven { url = uri("{uri-sonatype}") } -endif::[] -} ----- ==== === Maven