diff --git a/.github/src_filters.yml b/.github/src_filters.yml new file mode 100644 index 0000000..8910c77 --- /dev/null +++ b/.github/src_filters.yml @@ -0,0 +1,6 @@ +src: + - '**/src/**' + - '**/build.gradle' + - '**/gradle.lockfile' + - '**/gradle.settings' + - '.github/**' diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index 4be6d7c..0000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: Java CI with Gradle - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -permissions: - contents: read - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 17 - uses: actions/setup-java@v3 - with: - java-version: '17' - distribution: 'temurin' - - name: Build with Gradle - uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee - with: - arguments: build diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..edebead --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +on: + push: + workflow_dispatch: + inputs: + force: + default: false + description: Force all steps (ignore changes) + required: false + type: boolean + +name: ci + +jobs: + ci: + permissions: read-all + uses: mxenabled/path-tools/.github/workflows/ci.yml@master + with: + force: ${{ inputs.force != '' && inputs.force }} + java-version: '17' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..10c3800 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +on: + workflow_dispatch: + push: + branches: + - master + +name: release + +jobs: + release: + permissions: write-all + uses: mxenabled/path-tools/.github/workflows/release_manifest.yml@master + with: + dry-run: true + secrets: + OSSRH_USERNAME: not_published + OSSRH_TOKEN: not_published + GPG_SIGNING_KEY_BASE64: not_published + GPG_SIGNING_PASSPHRASE: not_published diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..d6f5405 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "3.0.1" +} diff --git a/README.md b/README.md index faa29b4..21407d1 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,34 @@ Binks is a simple plugin that validates and creates release tags to launch jar p Binks is hosted via [JitPack](https://jitpack.io/p/mxenabled/binks). +#### Gradle + + +_build.gradle_: +```groovy +plugins { + id: "com.github.mxenabled.binks" version "3.0.1" +} + +allprojects { + repositories { + ... + maven { url "https://jitpack.io" } + } +} +``` + +_settings.gradle_: +```groovy +pluginManagement { + repositories { + ... + maven { url "https://jitpack.io" } + } +} +``` + + ### Usage ``` diff --git a/build.gradle b/build.gradle index 6291014..1389aa2 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,7 @@ plugins { } group "com.mx.binks" -version "3.0.1" +version "3.0.1" // x-release-please-version sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..c78eec4 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,14 @@ +{ + "bootstrap-sha": "73dfa48603f88cc8174de8dd9d3ff5f7b7d4e263", + "include-v-in-tag": false, + "prerelease": false, + "release-type": "simple", + "packages": { + ".": { + "extra-files": [ + "build.gradle", + "README.md" + ] + } + } +}