3 Commits

Author SHA1 Message Date
Fruxz
29c3e77e81 change compile to implementation on groovy side 2024-04-23 11:56:39 +02:00
Fruxz
e48256942c Update docs/modules/kotlin-binding/pages/pkl-config-kotlin.adoc
Co-authored-by: Stefan M. <StefMa@users.noreply.github.com>
2024-04-23 11:56:39 +02:00
Fruxz
0a328fafed 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
2024-04-23 11:56:39 +02:00

View File

@@ -20,13 +20,33 @@ 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-sonatype}")
endif::[]
}
----
Groovy::
+
.build.gradle
[source,groovy,subs="+attributes"]
----
dependencies {
compile "org.pkl-lang:pkl-config-kotlin:{pkl-artifact-version}"
implementation "org.pkl-lang:pkl-config-kotlin:{pkl-artifact-version}"
}
repositories {
@@ -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