Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Feature Request: put plugin dependencies on their own dependency configuration #168

Open
tnielens opened this issue Apr 15, 2020 · 1 comment

Comments

@tnielens
Copy link

tnielens commented Apr 15, 2020

I have a build with multiple plugins pulling in swagger dependencies on the builscript classpath dep configuration. They clash. It'd be nice if this plugin isolated its deps and tasks execution from the build classpath.

Here is an example of task failure I get when I run ./gradlew generateSwaggerDocumentation --stacktrace in such a project setup.

Caused by: java.util.ServiceConfigurationError: io.swagger.converter.ModelConverter: Provider io.swagger.scala.converter.SwaggerScalaModelConverter could not be instantiated
        at io.swagger.converter.ModelConverters.<clinit>(ModelConverters.java:129)
        at com.benjaminsproule.swagger.gradleplugin.misc.EnvironmentConfigurer.configureModelModifiers(EnvironmentConfigurer.groovy:102)
        at com.benjaminsproule.swagger.gradleplugin.misc.EnvironmentConfigurer$configureModelModifiers.call(Unknown Source)
        at com.benjaminsproule.swagger.gradleplugin.GenerateSwaggerDocsTask.generateSwaggerDocuments(GenerateSwaggerDocsTask.groovy:55)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104)

As an example, plugin https://github.com/int128/gradle-swagger-generator-plugin uses configuration swaggerCodegen.

@gigaSproule
Copy link
Owner

This is a long time want of mine, but finding any time to do this is hard for me. If you feel inclined to correct this, I'd very much appreciate the PR.

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

No branches or pull requests

2 participants