mirror of
https://github.com/apple/pkl.git
synced 2026-03-20 08:14:15 +01:00
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
This commit is contained in:
committed by
Philip K.F. Hölzenspies
parent
91820100f7
commit
0a328fafed
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user