-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/diffplug/spotless into feat…
…ure/eslint-npm # Conflicts: # CHANGES.md # plugin-gradle/CHANGES.md # plugin-maven/CHANGES.md # plugin-maven/README.md
- Loading branch information
Showing
43 changed files
with
814 additions
and
486 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: changelogPrint | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: changelogPrint | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: jdk 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: 'temurin' | ||
- name: gradle caching | ||
uses: gradle/gradle-build-action@v2 | ||
- run: ./gradlew changelogPrint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# GH_TOKEN | ||
# NEXUS_USER | ||
# NEXUS_PASS | ||
# GPG_PASSPHRASE | ||
# GPG_KEY (base64) | ||
# gpg --export-secret-keys --armor KEY_ID | openssl base64 | pbcopy | ||
# GRADLE_PORTAL_KEY | ||
# GRADLE_PORTAL_SECRET | ||
|
||
name: deploy | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
to_publish: | ||
description: 'What to publish' | ||
required: true | ||
default: 'all' | ||
type: choice | ||
options: | ||
- plugin-gradle | ||
- plugin-maven | ||
- all | ||
- lib | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: deploy | ||
env: | ||
gh_token: ${{ secrets.GH_TOKEN }} | ||
ORG_GRADLE_PROJECT_nexus_user: ${{ secrets.NEXUS_USER }} | ||
ORG_GRADLE_PROJECT_nexus_pass: ${{ secrets.NEXUS_PASS }} | ||
ORG_GRADLE_PROJECT_gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
ORG_GRADLE_PROJECT_gpg_key64: ${{ secrets.GPG_KEY }} | ||
|
||
gradle_key | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: jdk 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: 'temurin' | ||
- name: gradle caching | ||
uses: gradle/gradle-build-action@v2 | ||
- name: publish all | ||
if: "${{ github.event.inputs.to_publish == 'all' }}" | ||
run: | | ||
./gradlew :changelogPush -Prelease=true --stacktrace --warning-mode all | ||
./gradlew :plugin-gradle:changelogPush -Prelease=true -Pgradle.publish.key=${{ secrets.GRADLE_PORTAL_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PORTAL_SECRET }} --stacktrace --warning-mode all | ||
./gradlew :plugin-maven:changelogPush -Prelease=true --stacktrace --warning-mode all | ||
- name: publish just plugin-gradle | ||
if: "${{ github.event.inputs.to_publish == 'plugin-gradle' }}" | ||
run: | | ||
./gradlew :plugin-gradle:changelogPush -Prelease=true -Pgradle.publish.key=${{ secrets.GRADLE_PORTAL_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PORTAL_SECRET }} --stacktrace --warning-mode all | ||
- name: publish just plugin-maven | ||
if: "${{ github.event.inputs.to_publish == 'plugin-maven' }}" | ||
run: | | ||
./gradlew :plugin-maven:changelogPush -Prelease=true --stacktrace --warning-mode all | ||
- name: publish just lib | ||
if: "${{ github.event.inputs.to_publish == 'lib' }}" | ||
run: | | ||
./gradlew :changelogPush -Prelease=true --stacktrace --warning-mode all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.