Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Gradle sync to complete without configuring OpenAPI-kt #88

Open
martinbonnin opened this issue Sep 29, 2024 · 0 comments
Open

Allow Gradle sync to complete without configuring OpenAPI-kt #88

martinbonnin opened this issue Sep 29, 2024 · 0 comments

Comments

@martinbonnin
Copy link

Because of Gradle borked way of handling classpaths, a Gradle sync is necessary in order to have autocomplete in build.gradle.kts files.

A simple project like so:

plugins {
  id("org.jetbrains.kotlin.jvm")
  id("io.github.nomisrev.openapi-kt-plugin")
}

// No openApiConfig here

fails Gradle sync with:

Caused by: java.lang.IllegalArgumentException: No OpenAPI Config found
	at io.github.nomisrev.openapi.plugin.GenerateClientTask.sampleAction(GenerateClientTask.kt:34)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)

It'd be nice if the Gradle sync could go through so that we could type the config using IDE support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant