mirror of
https://github.com/apple/pkl.git
synced 2026-04-24 09:18:35 +02:00
Swap Kotlin/Groovy tab order in documentation (#469)
* Swap Kotlin/Groovy tab order in documentation * Use Kotlin DSL repository extension function
This commit is contained in:
committed by
GitHub
parent
c959888f0b
commit
b5208a2b5b
@@ -36,6 +36,25 @@ To use the library in a Gradle project, declare the following dependency:
|
|||||||
|
|
||||||
[tabs]
|
[tabs]
|
||||||
====
|
====
|
||||||
|
Kotlin::
|
||||||
|
+
|
||||||
|
.build.gradle.kts
|
||||||
|
[source,kotlin,subs="+attributes"]
|
||||||
|
----
|
||||||
|
dependencies {
|
||||||
|
implementation("org.pkl-lang:pkl-codegen-java:{pkl-artifact-version}")
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
ifdef::is-release-version[]
|
||||||
|
mavenCentral()
|
||||||
|
endif::[]
|
||||||
|
ifndef::is-release-version[]
|
||||||
|
maven(url = "{uri-sonatype}")
|
||||||
|
endif::[]
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
Groovy::
|
Groovy::
|
||||||
+
|
+
|
||||||
.build.gradle
|
.build.gradle
|
||||||
@@ -54,25 +73,6 @@ ifndef::is-release-version[]
|
|||||||
endif::[]
|
endif::[]
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
Kotlin::
|
|
||||||
+
|
|
||||||
.build.gradle.kts
|
|
||||||
[source,kotlin,subs="+attributes"]
|
|
||||||
----
|
|
||||||
dependencies {
|
|
||||||
implementation("org.pkl-lang:pkl-codegen-java:{pkl-artifact-version}")
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
ifdef::is-release-version[]
|
|
||||||
mavenCentral()
|
|
||||||
endif::[]
|
|
||||||
ifndef::is-release-version[]
|
|
||||||
maven { url = uri("{uri-sonatype}") }
|
|
||||||
endif::[]
|
|
||||||
}
|
|
||||||
----
|
|
||||||
====
|
====
|
||||||
|
|
||||||
==== Maven
|
==== Maven
|
||||||
|
|||||||
@@ -31,6 +31,25 @@ To use the library in a Gradle project, declare the following dependency:
|
|||||||
|
|
||||||
[tabs]
|
[tabs]
|
||||||
====
|
====
|
||||||
|
Kotlin::
|
||||||
|
+
|
||||||
|
.build.gradle.kts
|
||||||
|
[source,kotlin,subs="+attributes"]
|
||||||
|
----
|
||||||
|
dependencies {
|
||||||
|
implementation("org.pkl-lang:pkl-config-java:{pkl-artifact-version}")
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
ifdef::is-release-version[]
|
||||||
|
mavenCentral()
|
||||||
|
endif::[]
|
||||||
|
ifndef::is-release-version[]
|
||||||
|
maven(url = "{uri-sonatype}")
|
||||||
|
endif::[]
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
Groovy::
|
Groovy::
|
||||||
+
|
+
|
||||||
.build.gradle
|
.build.gradle
|
||||||
@@ -51,25 +70,6 @@ repositories {
|
|||||||
}
|
}
|
||||||
endif::[]
|
endif::[]
|
||||||
----
|
----
|
||||||
|
|
||||||
Kotlin::
|
|
||||||
+
|
|
||||||
.build.gradle.kts
|
|
||||||
[source,kotlin,subs="+attributes"]
|
|
||||||
----
|
|
||||||
dependencies {
|
|
||||||
implementation("org.pkl-lang:pkl-config-java:{pkl-artifact-version}")
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
ifdef::is-release-version[]
|
|
||||||
mavenCentral()
|
|
||||||
endif::[]
|
|
||||||
ifndef::is-release-version[]
|
|
||||||
maven { url = uri("{uri-sonatype}") }
|
|
||||||
endif::[]
|
|
||||||
}
|
|
||||||
----
|
|
||||||
====
|
====
|
||||||
|
|
||||||
Unlike `pkl-config-java`, `pkl-config-java__-all__` is a fat Jar with renamed third-party packages to avoid version conflicts.
|
Unlike `pkl-config-java`, `pkl-config-java__-all__` is a fat Jar with renamed third-party packages to avoid version conflicts.
|
||||||
|
|||||||
@@ -27,6 +27,25 @@ To use the library in a Gradle project, declare the following dependency:
|
|||||||
|
|
||||||
[tabs]
|
[tabs]
|
||||||
====
|
====
|
||||||
|
Kotlin::
|
||||||
|
+
|
||||||
|
.build.gradle.kts
|
||||||
|
[source,kotlin,subs="+attributes"]
|
||||||
|
----
|
||||||
|
dependencies {
|
||||||
|
implementation("org.pkl-lang:pkl-codegen-kotlin:{pkl-artifact-version}")
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
ifdef::is-release-version[]
|
||||||
|
mavenCentral()
|
||||||
|
endif::[]
|
||||||
|
ifndef::is-release-version[]
|
||||||
|
maven(url = "{uri-sonatype}")
|
||||||
|
endif::[]
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
Groovy::
|
Groovy::
|
||||||
+
|
+
|
||||||
.build.gradle
|
.build.gradle
|
||||||
@@ -45,25 +64,6 @@ ifndef::is-release-version[]
|
|||||||
endif::[]
|
endif::[]
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
Kotlin::
|
|
||||||
+
|
|
||||||
.build.gradle.kts
|
|
||||||
[source,kotlin,subs="+attributes"]
|
|
||||||
----
|
|
||||||
dependencies {
|
|
||||||
implementation("org.pkl-lang:pkl-codegen-kotlin:{pkl-artifact-version}")
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
ifdef::is-release-version[]
|
|
||||||
mavenCentral()
|
|
||||||
endif::[]
|
|
||||||
ifndef::is-release-version[]
|
|
||||||
maven { url = uri("{uri-sonatype}") }
|
|
||||||
endif::[]
|
|
||||||
}
|
|
||||||
----
|
|
||||||
====
|
====
|
||||||
|
|
||||||
==== Maven
|
==== Maven
|
||||||
|
|||||||
@@ -20,6 +20,25 @@ To use the library in a Gradle project, declare the following dependency:
|
|||||||
|
|
||||||
[tabs]
|
[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-sonatype}")
|
||||||
|
endif::[]
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
Groovy::
|
Groovy::
|
||||||
+
|
+
|
||||||
.build.gradle
|
.build.gradle
|
||||||
@@ -38,25 +57,6 @@ ifndef::is-release-version[]
|
|||||||
endif::[]
|
endif::[]
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
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::[]
|
|
||||||
}
|
|
||||||
----
|
|
||||||
====
|
====
|
||||||
|
|
||||||
=== Maven
|
=== Maven
|
||||||
|
|||||||
@@ -30,6 +30,25 @@ To use the library in a Gradle project, declare the following dependency:
|
|||||||
|
|
||||||
[tabs]
|
[tabs]
|
||||||
====
|
====
|
||||||
|
Kotlin::
|
||||||
|
+
|
||||||
|
.build.gradle.kts
|
||||||
|
[source,kotlin,subs="+attributes"]
|
||||||
|
----
|
||||||
|
dependencies {
|
||||||
|
implementation("org.pkl-lang:pkl-core:{pkl-artifact-version}")
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
ifdef::is-release-version[]
|
||||||
|
mavenCentral()
|
||||||
|
endif::[]
|
||||||
|
ifndef::is-release-version[]
|
||||||
|
maven(url = "{uri-sonatype}")
|
||||||
|
endif::[]
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
Groovy::
|
Groovy::
|
||||||
+
|
+
|
||||||
.build.gradle
|
.build.gradle
|
||||||
@@ -48,25 +67,6 @@ ifndef::is-release-version[]
|
|||||||
endif::[]
|
endif::[]
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
Kotlin::
|
|
||||||
+
|
|
||||||
.build.gradle.kts
|
|
||||||
[source,kotlin,subs="+attributes"]
|
|
||||||
----
|
|
||||||
dependencies {
|
|
||||||
implementation("org.pkl-lang:pkl-core:{pkl-artifact-version}")
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
ifdef::is-release-version[]
|
|
||||||
mavenCentral()
|
|
||||||
endif::[]
|
|
||||||
ifndef::is-release-version[]
|
|
||||||
maven { url = uri("{uri-sonatype}") }
|
|
||||||
endif::[]
|
|
||||||
}
|
|
||||||
----
|
|
||||||
====
|
====
|
||||||
|
|
||||||
=== Maven
|
=== Maven
|
||||||
|
|||||||
@@ -86,6 +86,25 @@ To use the library in a Gradle project, declare the following dependency:
|
|||||||
|
|
||||||
[tabs]
|
[tabs]
|
||||||
====
|
====
|
||||||
|
Kotlin::
|
||||||
|
+
|
||||||
|
.build.gradle.kts
|
||||||
|
[source,kotlin,subs="+attributes"]
|
||||||
|
----
|
||||||
|
dependencies {
|
||||||
|
implementation("org.pkl-lang:pkl-doc:{pkl-artifact-version}")
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
ifdef::is-release-version[]
|
||||||
|
mavenCentral()
|
||||||
|
endif::[]
|
||||||
|
ifndef::is-release-version[]
|
||||||
|
maven(url = "{uri-sonatype}")
|
||||||
|
endif::[]
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
Groovy::
|
Groovy::
|
||||||
+
|
+
|
||||||
.build.gradle
|
.build.gradle
|
||||||
@@ -104,25 +123,6 @@ ifndef::is-release-version[]
|
|||||||
endif::[]
|
endif::[]
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
Kotlin::
|
|
||||||
+
|
|
||||||
.build.gradle.kts
|
|
||||||
[source,kotlin,subs="+attributes"]
|
|
||||||
----
|
|
||||||
dependencies {
|
|
||||||
implementation("org.pkl-lang:pkl-doc:{pkl-artifact-version}")
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
ifdef::is-release-version[]
|
|
||||||
mavenCentral()
|
|
||||||
endif::[]
|
|
||||||
ifndef::is-release-version[]
|
|
||||||
maven { url = uri("{uri-sonatype}") }
|
|
||||||
endif::[]
|
|
||||||
}
|
|
||||||
----
|
|
||||||
====
|
====
|
||||||
|
|
||||||
==== Maven
|
==== Maven
|
||||||
|
|||||||
@@ -32,6 +32,31 @@ The plugin is applied as follows:
|
|||||||
|
|
||||||
[tabs]
|
[tabs]
|
||||||
====
|
====
|
||||||
|
Kotlin::
|
||||||
|
+
|
||||||
|
.build.gradle.kts
|
||||||
|
[source,kotlin,subs="+attributes"]
|
||||||
|
----
|
||||||
|
plugins {
|
||||||
|
id("org.pkl-lang") version "{pkl-artifact-version}"
|
||||||
|
}
|
||||||
|
----
|
||||||
|
+
|
||||||
|
.settings.gradle.kts
|
||||||
|
[source,kotlin,subs="+attributes"]
|
||||||
|
----
|
||||||
|
pluginManagement {
|
||||||
|
repositories {
|
||||||
|
ifdef::is-release-version[]
|
||||||
|
mavenCentral()
|
||||||
|
endif::[]
|
||||||
|
ifndef::is-release-version[]
|
||||||
|
maven(url = "{uri-sonatype}")
|
||||||
|
endif::[]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
Groovy::
|
Groovy::
|
||||||
+
|
+
|
||||||
.build.gradle
|
.build.gradle
|
||||||
@@ -56,31 +81,6 @@ endif::[]
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
Kotlin::
|
|
||||||
+
|
|
||||||
.build.gradle.kts
|
|
||||||
[source,kotlin,subs="+attributes"]
|
|
||||||
----
|
|
||||||
plugins {
|
|
||||||
id("org.pkl-lang") version "{pkl-artifact-version}"
|
|
||||||
}
|
|
||||||
----
|
|
||||||
+
|
|
||||||
.settings.gradle.kts
|
|
||||||
[source,kotlin,subs="+attributes"]
|
|
||||||
----
|
|
||||||
pluginManagement {
|
|
||||||
repositories {
|
|
||||||
ifdef::is-release-version[]
|
|
||||||
mavenCentral()
|
|
||||||
endif::[]
|
|
||||||
ifndef::is-release-version[]
|
|
||||||
maven { url = uri("{uri-sonatype}") }
|
|
||||||
endif::[]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
----
|
|
||||||
====
|
====
|
||||||
|
|
||||||
[[module-evaluation]]
|
[[module-evaluation]]
|
||||||
|
|||||||
Reference in New Issue
Block a user