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:
Fruxz
2024-04-08 23:28:56 +02:00
committed by Philip K.F. Hölzenspies
parent 91820100f7
commit 0a328fafed

View File

@@ -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