openapi-processor / openapi-processor-gradle

openapi-processor gradle plugin
https://docs.openapiprocessor.io
Apache License 2.0
3 stars 1 forks source link

Repository in gradle plugin #24

Open troymal opened 2 years ago

troymal commented 2 years ago

Hi,

the gradle plugin set the reposiroy in project. We usually make multi module applications with specialized repository handling, so we can't use this great stuff in production environment, because there repository handling have to applied from parent.

Is there possible to remove repository injection from plugin code?

hauner commented 2 years ago

There is no way to disable that at the moment.

I published a new plugin version today that requires gradle 7 and I tested it without setting the repositories. Interestingly it does seem to work without the explicit mavenCentral. I'm sure this didn't work in an earlier plugin version.

To automatically find snapshot versions I still like to have the other repository. Moving it to build.gradle works but I would like to avoid that noise in the build.grade.

I guess I will remove mavenCentral and add a switch to enable/disable the snapshot repository that is enabled by default. That way you can disable it.