mirror of
https://github.com/apple/pkl.git
synced 2026-04-20 15:31:28 +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
@@ -32,6 +32,31 @@ The plugin is applied as follows:
|
||||
|
||||
[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::
|
||||
+
|
||||
.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]]
|
||||
|
||||
Reference in New Issue
Block a user