-
-
Notifications
You must be signed in to change notification settings - Fork 424
Prepare publish of com.gradleup.shadow #930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
6c788a8
Prepare publish of com.gradleup.shadow
Goooler 879c3d4
Check main branch before snapshot publishing
Goooler 077ad41
Add releasing and changelog
Goooler 321bbfc
Reformat
Goooler 7d64175
Update snapshot badge
Goooler 6c9ad03
GH release in workflow
Goooler a94dafc
Tweak
Goooler bf6b539
Disable CC in release workflow
Goooler 368b8f7
Correct ORG_GRADLE_PROJECT_signingInMemoryKey
Goooler 7694283
Remove extra signing config
Goooler 4d8bc2b
Add publishPlugins in release workflow
Goooler 9dd3748
Add gitPublishCopy in release workflow
Goooler ade08d8
Replace more GH page info
Goooler 2fdc58d
Update changelog file ref
Goooler 22344fa
Update johnrengelman/shadow links
Goooler 7f33f2f
Update contributors ref
Goooler 214515c
Note coordinate change
Goooler 8ad4593
Merge remote-tracking branch 'origin/main' into publish-infra
Goooler 01f0357
Update gradle/actions action to v4
Goooler 3585900
Add release task back and tweaks
Goooler b3ce192
Note 8.3 requirement in README
Goooler ff01bde
Note snapshot usage
Goooler 38c783c
Add missing dependency to `yarn_build`
deepy 15780f5
Use node 16 in release workflow
Goooler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,46 @@ | ||
| name: Release | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - '**' | ||
|
|
||
| jobs: | ||
| release: | ||
| runs-on: ubuntu-latest | ||
| if: github.repository == 'GradleUp/shadow' | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: 'zulu' | ||
| java-version: 21 | ||
| - uses: gradle/actions/setup-gradle@v4 | ||
| with: | ||
| cache-read-only: true | ||
| - uses: actions/setup-node | ||
| with: | ||
| # Due to some limitations of https://github.com/node-gradle/gradle-node-plugin. | ||
| node-version: '16' | ||
| # Disable CC due to https://github.com/gradle/gradle/issues/22779 | ||
| - run: ./gradlew release --no-configuration-cache | ||
| env: | ||
| GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_KEY }} | ||
| GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_SECRET }} | ||
| # https://ajoberstar.org/grgit/main/grgit-authentication.html#_environment_variables | ||
| GRGIT_USER: ${{ secrets.GITHUB_TOKEN }} | ||
| ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USER }} | ||
| ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} | ||
| ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }} | ||
| ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_KEY_PASSWORD }} | ||
| - name: Extract release notes | ||
| uses: ffurrer2/extract-release-notes@v2 | ||
| with: | ||
| changelog_file: src/docs/changes/README.md | ||
| release_notes_file: RELEASE_NOTES.md | ||
| - name: Create release | ||
| run: gh release create ${{ github.ref_name }} --notes-file RELEASE_NOTES.md | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
This file contains hidden or 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 hidden or 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,40 @@ | ||
| # Releasing | ||
|
|
||
| 1. Update the `VERSION_NAME` in `gradle.properties` to the release version. | ||
|
|
||
| 2. Update the [changelog](src/docs/changes/README.md): | ||
| 1. Change the `Unreleased` header to the release version. | ||
| 2. Add a link URL to ensure the header link works. | ||
| 3. Add a new `Unreleased` section to the top. | ||
|
|
||
| 3. Update the `README.md` so the "Download" section reflects the new release version and the | ||
| snapshot section reflects the next "SNAPSHOT" version. | ||
|
|
||
| 4. Commit | ||
|
|
||
| ``` | ||
| $ git commit -am "Prepare version X.Y.Z" | ||
| ``` | ||
|
|
||
| 5. Tag | ||
|
|
||
| ``` | ||
| $ git tag -am "Version X.Y.Z" X.Y.Z | ||
| ``` | ||
|
|
||
| 6. Update the `VERSION_NAME` in `gradle.properties` to the next "SNAPSHOT" version. | ||
|
|
||
| 7. Commit | ||
|
|
||
| ``` | ||
| $ git commit -am "Prepare next development version" | ||
| ``` | ||
|
|
||
| 8. Push! | ||
|
|
||
| ``` | ||
| $ git push && git push --tags | ||
| ``` | ||
|
|
||
| This will trigger a GitHub Action workflow which will create a GitHub release and upload the | ||
| release artifacts to Maven Central. |
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,4 +1,30 @@ | ||
| org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx4g -XX:MaxMetaspaceSize=2g | ||
| org.gradle.parallel=true | ||
| org.gradle.caching=true | ||
| org.gradle.configuration-cache=true | ||
| org.gradle.configuration-cache=true | ||
|
|
||
|
|
||
| GROUP=com.gradleup.shadow | ||
Goooler marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| POM_ARTIFACT_ID=shadow-gradle-plugin | ||
| VERSION_NAME=8.3.0-SNAPSHOT | ||
|
|
||
| SONATYPE_AUTOMATIC_RELEASE=true | ||
| SONATYPE_HOST=DEFAULT | ||
| RELEASE_SIGNING_ENABLED=true | ||
|
|
||
| POM_NAME=Shadow Gradle Plugin | ||
| POM_DESCRIPTION=Gradle plugin to create fat/uber JARs, apply file transforms, and relocate packages for applications and libraries. Gradle version of Maven's Shade plugin. | ||
| POM_INCEPTION_YEAR=2024 | ||
| POM_URL=https://github.com/GradleUp/shadow | ||
|
|
||
| POM_LICENSE_NAME=The Apache Software License, Version 2.0 | ||
| POM_LICENSE_URL=https://www.apache.org/licenses/LICENSE-2.0.txt | ||
| POM_LICENSE_DIST=repo | ||
|
|
||
| POM_SCM_URL=https://github.com/GradleUp/shadow | ||
| POM_SCM_CONNECTION=scm:git:git://github.com/GradleUp/shadow.git | ||
| POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/GradleUp/shadow.git | ||
|
|
||
| POM_DEVELOPER_ID=gradleup | ||
| POM_DEVELOPER_NAME=GradleUp developers | ||
| POM_DEVELOPER_URL=https://github.com/GradleUp | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -2,8 +2,8 @@ | |
| "name": "shadow", | ||
| "version": "1.0.0", | ||
| "main": "index.js", | ||
| "repository": "[email protected]:johnrengelman/shadow.git", | ||
| "author": "John Engelman <[email protected]>", | ||
| "repository": "[email protected]:GradleUp/shadow.git", | ||
| "author": "GradleUp developers", | ||
| "license": "MIT", | ||
| "devDependencies": { | ||
| "prismjs": "^1.20.0", | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.