mirror of
https://github.com/apple/pkl.git
synced 2026-05-26 00:29:14 +02:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 29c3e77e81 | |||
| e48256942c | |||
| 0a328fafed |
@@ -20,13 +20,33 @@ 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
|
||||||
[source,groovy,subs="+attributes"]
|
[source,groovy,subs="+attributes"]
|
||||||
----
|
----
|
||||||
dependencies {
|
dependencies {
|
||||||
compile "org.pkl-lang:pkl-config-kotlin:{pkl-artifact-version}"
|
implementation "org.pkl-lang:pkl-config-kotlin:{pkl-artifact-version}"
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@@ -38,25 +58,6 @@ ifndef::is-release-version[]
|
|||||||
endif::[]
|
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
|
=== Maven
|
||||||
|
|||||||
Reference in New Issue
Block a user