Skip to content

Commit caee026

Browse files
Polish
1 parent 632d50c commit caee026

File tree

2 files changed

+69
-1
lines changed

2 files changed

+69
-1
lines changed

README.adoc

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,3 +402,71 @@ Go to `File` -> `Settings` -> `Other settings` -> `Checkstyle`. There click on t
402402
- `checkstyle.additional.suppressions.file` - this variable corresponds to suppressions in your local project. E.g. you're working on `spring-cloud-contract`. Then point to the `project-root/src/checkstyle/checkstyle-suppressions.xml` folder. Example for `spring-cloud-contract` would be: `/home/username/spring-cloud-contract/src/checkstyle/checkstyle-suppressions.xml`.
403403

404404
IMPORTANT: Remember to set the `Scan Scope` to `All sources` since we apply checkstyle rules for production and test sources.
405+
406+
== Releasing
407+
408+
=== Bump the versions of all the dependencies
409+
410+
Go to root project's `pom.xml` and update the properties to point to proper dependency versions.
411+
412+
=== Update the project versions
413+
414+
```bash
415+
$ otelVersion="1.0.0-M8" && ./mvnw versions:set -DnewVersion="${otelVersion}" -DgenerateBackupPoms=false && pushd spring-cloud-sleuth-otel-dependencies && ../mvnw versions:set -DnewVersion="${otelVersion}" -DgenerateBackupPoms=false && popd
416+
```
417+
418+
IMPORTANT: Notice that we have to update the `otel-dependencies` module manually.
419+
420+
=== Build the project
421+
422+
IMPORTANT: Remember to add a proper profile. `milestone` for milestones / release candidates, `central` for GA versions. No profile is required for snapshots.
423+
424+
```bash
425+
$ ./mvnw clean install -Pmilestone
426+
```
427+
428+
or
429+
430+
```bash
431+
$ ./mvnw clean install -Pcentral
432+
```
433+
434+
=== Upload the artifacts
435+
436+
```bash
437+
$ ./mvnw deploy -Pmilestone
438+
```
439+
440+
or
441+
442+
```bash
443+
$ ./mvnw deploy -Pcentral
444+
```
445+
446+
=== Commit and tag
447+
448+
```bash
449+
$ ./mvnw versions:commit
450+
$ otelVersion="1.0.0-M8" && ./mvnw versions:set-scm-tag -DnewTag="${otelVersion}"
451+
```
452+
453+
=== Generate and update the docs
454+
455+
```bash
456+
$ ./mvnw clean install -Pdocs -pl docs
457+
$ export otelVersion="1.0.0-M8"
458+
$ temporaryDir="/tmp/sleuth-otel" && rm -rf "${temporaryDir}" && mkdir -p "${temporaryDir}" && cp -r docs/target/generated-docs/* "${temporaryDir}" && git checkout gh-pages && git reset --hard origin/gh-pages && rm -rf "docs/${otelVersion}" && mkdir -p "docs/${otelVersion}" && cp -rf "${temporaryDir}"/* "docs/${otelVersion}/" && pushd docs && rm current && ln -s "${otelVersion}" current && git add . && git commit -m "Updated site" && git push origin gh-pages
459+
```
460+
461+
=== Go back to snapshots
462+
463+
```bash
464+
$ otelVersion="1.0.0-SNAPSHOT" && ./mvnw versions:set -DnewVersion="${otelVersion}" -DgenerateBackupPoms=false && pushd spring-cloud-sleuth-otel-dependencies && ../mvnw versions:set -DnewVersion="${otelVersion}" -DgenerateBackupPoms=false && popd
465+
```
466+
467+
=== Commit and push tags
468+
469+
```bash
470+
$ ./mvnw versions:commit
471+
$ git push origin --tags
472+
```

docs/src/main/asciidoc/__releasing.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $ otelVersion="1.0.0-M8" && ./mvnw versions:set-scm-tag -DnewTag="${otelVersion}
4848
```bash
4949
$ ./mvnw clean install -Pdocs -pl docs
5050
$ export otelVersion="1.0.0-M8"
51-
$ temporaryDir="/tmp/sleuth-otel" && rm -rf "${temporaryDir}" && mkdir -p "${temporaryDir}" && cp -r docs/target/generated-docs/* "${temporaryDir}" && git checkout gh-pages && git reset --hard origin/gh-pages && rm -rf "${temporaryDir}/docs/${otelVersion}" && mkdir "${temporaryDir}/docs/${otelVersion}" && cp -rf "${temporaryDir}"/* "${temporaryDir}/docs/${otelVersion}" && git add . && git commit -m "Updated site" && git push origin gh-pages
51+
$ temporaryDir="/tmp/sleuth-otel" && rm -rf "${temporaryDir}" && mkdir -p "${temporaryDir}" && cp -r docs/target/generated-docs/* "${temporaryDir}" && git checkout gh-pages && git reset --hard origin/gh-pages && rm -rf "docs/${otelVersion}" && mkdir -p "docs/${otelVersion}" && cp -rf "${temporaryDir}"/* "docs/${otelVersion}/" && pushd docs && rm current && ln -s "${otelVersion}" current && git add . && git commit -m "Updated site" && git push origin gh-pages
5252
```
5353

5454
=== Go back to snapshots

0 commit comments

Comments
 (0)