Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# Release process

1. Update the `version` in `build.gradle`
- Push this to `main` (optionally with a PR)
2. Create a new release on github: [direct link](https://github.com/getyourguide/openapi-validation-java/releases/new)
- Choose a tag `v....` (the new version)
- Select "Create new tag"
- Press "Generate release notes"
- Publish release
- Create a new release on github: [direct link](https://github.com/getyourguide/openapi-validation-java/releases/new)
- Choose a tag `v....` (the new version)
- Select "Create new tag"
- Press "Generate release notes"
- Publish release

## Release SNAPSHOT version from branch

- Create a new release on github: [direct link](https://github.com/getyourguide/openapi-validation-java/releases/new)
- Choose a tag `v....` (the new version)
- Select "Create new tag"
- **Choose your branch as target**
- Press "Generate release notes"
- **Check "Set as a pre-release"**
- Publish release
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ apply from: "${rootDir}/gradle/publish-root.gradle"
allprojects {
group = 'com.getyourguide.openapi.validation'
description = 'OpenAPI Validation library'
version = '3.3.2'
// Use version from GitHub tag if provided, otherwise use default version
version = project.hasProperty('gh_tag') ? project.property('gh_tag').replaceFirst('^v', '') : '0-SNAPSHOT'

java {
toolchain {
Expand Down
Loading