You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,13 @@
2
2
3
3
**NOTE:** If you're looking for Swagger Core 1.5.X and OpenAPI 2.0, please refer to [1.5 branch](https://github.com/swagger-api/swagger-core/tree/1.5).
4
4
5
+
**NOTE:** Since version 2.1.7 Swagger Core supports also Jakarta namespace, with a parallel set of artifacts with `-jakarta` suffix, providing the same functionality as the "standard" `javax` namespace ones.
6
+
Please check [Wiki](https://github.com/swagger-api/swagger-core/wiki/Swagger-2.X---Getting-started) for more details
7
+
5
8

Swagger Core is a Java implementation of the OpenAPI Specification. Current version supports *JAX-RS2*.
11
+
Swagger Core is a Java implementation of the OpenAPI Specification. Current version supports *JAX-RS2* (`javax` and `jakarta` namespaces).
9
12
10
13
## Get started with Swagger Core!
11
14
See the guide on [getting started with Swagger Core](https://github.com/swagger-api/swagger-core/wiki/Swagger-2.X---Getting-started) to get started with adding Swagger to your API.
Copy file name to clipboardExpand all lines: modules/swagger-gradle-plugin/README.md
+19
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,26 @@
2
2
3
3
**`swagger-gradle-plugin` supports gradle 3.2 and higher.**
4
4
5
+
## Jakarta namespace support
6
+
7
+
Since version 2.1.7 Swagger Core supports also Jakarta namespace, with a parallel set of artifacts with `-jakarta` suffix, providing the same functionality as the "standard" `javax` namespace ones.
8
+
Please check [Wiki](https://github.com/swagger-api/swagger-core/wiki/Swagger-2.X---Getting-started) for more details
9
+
10
+
To have gradle plugin use the `jakarta` namespace artifacts, you need to provide a value to parameter `buildClasspath`
11
+
In many cases it is sufficient to set it to the `classpath` value, like:
12
+
13
+
`buildClasspath = classpath`
14
+
15
+
Alternatively provide as value a classpath with the following dependencies (replacing the provided [`javax` ones](https://github.com/swagger-api/swagger-core/blob/master/modules/swagger-gradle-plugin/src/main/java/io/swagger/v3/plugins/gradle/SwaggerPlugin.java#L16-L25)):
Copy file name to clipboardExpand all lines: modules/swagger-maven-plugin/README.md
+94-4
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,16 @@
4
4
All parameters except `outputFileName`, `outputFormat`, `skip`, `encoding` and `outputPath` correspond
5
5
to `swagger`[configuration property](https://github.com/swagger-api/swagger-core/wiki/Swagger-2.X---Integration-and-Configuration#configuration-properties) with same name.
6
6
7
+
## Jakarta namespace support
8
+
9
+
Since version 2.1.7 Swagger Core supports also Jakarta namespace, with a parallel set of artifacts with `-jakarta` suffix, providing the same functionality as the "standard" `javax` namespace ones.
10
+
Please check [Wiki](https://github.com/swagger-api/swagger-core/wiki/Swagger-2.X---Getting-started) for more details
11
+
12
+
Both `javax` and `jakarta` examples are provided below
13
+
7
14
## Configuration example
8
15
16
+
### `javax` namespace
9
17
10
18
```xml
11
19
<project>
@@ -14,7 +22,7 @@ to `swagger` [configuration property](https://github.com/swagger-api/swagger-cor
0 commit comments