From fc316484d05b8c6c8bb1589d4b2e9995a8539024 Mon Sep 17 00:00:00 2001 From: Saket Narayan Date: Tue, 11 May 2021 00:59:04 -0400 Subject: [PATCH] Add configuration instructions in groovy to readme Thought this would be helpful for people who're still groovy, like me. The name of the extension can only be found by digging inside the sources. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 6bbe8381d3b..c69bbae4204 100644 --- a/README.md +++ b/README.md @@ -106,11 +106,19 @@ The Gradle plugin allows configuring the functions which should be transformed with a list of fully-qualified function names. ```kotlin +// Kotlin DSL configure { functions = listOf("kotlin.assert", "kotlin.test.assertTrue") } ``` +```groovy +// Groovy +kotlinPowerAssert { + functions = ["kotlin.assert", "kotlin.test.assertTrue"] +} +``` + ## Kotlin IR Using this compiler plugin only works if the code is compiled using Kotlin