cashapp / sqldelight

SQLDelight - Generates typesafe Kotlin APIs from SQL
https://cashapp.github.io/sqldelight/
Apache License 2.0
6.01k stars 501 forks source link

No plugin descriptor found at META-INF/maven/plugin.xml when running with Maven #5275

Open timis1 opened 1 month ago

timis1 commented 1 month ago

SQLDelight Version

1.5.0 or newer

Operating System

Windows

Gradle Version

I use maven

Kotlin Version

1.4.10

Dialect

SQLLite dialect

AGP Version

No response

Describe the Bug

Hello, I am trying to run a project that was previously configured to run with gradle and now to run with maven. When I tried to add the plugin dependency in the pom.xml I received this error: ...repository\com\squareup\sqldelight\runtime-jvm\1.5.0\runtime-jvm-1.5.0.jar): No plugin descriptor found at META-INF/maven/plugin.xml

pom.xml details: ` ...

com.squareup.sqldelight runtime-jvm 1.5.0 generate com.project.test src/main/sqldelight

.... ` Java version 1.8 or newer. Does this plugin works with maven? Could you please help me with this?

Thanks!

Stacktrace

No response

Gradle Build Script

No response

hfhbd commented 1 month ago

What do you want to do? There is no maven plugin to generate the Kotlin code from sq files, especially not in the runtime artifact. Sqldelight (currently) only supports Gradle.