aboutsummaryrefslogtreecommitdiff
path: root/build-logic/src/main/kotlin/org/jetbrains/internal
diff options
context:
space:
mode:
Diffstat (limited to 'build-logic/src/main/kotlin/org/jetbrains/internal')
-rw-r--r--build-logic/src/main/kotlin/org/jetbrains/internal/gradleKotlinDslAccessors.kt10
1 files changed, 10 insertions, 0 deletions
diff --git a/build-logic/src/main/kotlin/org/jetbrains/internal/gradleKotlinDslAccessors.kt b/build-logic/src/main/kotlin/org/jetbrains/internal/gradleKotlinDslAccessors.kt
index 78bbc568..cb8d0df8 100644
--- a/build-logic/src/main/kotlin/org/jetbrains/internal/gradleKotlinDslAccessors.kt
+++ b/build-logic/src/main/kotlin/org/jetbrains/internal/gradleKotlinDslAccessors.kt
@@ -3,6 +3,7 @@
package org.gradle.kotlin.dsl // for convenience use a default package for gradle.kts scripts
import org.gradle.api.Project
+import org.gradle.accessors.dm.LibrariesForLibs
import org.jetbrains.DokkaBuildProperties
/*
@@ -14,6 +15,15 @@ import org.jetbrains.DokkaBuildProperties
* `internal`
*/
+
+/**
+ * workaround for accessing version-catalog in convention plugins
+ *
+ * See https://github.com/gradle/gradle/issues/15383#issuecomment-779893192
+ */
+internal val Project.libs : LibrariesForLibs
+ get() = extensions.getByType()
+
/**
* Retrieves the [dokkaBuild][org.jetbrains.DokkaBuildProperties] extension.
*/