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
This project supersedes [restdocs-raml](https://github.com/ePages-de/restdocs-raml).
575
-
Soif you are coming from `restdocs-raml` you might want to switch to `restdocs-api-spec`.
574
+
This section of the README is targeted at project maintainers.
576
575
577
-
TheAPI of both projects is fairly similar and it is easy to migrate.
576
+
### Publish project
578
577
579
-
We plan to support RAML in the future.
580
-
In the meantime you can use one of several ways to convert an OpenAPI specification to RAML.
581
-
There are converters around that can help you to achieve this conversion.
578
+
The project is published with the help of [GitHubActions](./.github/workflows).
579
+
It's version number is determined by the Git tags (see [allegro/axion-release-plugin](https://axion-release-plugin.readthedocs.io)).
580
+
The Java dependencies are published to Sonatype with the help of the [gradle-nexus/publish-plugin](https://github.com/gradle-nexus/publish-plugin) and the Maven Publish Plugin.
581
+
The Gradle plugin is published to the [Gradle plugin portal](https://plugins.gradle.org/plugin/com.epages.restdocs-api-spec) with the help of the ['plugin-publish' plugin](https://plugins.gradle.org/plugin/com.gradle.plugin-publish) (see [docs.gradle.org](https://docs.gradle.org/current/userguide/publishing_gradle_plugins.html)).
582
582
583
-
- [oas-raml-converter](https://github.com/mulesoft/oas-raml-converter) - an npm project that provides a CLI to convert between OpenAPI and RAML - it also provides an [online converter](https://mulesoft.github.io/oas-raml-converter/)
584
-
- [api-matic](https://apimatic.io/transformer) - an online converter capable of converting between many api specifications
583
+
Given that the `master` branch on the upstream repository is in the state from which you want to create a release, execute the following steps:
585
584
586
-
In the [sample project](samples/restdocs-api-spec-sample) you find a build configuration that uses the [oas-raml-converter-docker](https://hub.docker.com/r/zaddo/oas-raml-converter-docker/) docker image and the [gradle-docker-plugin](https://github.com/bmuschko/gradle-docker-plugin) to leverage the `oas-raml-converter` to convert the output of the `openapi` task to RAML.
587
-
Usingthis approach your gradle build can still output a RAML specification.
585
+
**(1) Create release**
588
586
589
-
See [openapi2raml.gradle](samples/restdocs-api-spec-sample/openapi2raml.gradle).
587
+
[Create release via the GitHub UI](https://github.com/ePages-de/restdocs-api-spec/releases/new).
Use the intended version number as "Tag version", e.g. "0.18.2".
590
+
This will automatically trigger a GitHub Action build which publishes the JAR files for this release to Sonatype.
595
591
596
-
## Maintenance
592
+
**(2) Login to Sonatype**
597
593
598
-
This section of the README is targeted at project maintainers.
594
+
Login to Sonatype and navigate to the [staging repositories](https://oss.sonatype.org/#stagingRepositories).
599
595
600
-
### Publish project
596
+
**(3) Close the staging repository**
597
+
598
+
Select the generated staging repository and close it.
599
+
Check that there are no errors afterwards (e.g. missing signatures or Javadoc JARs).
601
600
602
-
~~The project is published with the help of [TravisCI](./.travis.yml).~~
603
-
It's version number is determined by the Git tags (see [allegro/axion-release-plugin](https://axion-release-plugin.readthedocs.io)).
604
-
The Java dependencies are published to Sonatype with the help of the [gradle-nexus/publish-plugin](https://github.com/gradle-nexus/publish-plugin) and the Maven Publish Plugin.
605
-
The Gradle plugin is published to the [Gradle plugin portal](https://plugins.gradle.org/plugin/com.epages.restdocs-api-spec) with the help of the ['plugin-publish' plugin](https://plugins.gradle.org/plugin/com.gradle.plugin-publish) (see [docs.gradle.org](https://docs.gradle.org/current/userguide/publishing_gradle_plugins.html)).
601
+
**(4) Release the repository**
606
602
607
-
Given that the `master` branch on the upstream repository is in the state from which you want to create a release, execute the following steps:
603
+
Select the generated staging repository and release it.
604
+
After few minutes, the release should be available in the ["Public Repositories" of ePages](https://oss.sonatype.org/service/local/repo_groups/public/content/com/epages/).
605
+
606
+
**(5) Update documentation**
608
607
609
-
1. [Create release via the GitHub UI](https://github.com/ePages-de/restdocs-api-spec/releases/new) <br>
610
-
Use the intended version number as "Tag version", e.g. "0.16.0".
611
-
~~This will automatically trigger a Travis build which publishes the JAR files for this release to Sonatype.~~
612
-
2. Login to Sonatype and navigate to the [staging repositories](https://oss.sonatype.org/#stagingRepositories)
613
-
3. Close the staging repository <br>
614
-
Select the generated staging repository and close it.
615
-
Check that there are no errors afterwards (e.g. missing signatures or Javadoc JARs).
616
-
4. Release the repository <br>
617
-
Select the generated staging repository and release it.
618
-
Soon after, the release should be available in the ["Public Repositories" of ePages](https://oss.sonatype.org/service/local/repo_groups/public/content/com/epages/).
619
-
5. Update documentation <br>
620
-
Create a new commit which updates the version numbers in the `README` file.
608
+
Create a new commit which updates the version numbers in the `README` file.
0 commit comments