From d3b8d2f34749b8161219a874d3cc46b18a367775 Mon Sep 17 00:00:00 2001 From: Matt Nichols Date: Fri, 7 Jul 2023 09:57:08 -0600 Subject: [PATCH] build: revert to release-please --- .github/workflows/release.yml | 4 +-- .release-please-manifest.json | 3 +++ .releaserc | 47 ----------------------------------- README.md | 21 +++++++++++++++- build.gradle | 2 +- commitlint.config.js | 36 ++++++++++++++++++++++++++- release-please-config.json | 13 ++++++++++ 7 files changed, 73 insertions(+), 53 deletions(-) create mode 100644 .release-please-manifest.json delete mode 100644 .releaserc create mode 100644 release-please-config.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6bb09dc..33aa047 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,16 +3,14 @@ on: push: branches: - master - - rc name: release jobs: release: permissions: write-all - uses: mxenabled/path-tools/.github/workflows/release_semantic.yml@master + uses: mxenabled/path-tools/.github/workflows/release_manifest.yml@master secrets: - SEMANTIC_TOKEN: ${{ secrets.SEMANTIC_TOKEN }} OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }} GPG_SIGNING_KEY_BASE64: ${{ secrets.GPG_SIGNING_KEY_BASE64 }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..32dbe0e --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "5.0.0" +} diff --git a/.releaserc b/.releaserc deleted file mode 100644 index e5a4f4f..0000000 --- a/.releaserc +++ /dev/null @@ -1,47 +0,0 @@ -{ - "branches": [ - { name: "master" }, - { name: "rc", prerelease: "rc" } - ], - "tagFormat": "${version}", - "plugins": [ - [ - "@google/semantic-release-replace-plugin", - { - "replacements": [ - { - "files": ["./README.md", "build.gradle"], - "from": "(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?(?.+x-release-version.?)", - "to": "${nextRelease.version}$" - } - ] - } - ], - [ - '@semantic-release/commit-analyzer', - { - preset: 'conventionalcommits', - }, - ], - [ - '@semantic-release/release-notes-generator', - { - preset: 'conventionalcommits', - } - ], - [ - "@semantic-release/changelog", - { - "changelogFile": "CHANGELOG.md" - } - ], - [ - "@semantic-release/git", - { - "assets": ["./README.md", "CHANGELOG.md", "./build.gradle"], - "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" - } - ], - "@semantic-release/github" - ] -} diff --git a/README.md b/README.md index f803e2a..ceb1cf2 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,10 @@ Issues: https://github.com/mxenabled/path-core/issues ### Using platform (preferred) _Gradle_ + ```groovy dependencies { - api platform("com.mx.path-facilities:platform:5.0.0") // x-release-version + api platform("com.mx.path-facilities:platform:5.0.0") implementation "com.mx.path-facilities:store-redis" implementation "com.mx.path-facilities:store-vault" @@ -32,6 +33,24 @@ dependencies { implementation "com.mx.path-facilities:exception-reporter-honeybadger" } ``` + + +### Using without platform + +_Gradle_ + +```groovy +dependencies { + implementation "com.mx.path-facilities:store-redis:5.0.0" + implementation "com.mx.path-facilities:store-vault:5.0.0" + implementation "com.mx.path-facilities:encryption-service-vault:5.0.0" + implementation "com.mx.path-facilities:encryption-service-jasypt:5.0.0" + implementation "com.mx.path-facilities:message-broker-nats:5.0.0" + implementation "com.mx.path-facilities:fault-tolerant-executor-resilience4j:5.0.0" + implementation "com.mx.path-facilities:exception-reporter-honeybadger:5.0.0" +} +``` + ## Releases diff --git a/build.gradle b/build.gradle index 1f61c6d..b0cb55f 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { id "io.github.gradle-nexus.publish-plugin" version "1.1.0" } -version "5.0.0" // x-release-version +version "5.0.0" // x-release-please-version def platformProject = "platform" diff --git a/commitlint.config.js b/commitlint.config.js index 28fe5c5..d157a89 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1 +1,35 @@ -module.exports = {extends: ['@commitlint/config-conventional']} +module.exports = { + parserPreset: 'conventional-changelog-conventionalcommits', + rules: { + 'body-leading-blank': [1, 'always'], + 'body-max-line-length': [2, 'always', 100], + 'footer-leading-blank': [1, 'always'], + 'footer-max-line-length': [2, 'always', 100], + 'header-max-length': [2, 'always', 100], + 'subject-case': [ + 2, + 'never', + ['sentence-case', 'start-case', 'pascal-case', 'upper-case'], + ], + 'subject-empty': [2, 'never'], + 'subject-full-stop': [2, 'never', '.'], + 'type-case': [2, 'always', 'lower-case'], + 'type-empty': [2, 'never'], + 'type-enum': [ + 2, + 'always', + [ + 'build', + 'chore', + 'docs', + 'feat', + 'fix', + 'perf', + 'refactor', + 'revert', + 'style', + 'test', + ], + ], + }, +}; diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..d81cfc3 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,13 @@ +{ + "bootstrap-sha": "101b9976977e65747a19919783562df35c9402c4", + "prerelease": false, + "release-type": "simple", + "packages": { + ".": { + "extra-files": [ + "build.gradle", + "README.md" + ] + } + } +}