question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Kotlin Gradle DSL

See original GitHub issue

This: fun methodMissing(name: String, args: Any): Any is not practical to use with Kotlin Gradle DSL. This is also not typesafe.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
LouisCADcommented, Mar 12, 2019

For anyone wanting to use the SqlDelight Gradle plugin from Gradle Kotlin DSL until this issue is solved, here’s a small example that should work:

sqldelight {
    methodMissing("MyDatabase", arrayOf(closureOf<SqlDelightDatabase> {
        packageName = "com.example.db"
        sourceFolders = listOf("db")
        schemaOutputDirectory = file("build/dbs")
        dependency project(":OtherProject")
    }))
}
2reactions
nwillccommented, May 19, 2019

Does anyone have a build.gradle.kts example? I can’t get the sqldelight stanza to even be accepted although the plugin appears to have been loaded.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gradle Kotlin DSL Primer
Gradle's Kotlin DSL provides an alternative syntax to the traditional Groovy DSL with an enhanced editing experience in supported IDEs, with superior ...
Read more >
Kotlin DSL for Gradle - Baeldung
Learn how to write Gradle scripts in Kotlin. ... To activate the Kotlin DSL and get the best IDE support, we need to...
Read more >
Multiplatform Gradle DSL reference - Kotlin
The Kotlin Multiplatform Gradle plugin is a tool for creating Kotlin Multiplatform projects. Here we provide a reference of its contents; use it ......
Read more >
Kotlin DSL: Gradle scripts in Android made easy - Medium
If you are scared of Gradle scripts with unfamiliar groovy syntax files, then Kotlin DSL is made for you. Its time to face...
Read more >
The New Way of Writing Build Gradle with Kotlin DSL
Using the same language throughout your whole project can further streamline and speed up your development process. With the stable release announcement of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found