Skip to content

Commit bd67636

Browse files
authored
build: stop publishing swagger-generator to Maven Central (#12783)
The swagger-generator WAR (~27 MB per release, plus pom, sources and javadoc) is only consumed by the swagger-generator Docker images, which are built from modules/swagger-generator/target/. It is not usable as a library dependency and has no known consumers on Central. The module is still built, so Docker image builds are unaffected.
1 parent ae8a347 commit bd67636

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎docs/online-generators.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
The web service is deployed at https://generator3.swagger.io/ui, or it can be easily deployed as docker container.
66

7+
> Starting with 3.0.86, the `swagger-generator` WAR is no longer published to Maven Central. Use the `swaggerapi/swagger-generator-v3` docker image, or build the WAR from source with `mvn package` (output in `modules/swagger-generator/target/`).
8+
79
The OpenAPI specification of generator service APIs are available either via UI exposed by web service (e.g. https://generator3.swagger.io/ui), as exposed YAML (https://generator3.swagger.io/openapi.json)
810
or in source code repo (https://github.com/swagger-api/swagger-codegen/blob/3.0.0/modules/swagger-generator/src/main/resources/openapi.yaml).
911

‎pom.xml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@
198198
<autoPublish>true</autoPublish>
199199
<waitUntil>published</waitUntil>
200200
<waitMaxTime>3600</waitMaxTime>
201+
<excludeArtifacts>
202+
<!-- The WAR is only consumed by the swagger-generator Docker images, which are built from target/ -->
203+
<excludeArtifact>swagger-generator</excludeArtifact>
204+
</excludeArtifacts>
201205
</configuration>
202206
</plugin>
203207
</plugins>

0 commit comments

Comments
 (0)