-
Notifications
You must be signed in to change notification settings - Fork 339
/
build.gradle.kts
22 lines (19 loc) · 972 Bytes
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
plugins {
// Support convention plugins written in Kotlin. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build.
`kotlin-dsl`
}
repositories {
// Use the plugin portal to apply community plugins in convention plugins.
gradlePluginPortal()
}
dependencies {
// add plugin artifacts so we can reference them in plugins block in the precompiled script
// in the future maybe we could update below to <plugin id>:<plugin id>.gradle.plugin:<plugin version> coordinates
implementation(libs.kotlin.gradle.plugin)
implementation(libs.detekt.plugin)
implementation(libs.dokka.plugin)
implementation(libs.ktlint.plugin)
// this is a workaround to enable version catalog usage in the convention plugin
// see https://github.com/gradle/gradle/issues/15383#issuecomment-779893192
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))
}