-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare publish of com.gradleup.shadow (#930)
- Plugin id from `com.github.johnrengelman.shadow` to `com.gradleup.shadow`. - Support publishing to MavenCentral and with snapshots support. - Add release workflows. - Add changelog and releasing. - Update original repo ref links. --------- Co-authored-by: Alex Nordlund <[email protected]>
- Loading branch information
Showing
28 changed files
with
339 additions
and
249 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,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 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,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 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 |
---|---|---|
@@ -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 | ||
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 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
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 |
---|---|---|
|
@@ -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 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
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.