From 6c788a888e237a39fb1152c0c4303c22e17349a8 Mon Sep 17 00:00:00 2001 From: Zongle Wang Date: Thu, 1 Aug 2024 05:10:45 -0400 Subject: [PATCH 01/23] Prepare publish of com.gradleup.shadow --- .github/workflows/ci.yml | 24 ++++++++-- .github/workflows/release.yml | 25 +++++++++++ README.md | 4 +- build.gradle | 4 +- gradle.properties | 27 +++++++++++- gradle/publish.gradle | 44 +++++-------------- src/docs/application-plugin/README.md | 2 +- src/docs/changes/README.md | 2 +- src/docs/getting-started/README.md | 6 +-- src/docs/plugins/README.md | 2 +- src/docs/publishing/README.md | 2 +- src/main/resources/shadow-version.txt | 1 - .../shadow/ConfigurationCacheSpec.groovy | 4 +- .../plugins/shadow/PublishingSpec.groovy | 2 +- .../plugins/shadow/RelocationSpec.groovy | 2 +- .../plugins/shadow/ShadowPluginSpec.groovy | 24 +++++----- .../caching/MinimizationCachingSpec.groovy | 4 +- .../docs/executer/GradleBuildExecuter.groovy | 2 +- .../docs/fixture/GroovyDslFixture.groovy | 2 +- .../shadow/util/PluginSpecification.groovy | 4 +- 20 files changed, 116 insertions(+), 71 deletions(-) create mode 100644 .github/workflows/release.yml delete mode 100644 src/main/resources/shadow-version.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac0b62e8a..5762fd31b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,10 @@ name: CI on: - pull_request: - branches: - - main push: branches: - main + pull_request: workflow_dispatch: jobs: @@ -28,3 +26,23 @@ jobs: gradle-home-cache-cleanup: true validate-wrappers: true - run: ./gradlew build + + publish-snapshot: + needs: build + runs-on: ubuntu-latest + # I'll add github.ref == 'refs/heads/main' check before merging this PR. + if: github.repository == 'GradleUp/shadow' + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: 21 + - uses: gradle/actions/setup-gradle@v3 + with: + cache-read-only: true + # Disable CC due to https://github.com/gradle/gradle/issues/22779 + - run: ./gradlew publish --no-configuration-cache + env: + ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USER }} + ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..0f810f553 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Release + +on: + push: + tags: + - '**' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: 21 + - uses: gradle/actions/setup-gradle@v3 + with: + cache-read-only: true + - run: ./gradlew publish + env: + ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USER }} + ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} + ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.GPG_KEY }} + ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_KEY_PASSWORD }} diff --git a/README.md b/README.md index 2b376279c..e896e8fcf 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,9 @@ Read the [User Guide](https://imperceptiblethoughts.com/shadow/)! ## Current Status -[![Download](https://img.shields.io/gradle-plugin-portal/v/com.github.johnrengelman.shadow)](https://plugins.gradle.org/plugin/com.github.johnrengelman.shadow) +[![Maven Central](https://img.shields.io/maven-central/v/com.gradleup.shadow/shadow-gradle-plugin)](https://central.sonatype.com/artifact/com.gradleup.shadow/shadow-gradle-plugin) +[![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/com.gradleup.shadow/shadow-gradle-plugin?&server=https://s01.oss.sonatype.org/)](https://s01.oss.sonatype.org/content/repositories/snapshots/io/github/GradleUp/shadow/shadow-gradle-plugin) +[![Plugin Portal](https://img.shields.io/gradle-plugin-portal/v/com.gradleup.shadow)](https://plugins.gradle.org/plugin/com.gradleup.shadow) [![CI](https://github.com/GradleUp/shadow/actions/workflows/ci.yml/badge.svg?branch=main&event=push)](https://github.com/GradleUp/shadow/actions/workflows/ci.yml?query=branch:main+event:push) [![License](https://img.shields.io/github/license/GradleUp/shadow.svg)](LICENSE) diff --git a/build.gradle b/build.gradle index edc61af78..a184c9e77 100644 --- a/build.gradle +++ b/build.gradle @@ -6,10 +6,10 @@ plugins { id 'project-report' id 'idea' id 'java-gradle-plugin' - id 'signing' id 'com.gradle.plugin-publish' version '1.2.1' id 'org.ajoberstar.git-publish' version '4.2.2' id 'com.github.node-gradle.node' version '7.0.2' + id 'com.vanniktech.maven.publish' version "0.29.0" } apply plugin: ShadowPlugin @@ -32,7 +32,7 @@ tasks.withType(Test).configureEach { maxHeapSize "1g" } - systemProperty 'java.io.tmpdir', project.layout.buildDirectory.asFile.get().absolutePath + systemProperty 'shadowVersion', version // Required to test configuration cache in tests when using withDebug() // https://github.com/gradle/gradle/issues/22765#issuecomment-1339427241 diff --git a/gradle.properties b/gradle.properties index 07462a044..640f0391f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,29 @@ org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx4g -XX:MaxMetaspaceSize=2g org.gradle.parallel=true org.gradle.caching=true -org.gradle.configuration-cache=true \ No newline at end of file +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 + +POM_NAME=Shadow Gradle Plugin +POM_DESCRIPTION=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://git@github.com/GradleUp/shadow.git + +POM_DEVELOPER_ID=gradleup +POM_DEVELOPER_NAME=GradleUp developers +POM_DEVELOPER_URL=https://github.com/GradleUp \ No newline at end of file diff --git a/gradle/publish.gradle b/gradle/publish.gradle index 921c89c69..5ef836132 100644 --- a/gradle/publish.gradle +++ b/gradle/publish.gradle @@ -1,52 +1,28 @@ apply plugin: "com.gradle.plugin-publish" +apply plugin: "com.vanniktech.maven.publish" -group = 'com.github.johnrengelman' - -if (System.env.CIRCLE_TAG && System.env.CIRCLE_TAG =~ /^\d\.\d\.\d$/) { - version = System.env.CIRCLE_TAG -} else { - version = file('src/main/resources/shadow-version.txt').text.trim() - if (!version.endsWith("-SNAPSHOT")) { - version = version + "-SNAPSHOT" - } -} +group = providers.gradleProperty("GROUP") +version = providers.gradleProperty("VERSION_NAME") gradlePlugin { - website = 'https://github.com/johnrengelman/shadow' - vcsUrl = 'https://github.com/johnrengelman/shadow' + website = providers.gradleProperty("POM_URL") + vcsUrl = providers.gradleProperty("POM_URL") plugins { shadowPlugin { - id = 'com.github.johnrengelman.shadow' + id = 'com.gradleup.shadow' implementationClass = 'com.github.jengelman.gradle.plugins.shadow.ShadowPlugin' - displayName = 'Shadow Plugin' - 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." + displayName = providers.gradleProperty("POM_NAME").orNull + description = providers.gradleProperty("POM_DESCRIPTION").orNull tags.set(['onejar', 'shade', 'fatjar', 'uberjar']) } } } tasks.named('publishPlugins') { - doFirst { - if (version.endsWith("SNAPSHOT")) { - throw new GradleException('Cannot publish SNAPSHOT versions to Plugin Portal!') - } - } notCompatibleWithConfigurationCache("https://github.com/gradle/gradle/issues/21283") } -signing { - if (System.env.CI == 'true') { - def encodedSigningKey = findProperty("signingKey") - def signingKey = encodedSigningKey ? new String(encodedSigningKey.decodeBase64()) : null - def signingPassword = findProperty("signingPassword") as String - useInMemoryPgpKeys(signingKey, signingPassword) - } - // See https://github.com/johnrengelman/shadow/pull/831#discussion_r1119012328 - required = false && gradle.taskGraph.hasTask("artifactoryPublish") - sign(publishing.publications) -} - -tasks.register('release') { - dependsOn tasks.named('assemble'), tasks.named('publishPlugins'), tasks.named('gitPublishPush') +mavenPublishing { + signAllPublications() } diff --git a/src/docs/application-plugin/README.md b/src/docs/application-plugin/README.md index 896e222a9..e365fb198 100644 --- a/src/docs/application-plugin/README.md +++ b/src/docs/application-plugin/README.md @@ -11,7 +11,7 @@ configured to contain the `Main-Class` attribute with the value specified in the // Using Shadow with Application Plugin apply plugin: 'java' apply plugin: 'application' -apply plugin: 'com.github.johnrengelman.shadow' +apply plugin: 'com.gradleup.shadow' application { mainClass = 'myapp.Main' diff --git a/src/docs/changes/README.md b/src/docs/changes/README.md index 25068614d..29fcfbd1d 100644 --- a/src/docs/changes/README.md +++ b/src/docs/changes/README.md @@ -65,7 +65,7 @@ Instead, use the `enableRelocation = true` and `relocationPrefix = " Date: Thu, 1 Aug 2024 18:16:37 +0800 Subject: [PATCH 02/23] Check main branch before snapshot publishing --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5762fd31b..9dcf6127a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,8 +30,7 @@ jobs: publish-snapshot: needs: build runs-on: ubuntu-latest - # I'll add github.ref == 'refs/heads/main' check before merging this PR. - if: github.repository == 'GradleUp/shadow' + if: github.repository == 'GradleUp/shadow' && github.ref == 'refs/heads/main' steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 From 077ad413846543dadc23964e2d655326e6ca39dc Mon Sep 17 00:00:00 2001 From: Goooler Date: Thu, 1 Aug 2024 19:11:37 +0800 Subject: [PATCH 03/23] Add releasing and changelog --- CHANGELOG.md | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++ RELEASING.md | 40 ++++++++++++++++++++++++ 2 files changed, 128 insertions(+) create mode 100644 CHANGELOG.md create mode 100644 RELEASING.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..b73f321a4 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,88 @@ +# Change Log + +## [Unreleased] + +**Changed** + +- Bump the min Gradle requirement from `8.0.0` to `8.3`. ([#876](https://github.com/johnrengelman/shadow/pull/876)) +- Support Java 21. ([#876](https://github.com/johnrengelman/shadow/pull/876)) +- Use new file permission API from Gradle 8.3. ([#876](https://github.com/johnrengelman/shadow/pull/876)) + +**Fixed** + +- Fix for PropertiesFileTransformer breaks Reproducible builds in 8.1.1 ([#858](https://github.com/johnrengelman/shadow/pull/858)) + + +## [8.1.1] - 2023-03-21 + +### What's Changed +* Replace deprecated ConfigureUtil by @Goooler in https://github.com/johnrengelman/shadow/pull/826 +* Polish outdated configs by @Goooler in https://github.com/johnrengelman/shadow/pull/831 +* Update plugin com.gradle.enterprise to v3.12.5 by @renovate in https://github.com/johnrengelman/shadow/pull/838 +* Update dependency gradle to v8.0.2 by @renovate in https://github.com/johnrengelman/shadow/pull/844 +* fix(deps): update dependency org.codehaus.plexus:plexus-utils to v3.5.1 by @renovate in https://github.com/johnrengelman/shadow/pull/837 +* chore(deps): update dependency prismjs to v1.27.0 [security] by @renovate in https://github.com/johnrengelman/shadow/pull/828 +* Encode transformed properties files with specified Charset by @scottsteen in https://github.com/johnrengelman/shadow/pull/819 +* chore(deps): update dependency vuepress to v1.9.9 by @renovate in https://github.com/johnrengelman/shadow/pull/842 + +### New Contributors +* @renovate made their first contribution in https://github.com/johnrengelman/shadow/pull/838 +* @scottsteen made their first contribution in https://github.com/johnrengelman/shadow/pull/819 + +**Full Changelog**: https://github.com/johnrengelman/shadow/compare/8.1.0...8.1.1 + + +## [8.1.0] - 2023-02-27 + +### What's Changed +* Minor cleanups by @Goooler in https://github.com/johnrengelman/shadow/pull/823 +* Support config cache by @Goooler in https://github.com/johnrengelman/shadow/pull/824 +* Fix RelocatorRemapper: do not map inner class name if not changed by @Him188 in https://github.com/johnrengelman/shadow/pull/793 + +### New Contributors +* @Him188 made their first contribution in https://github.com/johnrengelman/shadow/pull/793 + +**Full Changelog**: https://github.com/johnrengelman/shadow/compare/8.0.0...8.1.0 + + +## [8.0.0] - 2023-02-25 + +### What's Changed +* Fix the plugin dependency identifier in the docs by @lnhrdt in [#754](https://github.com/johnrengelman/shadow/pull/754) +* mergeGroovyExtensionModules() not working with Groovy 2.5+ by @paulk-asert in [#779](https://github.com/johnrengelman/shadow/pull/779) +* Upgrade to ASM 9.3 to support JDK 19. by @vyazelenko in https://github.com/johnrengelman/shadow/pull/770 +* Do not add a dependencies block if it's already there by @desiderantes in https://github.com/johnrengelman/shadow/pull/769 +* Update README with new badge and links by @ThexXTURBOXx in https://github.com/johnrengelman/shadow/pull/743 +* Fix value not set when rawString is true. by @qian0817 in https://github.com/johnrengelman/shadow/pull/765 +* Mark the Log4j2PluginsCacheFileTransformer as cacheable. by @staktrace in https://github.com/johnrengelman/shadow/pull/724 +* Fix retrieval of dependencies node when publishing by @netomi in https://github.com/johnrengelman/shadow/pull/798 +* Upgrade dependency ASM from `9.3` to `9.4` by @codecholeric in https://github.com/johnrengelman/shadow/pull/817 +* Fix a typo of code comment in the minimizing page by @jebnix in https://github.com/johnrengelman/shadow/pull/800 +* Prefer using plugin extensions over deprecated conventions by @eskatos in https://github.com/johnrengelman/shadow/pull/821 +* Introduce CleanProperties by @simPod in https://github.com/johnrengelman/shadow/pull/622 +* Support Gradle 8.0 by @Goooler in https://github.com/johnrengelman/shadow/pull/822 +* Updated dependencies , Gradle versions and Fix Test by @ElisaMin in https://github.com/johnrengelman/shadow/pull/791 + +### New Contributors +* @lnhrdt made their first contribution in https://github.com/johnrengelman/shadow/pull/754 +* @paulk-asert made their first contribution in https://github.com/johnrengelman/shadow/pull/779 +* @desiderantes made their first contribution in https://github.com/johnrengelman/shadow/pull/769 +* @ThexXTURBOXx made their first contribution in https://github.com/johnrengelman/shadow/pull/743 +* @qian0817 made their first contribution in https://github.com/johnrengelman/shadow/pull/765 +* @staktrace made their first contribution in https://github.com/johnrengelman/shadow/pull/724 +* @netomi made their first contribution in https://github.com/johnrengelman/shadow/pull/798 +* @codecholeric made their first contribution in https://github.com/johnrengelman/shadow/pull/817 +* @jebnix made their first contribution in https://github.com/johnrengelman/shadow/pull/800 +* @eskatos made their first contribution in https://github.com/johnrengelman/shadow/pull/821 +* @simPod made their first contribution in https://github.com/johnrengelman/shadow/pull/622 +* @Goooler made their first contribution in https://github.com/johnrengelman/shadow/pull/822 +* @ElisaMin made their first contribution in https://github.com/johnrengelman/shadow/pull/791 + +**Full Changelog**: https://github.com/johnrengelman/shadow/compare/7.1.2...8.0.0 + + + +[Unreleased]: https://github.com/GradleUp/shadow/compare/8.1.1...HEAD +[8.1.1]: https://github.com/GradleUp/shadow/releases/tag/8.1.1 +[8.1.0]: https://github.com/GradleUp/shadow/releases/tag/8.1.0 +[8.0.0]: https://github.com/GradleUp/shadow/releases/tag/8.0.0 diff --git a/RELEASING.md b/RELEASING.md new file mode 100644 index 000000000..ced888bb6 --- /dev/null +++ b/RELEASING.md @@ -0,0 +1,40 @@ +# Releasing + +1. Update the `VERSION_NAME` in `gradle.properties` to the release version. + +2. Update the `CHANGELOG.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. From 321bbfc6fdd24b147674f4a0be5a8082703d2f9c Mon Sep 17 00:00:00 2001 From: Goooler Date: Thu, 1 Aug 2024 19:17:34 +0800 Subject: [PATCH 04/23] Reformat --- CHANGELOG.md | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b73f321a4..79acf76aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,61 +9,74 @@ - Use new file permission API from Gradle 8.3. ([#876](https://github.com/johnrengelman/shadow/pull/876)) **Fixed** - -- Fix for PropertiesFileTransformer breaks Reproducible builds in 8.1.1 ([#858](https://github.com/johnrengelman/shadow/pull/858)) +- Fix for PropertiesFileTransformer breaks Reproducible builds in + 8.1.1 ([#858](https://github.com/johnrengelman/shadow/pull/858)) ## [8.1.1] - 2023-03-21 ### What's Changed + * Replace deprecated ConfigureUtil by @Goooler in https://github.com/johnrengelman/shadow/pull/826 * Polish outdated configs by @Goooler in https://github.com/johnrengelman/shadow/pull/831 * Update plugin com.gradle.enterprise to v3.12.5 by @renovate in https://github.com/johnrengelman/shadow/pull/838 * Update dependency gradle to v8.0.2 by @renovate in https://github.com/johnrengelman/shadow/pull/844 -* fix(deps): update dependency org.codehaus.plexus:plexus-utils to v3.5.1 by @renovate in https://github.com/johnrengelman/shadow/pull/837 -* chore(deps): update dependency prismjs to v1.27.0 [security] by @renovate in https://github.com/johnrengelman/shadow/pull/828 -* Encode transformed properties files with specified Charset by @scottsteen in https://github.com/johnrengelman/shadow/pull/819 +* fix(deps): update dependency org.codehaus.plexus:plexus-utils to v3.5.1 by @renovate + in https://github.com/johnrengelman/shadow/pull/837 +* chore(deps): update dependency prismjs to v1.27.0 [security] by @renovate + in https://github.com/johnrengelman/shadow/pull/828 +* Encode transformed properties files with specified Charset by @scottsteen + in https://github.com/johnrengelman/shadow/pull/819 * chore(deps): update dependency vuepress to v1.9.9 by @renovate in https://github.com/johnrengelman/shadow/pull/842 ### New Contributors + * @renovate made their first contribution in https://github.com/johnrengelman/shadow/pull/838 * @scottsteen made their first contribution in https://github.com/johnrengelman/shadow/pull/819 **Full Changelog**: https://github.com/johnrengelman/shadow/compare/8.1.0...8.1.1 - ## [8.1.0] - 2023-02-27 ### What's Changed + * Minor cleanups by @Goooler in https://github.com/johnrengelman/shadow/pull/823 * Support config cache by @Goooler in https://github.com/johnrengelman/shadow/pull/824 -* Fix RelocatorRemapper: do not map inner class name if not changed by @Him188 in https://github.com/johnrengelman/shadow/pull/793 +* Fix RelocatorRemapper: do not map inner class name if not changed by @Him188 + in https://github.com/johnrengelman/shadow/pull/793 ### New Contributors + * @Him188 made their first contribution in https://github.com/johnrengelman/shadow/pull/793 **Full Changelog**: https://github.com/johnrengelman/shadow/compare/8.0.0...8.1.0 - ## [8.0.0] - 2023-02-25 ### What's Changed -* Fix the plugin dependency identifier in the docs by @lnhrdt in [#754](https://github.com/johnrengelman/shadow/pull/754) -* mergeGroovyExtensionModules() not working with Groovy 2.5+ by @paulk-asert in [#779](https://github.com/johnrengelman/shadow/pull/779) + +* Fix the plugin dependency identifier in the docs by @lnhrdt + in [#754](https://github.com/johnrengelman/shadow/pull/754) +* mergeGroovyExtensionModules() not working with Groovy 2.5+ by @paulk-asert + in [#779](https://github.com/johnrengelman/shadow/pull/779) * Upgrade to ASM 9.3 to support JDK 19. by @vyazelenko in https://github.com/johnrengelman/shadow/pull/770 -* Do not add a dependencies block if it's already there by @desiderantes in https://github.com/johnrengelman/shadow/pull/769 +* Do not add a dependencies block if it's already there by @desiderantes + in https://github.com/johnrengelman/shadow/pull/769 * Update README with new badge and links by @ThexXTURBOXx in https://github.com/johnrengelman/shadow/pull/743 * Fix value not set when rawString is true. by @qian0817 in https://github.com/johnrengelman/shadow/pull/765 -* Mark the Log4j2PluginsCacheFileTransformer as cacheable. by @staktrace in https://github.com/johnrengelman/shadow/pull/724 +* Mark the Log4j2PluginsCacheFileTransformer as cacheable. by @staktrace + in https://github.com/johnrengelman/shadow/pull/724 * Fix retrieval of dependencies node when publishing by @netomi in https://github.com/johnrengelman/shadow/pull/798 * Upgrade dependency ASM from `9.3` to `9.4` by @codecholeric in https://github.com/johnrengelman/shadow/pull/817 * Fix a typo of code comment in the minimizing page by @jebnix in https://github.com/johnrengelman/shadow/pull/800 -* Prefer using plugin extensions over deprecated conventions by @eskatos in https://github.com/johnrengelman/shadow/pull/821 +* Prefer using plugin extensions over deprecated conventions by @eskatos + in https://github.com/johnrengelman/shadow/pull/821 * Introduce CleanProperties by @simPod in https://github.com/johnrengelman/shadow/pull/622 * Support Gradle 8.0 by @Goooler in https://github.com/johnrengelman/shadow/pull/822 * Updated dependencies , Gradle versions and Fix Test by @ElisaMin in https://github.com/johnrengelman/shadow/pull/791 ### New Contributors + * @lnhrdt made their first contribution in https://github.com/johnrengelman/shadow/pull/754 * @paulk-asert made their first contribution in https://github.com/johnrengelman/shadow/pull/779 * @desiderantes made their first contribution in https://github.com/johnrengelman/shadow/pull/769 @@ -81,7 +94,6 @@ **Full Changelog**: https://github.com/johnrengelman/shadow/compare/7.1.2...8.0.0 - [Unreleased]: https://github.com/GradleUp/shadow/compare/8.1.1...HEAD [8.1.1]: https://github.com/GradleUp/shadow/releases/tag/8.1.1 [8.1.0]: https://github.com/GradleUp/shadow/releases/tag/8.1.0 From 7d64175aa1316748a3b1e9c801e2f8b046768bd8 Mon Sep 17 00:00:00 2001 From: Goooler Date: Thu, 1 Aug 2024 19:20:48 +0800 Subject: [PATCH 05/23] Update snapshot badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e896e8fcf..ae96cb5e1 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Read the [User Guide](https://imperceptiblethoughts.com/shadow/)! ## Current Status [![Maven Central](https://img.shields.io/maven-central/v/com.gradleup.shadow/shadow-gradle-plugin)](https://central.sonatype.com/artifact/com.gradleup.shadow/shadow-gradle-plugin) -[![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/com.gradleup.shadow/shadow-gradle-plugin?&server=https://s01.oss.sonatype.org/)](https://s01.oss.sonatype.org/content/repositories/snapshots/io/github/GradleUp/shadow/shadow-gradle-plugin) +[![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/com.gradleup.shadow/shadow-gradle-plugin?&server=https://oss.sonatype.org/)](https://oss.sonatype.org/content/repositories/snapshots/com/gradleup/shadow/) [![Plugin Portal](https://img.shields.io/gradle-plugin-portal/v/com.gradleup.shadow)](https://plugins.gradle.org/plugin/com.gradleup.shadow) [![CI](https://github.com/GradleUp/shadow/actions/workflows/ci.yml/badge.svg?branch=main&event=push)](https://github.com/GradleUp/shadow/actions/workflows/ci.yml?query=branch:main+event:push) [![License](https://img.shields.io/github/license/GradleUp/shadow.svg)](LICENSE) From 6c9ad035f7a3cc723fbc00010797b78fc416cfa3 Mon Sep 17 00:00:00 2001 From: Goooler Date: Thu, 1 Aug 2024 19:25:11 +0800 Subject: [PATCH 06/23] GH release in workflow --- .github/workflows/release.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f810f553..ca62aafe9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,9 @@ on: jobs: release: runs-on: ubuntu-latest + if: github.repository == 'GradleUp/shadow' + permissions: + contents: write steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 @@ -23,3 +26,11 @@ jobs: ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.GPG_KEY }} ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_KEY_PASSWORD }} + - name: Extract release notes + uses: ffurrer2/extract-release-notes@v2 + with: + 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 }} \ No newline at end of file From a94dafcce66d18deb62fe6fdf392a3e29dd923ec Mon Sep 17 00:00:00 2001 From: Goooler Date: Thu, 1 Aug 2024 19:27:52 +0800 Subject: [PATCH 07/23] Tweak --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79acf76aa..f6cddb331 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ **Fixed** - Fix for PropertiesFileTransformer breaks Reproducible builds in - 8.1.1 ([#858](https://github.com/johnrengelman/shadow/pull/858)) + `8.1.1`. ([#858](https://github.com/johnrengelman/shadow/pull/858)) ## [8.1.1] - 2023-03-21 From bf6b539b89d33f1626585706b0099cd9b45bdc85 Mon Sep 17 00:00:00 2001 From: Zongle Wang Date: Fri, 2 Aug 2024 08:47:44 +0800 Subject: [PATCH 08/23] Disable CC in release workflow --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ca62aafe9..258787798 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,8 @@ jobs: - uses: gradle/actions/setup-gradle@v3 with: cache-read-only: true - - run: ./gradlew publish + # Disable CC due to https://github.com/gradle/gradle/issues/22779 + - run: ./gradlew publish --no-configuration-cache env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USER }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} @@ -33,4 +34,4 @@ jobs: - name: Create release run: gh release create ${{ github.ref_name }} --notes-file RELEASE_NOTES.md env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 368b8f78a6aa95b76c24c82b9264da6a2555cf18 Mon Sep 17 00:00:00 2001 From: Goooler Date: Fri, 2 Aug 2024 11:15:10 +0800 Subject: [PATCH 09/23] Correct ORG_GRADLE_PROJECT_signingInMemoryKey --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 258787798..0df1365e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USER }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} - ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.GPG_KEY }} + 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 From 76942834bd45a1dfec6d22f815a06d999a445bcf Mon Sep 17 00:00:00 2001 From: Goooler Date: Fri, 2 Aug 2024 11:22:38 +0800 Subject: [PATCH 10/23] Remove extra signing config --- gradle.properties | 1 + gradle/publish.gradle | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index 640f0391f..8d04bd12d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,6 +10,7 @@ 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 version of Maven's Shade plugin. diff --git a/gradle/publish.gradle b/gradle/publish.gradle index 5ef836132..8ead0b32b 100644 --- a/gradle/publish.gradle +++ b/gradle/publish.gradle @@ -22,7 +22,3 @@ gradlePlugin { tasks.named('publishPlugins') { notCompatibleWithConfigurationCache("https://github.com/gradle/gradle/issues/21283") } - -mavenPublishing { - signAllPublications() -} From 4d8bc2b04425752dc17130fad7563e715439f9bd Mon Sep 17 00:00:00 2001 From: Goooler Date: Fri, 2 Aug 2024 16:24:21 +0800 Subject: [PATCH 11/23] Add publishPlugins in release workflow --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0df1365e3..a0e138e4c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,8 +21,10 @@ jobs: with: cache-read-only: true # Disable CC due to https://github.com/gradle/gradle/issues/22779 - - run: ./gradlew publish --no-configuration-cache + - run: ./gradlew publish publishPlugins --no-configuration-cache env: + GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_KEY }} + GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_SECRET }} ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USER }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }} From 9dd3748a78d6da4568d786e8043d354f104e6439 Mon Sep 17 00:00:00 2001 From: Goooler Date: Fri, 2 Aug 2024 16:39:51 +0800 Subject: [PATCH 12/23] Add gitPublishCopy in release workflow --- .github/workflows/release.yml | 4 +++- gradle/ghPages.gradle | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a0e138e4c..a87ceddb6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,10 +21,12 @@ jobs: with: cache-read-only: true # Disable CC due to https://github.com/gradle/gradle/issues/22779 - - run: ./gradlew publish publishPlugins --no-configuration-cache + - run: ./gradlew publish publishPlugins gitPublishCopy --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 }} diff --git a/gradle/ghPages.gradle b/gradle/ghPages.gradle index 1b6323166..55eab123d 100644 --- a/gradle/ghPages.gradle +++ b/gradle/ghPages.gradle @@ -2,10 +2,6 @@ import org.apache.tools.ant.filters.ReplaceTokens apply plugin: 'org.ajoberstar.git-publish' -if (project.hasProperty('githubToken')) { - System.setProperty('org.ajoberstar.grgit.auth.username', project.property('githubToken') as String) -} - gitPublish { repoUri = 'https://github.com/johnrengelman/shadow.git' From ade08d848fb878337c5c7304dcd869cb2f2a1aac Mon Sep 17 00:00:00 2001 From: Goooler Date: Fri, 2 Aug 2024 16:47:35 +0800 Subject: [PATCH 13/23] Replace more GH page info --- gradle/ghPages.gradle | 5 +---- package.json | 4 ++-- settings.gradle | 12 ------------ src/docs/.vuepress/config.js | 2 +- 4 files changed, 4 insertions(+), 19 deletions(-) diff --git a/gradle/ghPages.gradle b/gradle/ghPages.gradle index 55eab123d..a848658f1 100644 --- a/gradle/ghPages.gradle +++ b/gradle/ghPages.gradle @@ -3,15 +3,12 @@ import org.apache.tools.ant.filters.ReplaceTokens apply plugin: 'org.ajoberstar.git-publish' gitPublish { - repoUri = 'https://github.com/johnrengelman/shadow.git' + repoUri = 'https://github.com/GradleUp/shadow.git' branch = 'gh-pages' contents { from 'build/site' - into('.circleci') { - from '.circleci' - } into('api') { from project.tasks.groovydoc } diff --git a/package.json b/package.json index 14751ad48..9275a85aa 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,8 @@ "name": "shadow", "version": "1.0.0", "main": "index.js", - "repository": "git@github.com:johnrengelman/shadow.git", - "author": "John Engelman ", + "repository": "git@github.com:GradleUp/shadow.git", + "author": "GradleUp developers", "license": "MIT", "devDependencies": { "prismjs": "^1.20.0", diff --git a/settings.gradle b/settings.gradle index c49d812fd..a71392230 100644 --- a/settings.gradle +++ b/settings.gradle @@ -22,18 +22,6 @@ develocity { termsOfUseUrl = 'https://gradle.com/terms-of-service' termsOfUseAgree = 'yes' publishing.onlyIf { isCI } - if (isCI) { - tag 'CI' - if (System.env.CIRCLE_TAG) { - link 'VCS', "https://github.com/johnrengelman/shadow/tree/${System.env.CIRCLE_TAG}" - } else { - link 'VCS', "https://github.com/johnrengelman/shadow/tree/${System.env.CIRCLE_BRANCH}" - } - link 'VCS Commit', "https://github.com/johnrengelman/shadow/commit/${System.env.CIRCLE_SHA1}" - if (System.env.CI_PULL_REQUEST) { - link 'Pull Request', "${System.env.CI_PULL_REQUEST}" - } - } } } diff --git a/src/docs/.vuepress/config.js b/src/docs/.vuepress/config.js index d2741137c..2155eb9b7 100644 --- a/src/docs/.vuepress/config.js +++ b/src/docs/.vuepress/config.js @@ -3,7 +3,7 @@ module.exports = { dest: "build/site", ga: "UA-321220-4", themeConfig: { - repo: "johnrengelman/shadow", + repo: "GradleUp/shadow", editLinks: true, editLinkText: 'Help improve these docs!', logo: '/logo+type.svg', From 2fdc58d13dfc16d426b8c7fdc3d47e22b413a0d0 Mon Sep 17 00:00:00 2001 From: Goooler Date: Fri, 2 Aug 2024 16:52:18 +0800 Subject: [PATCH 14/23] Update changelog file ref --- .github/workflows/release.yml | 1 + CHANGELOG.md | 100 ---------------------------------- RELEASING.md | 2 +- src/docs/changes/README.md | 26 ++++++++- 4 files changed, 25 insertions(+), 104 deletions(-) delete mode 100644 CHANGELOG.md diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a87ceddb6..1c2248ddb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,6 +34,7 @@ jobs: - 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 diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index f6cddb331..000000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,100 +0,0 @@ -# Change Log - -## [Unreleased] - -**Changed** - -- Bump the min Gradle requirement from `8.0.0` to `8.3`. ([#876](https://github.com/johnrengelman/shadow/pull/876)) -- Support Java 21. ([#876](https://github.com/johnrengelman/shadow/pull/876)) -- Use new file permission API from Gradle 8.3. ([#876](https://github.com/johnrengelman/shadow/pull/876)) - -**Fixed** - -- Fix for PropertiesFileTransformer breaks Reproducible builds in - `8.1.1`. ([#858](https://github.com/johnrengelman/shadow/pull/858)) - -## [8.1.1] - 2023-03-21 - -### What's Changed - -* Replace deprecated ConfigureUtil by @Goooler in https://github.com/johnrengelman/shadow/pull/826 -* Polish outdated configs by @Goooler in https://github.com/johnrengelman/shadow/pull/831 -* Update plugin com.gradle.enterprise to v3.12.5 by @renovate in https://github.com/johnrengelman/shadow/pull/838 -* Update dependency gradle to v8.0.2 by @renovate in https://github.com/johnrengelman/shadow/pull/844 -* fix(deps): update dependency org.codehaus.plexus:plexus-utils to v3.5.1 by @renovate - in https://github.com/johnrengelman/shadow/pull/837 -* chore(deps): update dependency prismjs to v1.27.0 [security] by @renovate - in https://github.com/johnrengelman/shadow/pull/828 -* Encode transformed properties files with specified Charset by @scottsteen - in https://github.com/johnrengelman/shadow/pull/819 -* chore(deps): update dependency vuepress to v1.9.9 by @renovate in https://github.com/johnrengelman/shadow/pull/842 - -### New Contributors - -* @renovate made their first contribution in https://github.com/johnrengelman/shadow/pull/838 -* @scottsteen made their first contribution in https://github.com/johnrengelman/shadow/pull/819 - -**Full Changelog**: https://github.com/johnrengelman/shadow/compare/8.1.0...8.1.1 - -## [8.1.0] - 2023-02-27 - -### What's Changed - -* Minor cleanups by @Goooler in https://github.com/johnrengelman/shadow/pull/823 -* Support config cache by @Goooler in https://github.com/johnrengelman/shadow/pull/824 -* Fix RelocatorRemapper: do not map inner class name if not changed by @Him188 - in https://github.com/johnrengelman/shadow/pull/793 - -### New Contributors - -* @Him188 made their first contribution in https://github.com/johnrengelman/shadow/pull/793 - -**Full Changelog**: https://github.com/johnrengelman/shadow/compare/8.0.0...8.1.0 - -## [8.0.0] - 2023-02-25 - -### What's Changed - -* Fix the plugin dependency identifier in the docs by @lnhrdt - in [#754](https://github.com/johnrengelman/shadow/pull/754) -* mergeGroovyExtensionModules() not working with Groovy 2.5+ by @paulk-asert - in [#779](https://github.com/johnrengelman/shadow/pull/779) -* Upgrade to ASM 9.3 to support JDK 19. by @vyazelenko in https://github.com/johnrengelman/shadow/pull/770 -* Do not add a dependencies block if it's already there by @desiderantes - in https://github.com/johnrengelman/shadow/pull/769 -* Update README with new badge and links by @ThexXTURBOXx in https://github.com/johnrengelman/shadow/pull/743 -* Fix value not set when rawString is true. by @qian0817 in https://github.com/johnrengelman/shadow/pull/765 -* Mark the Log4j2PluginsCacheFileTransformer as cacheable. by @staktrace - in https://github.com/johnrengelman/shadow/pull/724 -* Fix retrieval of dependencies node when publishing by @netomi in https://github.com/johnrengelman/shadow/pull/798 -* Upgrade dependency ASM from `9.3` to `9.4` by @codecholeric in https://github.com/johnrengelman/shadow/pull/817 -* Fix a typo of code comment in the minimizing page by @jebnix in https://github.com/johnrengelman/shadow/pull/800 -* Prefer using plugin extensions over deprecated conventions by @eskatos - in https://github.com/johnrengelman/shadow/pull/821 -* Introduce CleanProperties by @simPod in https://github.com/johnrengelman/shadow/pull/622 -* Support Gradle 8.0 by @Goooler in https://github.com/johnrengelman/shadow/pull/822 -* Updated dependencies , Gradle versions and Fix Test by @ElisaMin in https://github.com/johnrengelman/shadow/pull/791 - -### New Contributors - -* @lnhrdt made their first contribution in https://github.com/johnrengelman/shadow/pull/754 -* @paulk-asert made their first contribution in https://github.com/johnrengelman/shadow/pull/779 -* @desiderantes made their first contribution in https://github.com/johnrengelman/shadow/pull/769 -* @ThexXTURBOXx made their first contribution in https://github.com/johnrengelman/shadow/pull/743 -* @qian0817 made their first contribution in https://github.com/johnrengelman/shadow/pull/765 -* @staktrace made their first contribution in https://github.com/johnrengelman/shadow/pull/724 -* @netomi made their first contribution in https://github.com/johnrengelman/shadow/pull/798 -* @codecholeric made their first contribution in https://github.com/johnrengelman/shadow/pull/817 -* @jebnix made their first contribution in https://github.com/johnrengelman/shadow/pull/800 -* @eskatos made their first contribution in https://github.com/johnrengelman/shadow/pull/821 -* @simPod made their first contribution in https://github.com/johnrengelman/shadow/pull/622 -* @Goooler made their first contribution in https://github.com/johnrengelman/shadow/pull/822 -* @ElisaMin made their first contribution in https://github.com/johnrengelman/shadow/pull/791 - -**Full Changelog**: https://github.com/johnrengelman/shadow/compare/7.1.2...8.0.0 - - -[Unreleased]: https://github.com/GradleUp/shadow/compare/8.1.1...HEAD -[8.1.1]: https://github.com/GradleUp/shadow/releases/tag/8.1.1 -[8.1.0]: https://github.com/GradleUp/shadow/releases/tag/8.1.0 -[8.0.0]: https://github.com/GradleUp/shadow/releases/tag/8.0.0 diff --git a/RELEASING.md b/RELEASING.md index ced888bb6..8cd3e99a3 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -2,7 +2,7 @@ 1. Update the `VERSION_NAME` in `gradle.properties` to the release version. -2. Update the `CHANGELOG.md`: +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. diff --git a/src/docs/changes/README.md b/src/docs/changes/README.md index 29fcfbd1d..47e5dcaa2 100644 --- a/src/docs/changes/README.md +++ b/src/docs/changes/README.md @@ -1,12 +1,25 @@ # Change Log -## v8.1.1 (2023-03-20) +## [Unreleased] + +**Changed** + +- Bump the min Gradle requirement from `8.0.0` to `8.3`. ([#876](https://github.com/johnrengelman/shadow/pull/876)) +- Support Java 21. ([#876](https://github.com/johnrengelman/shadow/pull/876)) +- Use new file permission API from Gradle 8.3. ([#876](https://github.com/johnrengelman/shadow/pull/876)) + +**Fixed** + +- Fix for PropertiesFileTransformer breaks Reproducible builds in + `8.1.1`. ([#858](https://github.com/johnrengelman/shadow/pull/858)) + +## [v8.1.1] (2023-03-20) **NOTE: ** As of this version, the Github repository has migrated to the `main` branch as the default branch for releases. [Release Notes](https://github.com/johnrengelman/shadow/releases/tag/8.1.1) -## v8.1.0 (2023-02-26) +## [v8.1.0] (2023-02-26) **BREAKING CHANGE:** Due to adoption of the latest version of the `com.gradle.plugin-publish` plugin, the maven GAV coordinates have changed as of this version. The correct coordinates now align with the plugin ID itself: `group=com.github.johnrengelman, artifact=shadow, version=`. @@ -17,7 +30,7 @@ Instead, use the `enableRelocation = true` and `relocationPrefix = "]` syntax [#536](https://github.com/johnrengelman/shadow/pull/536) +- Fix Gradle 7 deprecation warnings [#530](https://github.com/GradleUp/shadow/issues/530) +- Fix to generated start script to correctly use `optsEnvironmentVar`[#518](https://github.com/GradleUp/shadow/commit/7e99c02957773205c3babdd23f4bbf883330c975) +- [Yahor Berdnikau](https://github.com/Tapchicoma) - Fix issues with Gradle API being embedded into published JAR [#527](https://github.com/GradleUp/shadow/issues/527) +- [Dmitry Vyazelenko](https://github.com/vyazelenko) - ASM updates to support latest Java versions [#549](https://github.com/GradleUp/shadow/pull/549) +- [ejjcase](https://github.com/ejjcase) - Support exposing shadowed project dependencies via POM [#543](https://github.com/GradleUp/shadow/pull/543) +- [Artem Chubaryan](https://github.com/Armaxis) - Performance optimizations [#535](https://github.com/GradleUp/shadow/pull/535) +- [Trask Stalnaker](https://github.com/trask) - Fix exclude patterns on Windows [#539](https://github.com/GradleUp/shadow/pull/539) +- [Artem Chubaryan](https://github.com/Armaxis) - Allow usage of true regex patterns for include/exclude by the `%regex[]` syntax [#536](https://github.com/GradleUp/shadow/pull/536) ## v5.2.0 (2019-11-10) -- [Inez Korczyński](https://github.com/inez) - Performance optimization when evaluating relocation paths [#507](https://github.com/johnrengelman/shadow/pull/507) -- [Jeff Adler](https://github.com/jeffalder) - Fix remapping issues with multi release JARS [#526](https://github.com/johnrengelman/shadow/pull/526) -- [Gary Hale](https://github.com/ghale) - Implement support for Gradle build cache [#524](https://github.com/johnrengelman/shadow/pull/524) -- [Roberto Perez Alcolea](https://github.com/rpalcolea) - Gradle 6.x support [#517](https://github.com/johnrengelman/shadow/pull/517) -- [Konstantin Gribov](https://github.com/grossws) - Return support for 5.0 for convention mapping [#502](https://github.com/johnrengelman/shadow/pull/502) -- [Lai Jiang](https://github.com/jianglai) - Documentation updates on how to reconfigure `classifier` and `version` [#512](https://github.com/johnrengelman/shadow/pull/512) +- [Inez Korczyński](https://github.com/inez) - Performance optimization when evaluating relocation paths [#507](https://github.com/GradleUp/shadow/pull/507) +- [Jeff Adler](https://github.com/jeffalder) - Fix remapping issues with multi release JARS [#526](https://github.com/GradleUp/shadow/pull/526) +- [Gary Hale](https://github.com/ghale) - Implement support for Gradle build cache [#524](https://github.com/GradleUp/shadow/pull/524) +- [Roberto Perez Alcolea](https://github.com/rpalcolea) - Gradle 6.x support [#517](https://github.com/GradleUp/shadow/pull/517) +- [Konstantin Gribov](https://github.com/grossws) - Return support for 5.0 for convention mapping [#502](https://github.com/GradleUp/shadow/pull/502) +- [Lai Jiang](https://github.com/jianglai) - Documentation updates on how to reconfigure `classifier` and `version` [#512](https://github.com/GradleUp/shadow/pull/512) ## v5.1.0 (2019-06-29) -- [Chris Rankin](https://github.com/chrisr3) - Add `ManifestAppenderTransformer` to support appending to Jar manifest [#474](https://github.com/johnrengelman/shadow/pull/474) -- [Min-Ken Lai](https://github.com/minkenlai) - Additional escaping fixes in start script [#487](https://github.com/johnrengelman/shadow/pull/487) -- [Alan D. Cabrera](https://github.com/maguro) - Automatically remove `gradleApi` from `compile` scope in the presence of `shadow` [#459](https://github.com/johnrengelman/shadow/pull/459) -- [Christian Stein](https://github.com/sormuras) - Do not initialize `UnusedTracker` when not requested [#480](https://github.com/johnrengelman/shadow/pull/480), [#479](https://github.com/johnrengelman/shadow/issues/479) -- [Attila Kelemen](https://github.com/kelemen) - Fix `NullPointerException` when using java minimization and api project dependency with version [#477](https://github.com/johnrengelman/shadow/pull/477) +- [Chris Rankin](https://github.com/chrisr3) - Add `ManifestAppenderTransformer` to support appending to Jar manifest [#474](https://github.com/GradleUp/shadow/pull/474) +- [Min-Ken Lai](https://github.com/minkenlai) - Additional escaping fixes in start script [#487](https://github.com/GradleUp/shadow/pull/487) +- [Alan D. Cabrera](https://github.com/maguro) - Automatically remove `gradleApi` from `compile` scope in the presence of `shadow` [#459](https://github.com/GradleUp/shadow/pull/459) +- [Christian Stein](https://github.com/sormuras) - Do not initialize `UnusedTracker` when not requested [#480](https://github.com/GradleUp/shadow/pull/480), [#479](https://github.com/GradleUp/shadow/issues/479) +- [Attila Kelemen](https://github.com/kelemen) - Fix `NullPointerException` when using java minimization and api project dependency with version [#477](https://github.com/GradleUp/shadow/pull/477) ## v5.0.0 (2019-02-28) - Require Gradle 5.0+ - Fix issue with build classifier `-all` being dropped in Gradle 5.1+ -- [Roberto Perez Alcolea](https://github.com/rpalcolea) - Exclude project dependencies from minimization [#420](https://github.com/johnrengelman/shadow/pull/420) -- [Matt King](https://github.com/kyrrigle), [Richard Marbach](https://github.com/RichardMarbach) - Fix escaping in start script [#453](https://github.com/johnrengelman/shadow/pull/454), [#455](https://github.com/johnrengelman/shadow/pull/455) -- [Dennis Schumann](https://github.com/Hillkorn) - Fix Gradle 5.2 incompatibility with `ShadowJar.getMetaClass()` [#456](https://github.com/johnrengelman/shadow/pull/456) -- [Brane F. Gračnar](https://github.com/bfg) - Fix compatibility with `com.palantir.docker` [#460](https://github.com/johnrengelman/shadow/pull/460) +- [Roberto Perez Alcolea](https://github.com/rpalcolea) - Exclude project dependencies from minimization [#420](https://github.com/GradleUp/shadow/pull/420) +- [Matt King](https://github.com/kyrrigle), [Richard Marbach](https://github.com/RichardMarbach) - Fix escaping in start script [#453](https://github.com/GradleUp/shadow/pull/454), [#455](https://github.com/GradleUp/shadow/pull/455) +- [Dennis Schumann](https://github.com/Hillkorn) - Fix Gradle 5.2 incompatibility with `ShadowJar.getMetaClass()` [#456](https://github.com/GradleUp/shadow/pull/456) +- [Brane F. Gračnar](https://github.com/bfg) - Fix compatibility with `com.palantir.docker` [#460](https://github.com/GradleUp/shadow/pull/460) ## v4.0.4 (2019-01-19) - When using `shadow`, `application`, and `maven` plugins together, remove `shadowDistZip` and `shadowDistTar` from `configurations.archives` so they are not published or installed by default with the `uploadArchives` or `install` - tasks. [#347](https://github.com/johnrengelman/shadow/issues/347) -- [James Nelson](https://github.com/JamesXNelson) - Fix `null` path when using Jar minimization and Gradle's `api` configuration. [#424](https://github.com/johnrengelman/shadow/issues/424), [#425](https://github.com/johnrengelman/shadow/issues/425) + tasks. [#347](https://github.com/GradleUp/shadow/issues/347) +- [James Nelson](https://github.com/JamesXNelson) - Fix `null` path when using Jar minimization and Gradle's `api` configuration. [#424](https://github.com/GradleUp/shadow/issues/424), [#425](https://github.com/GradleUp/shadow/issues/425) ## v4.0.3 (2018-11-21) -- [Mark Vieira](https://github.com/mark-vieira) - Don't leak plugin classes to Gradle's Spec cache [#430](https://github.com/johnrengelman/shadow/pull/430) +- [Mark Vieira](https://github.com/mark-vieira) - Don't leak plugin classes to Gradle's Spec cache [#430](https://github.com/GradleUp/shadow/pull/430) ## v4.0.2 (2018-10-27) -- [Petar Petrov](https://github.com/petarov) - Update to ASM 7.0-beta and jdependency 2.1.1 to support Java 11, [#415](https://github.com/johnrengelman/shadow/pull/415) -- [Victor Tso](https://github.com/roxchkplusony) - Ensure input streams are closed, [#411](https://github.com/johnrengelman/shadow/pull/411) -- [Osip Fatkullin](https://github.com/osipxd) - Exclude `api` configuration from minimization, [#405](https://github.com/johnrengelman/shadow/pull/405) +- [Petar Petrov](https://github.com/petarov) - Update to ASM 7.0-beta and jdependency 2.1.1 to support Java 11, [#415](https://github.com/GradleUp/shadow/pull/415) +- [Victor Tso](https://github.com/roxchkplusony) - Ensure input streams are closed, [#411](https://github.com/GradleUp/shadow/pull/411) +- [Osip Fatkullin](https://github.com/osipxd) - Exclude `api` configuration from minimization, [#405](https://github.com/GradleUp/shadow/pull/405) ## v4.0.1 (2018-09-30) - **Breaking Change!** `Transform.modifyOutputStream(ZipOutputStream os)` to `Transform.modifyOutputStream(ZipOutputStream jos, boolean preserveFileTimestamps)`. Typically breaking changes are reserved for major version releases, but this change was necessary for `preserverFileTimestamps` (introduced in v4.0.0) to work correctly - in the presence of transformers, [#404](https://github.com/johnrengelman/shadow/issues/404) -- Fix regression in support Java 10+ during relocation, [#403](https://github.com/johnrengelman/shadow/issues/403) + in the presence of transformers, [#404](https://github.com/GradleUp/shadow/issues/404) +- Fix regression in support Java 10+ during relocation, [#403](https://github.com/GradleUp/shadow/issues/403) ## v4.0.0 (2018-09-25) @@ -172,31 +172,31 @@ Instead, use the `enableRelocation = true` and `relocationPrefix = " Date: Fri, 2 Aug 2024 16:56:17 +0800 Subject: [PATCH 16/23] Update contributors ref --- src/docs/about/README.md | 60 ++-------------------------------------- 1 file changed, 3 insertions(+), 57 deletions(-) diff --git a/src/docs/about/README.md b/src/docs/about/README.md index 3b680f056..cbcdfedc7 100644 --- a/src/docs/about/README.md +++ b/src/docs/about/README.md @@ -22,60 +22,6 @@ so Shadow was published there. ## Contributors -* [Alan D. Cabrera](https://github.com/maguro) -* [Andres Almiray](https://github.com/aalmiray) -* [Artem Chubaryan](https://github.com/Armaxis) -* [Attila Kelemen](https://github.com/kelemen) -* [Ben Adazza](https://github.com/ben-adazza) -* [Bernie Schelberg](https://github.com/bschelberg) -* [Brandon Kearby](https://github.com/brandonkearby) -* [Brane F. Gračnar](https://github.com/bfg) -* [Caleb Larsen](https://github.com/MuffinTheMan) -* [Charlie Knudsen](https://github.com/charliek) -* [Chris Cowan](https://github.com/Macil) -* [Chris Rankin](https://github.com/chrisr3) -* [Christian Stein](https://github.com/sormuras) -* [Daniel Oakey](https://github.com/danieloakey) -* [debanne](https://github.com/debanne) -* [Dennis Schumann](https://github.com/Hillkorn) -* [Dmitry Vyazelenko](https://github.com/vyazelenko) -* [ejjcase](https://github.com/ejjcase) -* [Ethan Hall](https://github.com/ethankhall) -* [Fedor Korotkov](https://github.com/fkorotkov) -* [Felipe Lima](https://github.com/felipecsl) -* [Gary Hale](https://github.com/ghale) -* [Haw-Bin Chai](https://github.com/hbchai) -* [Helder Pereira](https://github.com/helfper) -* [Inez Korczyński](https://github.com/inez) -* [James Nelson](https://github.com/JamesXNelson) -* [Jeff Adler](https://github.com/jeffalder) -* [John Szakmeister](https://github.com/jszakmeister) -* [Konstantin Gribov](https://github.com/grossws) -* [Lai Jiang](https://github.com/jianglai) -* [Marc Philipp](https://github.com/marcphilipp) -* [Mark Vieira](https://github.com/mark-vieira) -* [Marke Vieira](https://github.com/mark-vieira) -* [Martin Sadowski](https://github.com/ttsiebzehntt) -* [Matt Hurne](https://github.com/mhurne) -* [Matt King](https://github.com/kyrrigle) -* [Matthew Haughton](https://github.com/3flex) -* [Maximilian Müller](https://github.com/maxm123) -* [Minecrell](https://github.com/Minecrell) -* [Min-Ken Lai](https://github.com/minkenlai) -* [Nicolas Humblot](https://github.com/nhumblot) -* [Osip Fatkullin](https://github.com/osipxd) -* [Paul N. Baker](https://github.com/paul-nelson-baker) -* [Petar Petrov](https://github.com/petarov) -* [Piotr Kubowicz](https://github.com/pkubowicz) -* [Richard Marbach](https://github.com/RichardMarbach) -* [Rob Spieldenner](https://github.com/rspieldenner) -* [Roberto Perez Alcolea](https://github.com/rpalcolea) -* [Schalk W. Cronjé](https://github.com/ysb33r) -* [Scott Newson](https://github.com/sgnewson) -* [Serban Iordache](https://github.com/siordache) -* [Sergey Tselovalnikov](https://github.com/SerCeMan) -* [Tim Yates](https://github.com/timyates) -* [Trask Stalnaker](https://github.com/trask) -* [Tyler Benson](https://github.com/tylerbenson) -* [Victor Tso](https://github.com/roxchkplusony) -* [Yahor Berdnikau](https://github.com/Tapchicoma) + + + \ No newline at end of file From 214515c7fd4dd3d46fac9b6b669cf7f49a2b8d3f Mon Sep 17 00:00:00 2001 From: Goooler Date: Fri, 2 Aug 2024 17:04:17 +0800 Subject: [PATCH 17/23] Note coordinate change --- src/docs/changes/README.md | 6 ++++++ src/docs/getting-started/README.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/docs/changes/README.md b/src/docs/changes/README.md index 2321c5b2b..cc3718077 100644 --- a/src/docs/changes/README.md +++ b/src/docs/changes/README.md @@ -4,6 +4,10 @@ **Changed** +- **BREAKING CHANGE:** the GitHub has been transferred from `johnrengelman/shadow` to `GradleUp/shadow`, you can view + more details in [GradleUp/shadow/issues/908](https://github.com/GradleUp/shadow/issues/908). + We also update the plugin ID from `com.github.johnrengelman.shadow` to `com.gradleup.shadow`, and the + Maven coordinate from `com.github.johnrengelman:shadow` to `com.gradleup.shadow:shadow-gradle-plugin`. - Bump the min Gradle requirement from `8.0.0` to `8.3`. ([#876](https://github.com/GradleUp/shadow/pull/876)) - Support Java 21. ([#876](https://github.com/GradleUp/shadow/pull/876)) - Use new file permission API from Gradle 8.3. ([#876](https://github.com/GradleUp/shadow/pull/876)) @@ -13,6 +17,7 @@ - Fix for PropertiesFileTransformer breaks Reproducible builds in `8.1.1`. ([#858](https://github.com/GradleUp/shadow/pull/858)) + ## [v8.1.1] (2023-03-20) **NOTE: ** As of this version, the Github repository has migrated to the `main` branch as the default branch for releases. @@ -30,6 +35,7 @@ Instead, use the `enableRelocation = true` and `relocationPrefix = " Date: Sun, 4 Aug 2024 09:29:53 +0800 Subject: [PATCH 18/23] Update gradle/actions action to v4 --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4319417ed..00dbb0009 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: with: distribution: 'zulu' java-version: 21 - - uses: gradle/actions/setup-gradle@v3 + - uses: gradle/actions/setup-gradle@v4 with: cache-read-only: true # Disable CC due to https://github.com/gradle/gradle/issues/22779 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1c2248ddb..847d18ddd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: with: distribution: 'zulu' java-version: 21 - - uses: gradle/actions/setup-gradle@v3 + - uses: gradle/actions/setup-gradle@v4 with: cache-read-only: true # Disable CC due to https://github.com/gradle/gradle/issues/22779 From 35859007f63871a323a7bf08b8469f6111a10b78 Mon Sep 17 00:00:00 2001 From: Goooler Date: Mon, 5 Aug 2024 09:07:22 +0800 Subject: [PATCH 19/23] Add release task back and tweaks --- .github/workflows/release.yml | 2 +- gradle.properties | 2 +- gradle/publish.gradle | 19 ++++++++++++++----- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 847d18ddd..6b5383436 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: with: cache-read-only: true # Disable CC due to https://github.com/gradle/gradle/issues/22779 - - run: ./gradlew publish publishPlugins gitPublishCopy --no-configuration-cache + - run: ./gradlew release --no-configuration-cache env: GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_KEY }} GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_SECRET }} diff --git a/gradle.properties b/gradle.properties index 8d04bd12d..b34884eca 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,7 +13,7 @@ SONATYPE_HOST=DEFAULT RELEASE_SIGNING_ENABLED=true POM_NAME=Shadow Gradle Plugin -POM_DESCRIPTION=Gradle version of Maven's Shade 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 diff --git a/gradle/publish.gradle b/gradle/publish.gradle index 8ead0b32b..4a4f6fe6b 100644 --- a/gradle/publish.gradle +++ b/gradle/publish.gradle @@ -1,8 +1,8 @@ apply plugin: "com.gradle.plugin-publish" apply plugin: "com.vanniktech.maven.publish" -group = providers.gradleProperty("GROUP") -version = providers.gradleProperty("VERSION_NAME") +group = providers.gradleProperty("GROUP").get() +version = providers.gradleProperty("VERSION_NAME").get() gradlePlugin { website = providers.gradleProperty("POM_URL") @@ -12,13 +12,22 @@ gradlePlugin { shadowPlugin { id = 'com.gradleup.shadow' implementationClass = 'com.github.jengelman.gradle.plugins.shadow.ShadowPlugin' - displayName = providers.gradleProperty("POM_NAME").orNull - description = providers.gradleProperty("POM_DESCRIPTION").orNull - tags.set(['onejar', 'shade', 'fatjar', 'uberjar']) + displayName = providers.gradleProperty("POM_NAME").get() + description = providers.gradleProperty("POM_DESCRIPTION").get() + tags = ['onejar', 'shade', 'fatjar', 'uberjar'] } } } tasks.named('publishPlugins') { + doFirst { + if (version.endsWith("SNAPSHOT")) { + throw new GradleException('Cannot publish SNAPSHOT versions to Plugin Portal!') + } + } notCompatibleWithConfigurationCache("https://github.com/gradle/gradle/issues/21283") } + +tasks.register('release') { + dependsOn tasks.named('publish'), tasks.named('publishPlugins'), tasks.named('gitPublishPush') +} From b3ce1927c7cc1d1c5bc0847d086e39d749b96108 Mon Sep 17 00:00:00 2001 From: Goooler Date: Mon, 5 Aug 2024 09:34:33 +0800 Subject: [PATCH 20/23] Note 8.3 requirement in README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ae96cb5e1..0cdb7df86 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ Read the [User Guide](https://imperceptiblethoughts.com/shadow/)! | 5.x | 5.2.0 - 6.0.0 | | 6.x | 5.2.0 - 6.1.0 | | 7.x | 7.0.0+ | -| 8.x | 8.0.0+ | +| 8.0 - 8.2.x | 8.0.0 - 8.1.1 | +| 8.3+ | 8.3.0+ | **NOTE**: Shadow v5.+ is compatible with Gradle 5.x - 6.x and Java 7 - 15 _only_, v6.1.0+ requires Java 8+. From ff01bdee93d23bab376c041b89ec936d61fb9ac5 Mon Sep 17 00:00:00 2001 From: Goooler Date: Mon, 5 Aug 2024 10:09:03 +0800 Subject: [PATCH 21/23] Note snapshot usage --- src/docs/getting-started/README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/docs/getting-started/README.md b/src/docs/getting-started/README.md index e62766f2d..7c5726f5b 100644 --- a/src/docs/getting-started/README.md +++ b/src/docs/getting-started/README.md @@ -23,6 +23,30 @@ apply plugin: 'com.gradleup.shadow' apply plugin: 'java' ``` +
+Snapshots of the development version are available in Sonatype's snapshots repository. +

+ +```groovy no-run +buildscript { + repositories { + mavenCentral() + maven { + url 'https://oss.sonatype.org/content/repositories/snapshots/' + } + } + dependencies { + classpath 'com.gradleup.shadow:shadow-gradle-plugin:@snapshot-version@' + } +} + +apply plugin: 'com.gradleup.shadow' +apply plugin: 'java' +``` + +

+
+ **NOTE:** The correct maven coordinates for each version of Shadow can be found by referencing the Gradle Plugin documentation [here](https://plugins.gradle.org/plugin/com.gradleup.shadow). Shadow is a reactive plugin. From 38c783ccb60f155423207603abd4591df1689e13 Mon Sep 17 00:00:00 2001 From: Alex Nordlund Date: Tue, 6 Aug 2024 15:02:37 +0200 Subject: [PATCH 22/23] Add missing dependency to `yarn_build` The rule-generated `yarn_` tasks only get the dependency on the YarnInstallTask if they start with `yarn_run_` So to make sure `yarn_build` works I've added the dependency manually --- gradle/vuepress.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/gradle/vuepress.gradle b/gradle/vuepress.gradle index da01b2f1c..58df23d9f 100644 --- a/gradle/vuepress.gradle +++ b/gradle/vuepress.gradle @@ -7,4 +7,5 @@ node { tasks.named('yarn_build') { inputs.files project.fileTree('src/docs') outputs.dir project.file('build/site') + dependsOn("yarn") } \ No newline at end of file From 15780f5c5f2f295640f8724261d94b3844c56106 Mon Sep 17 00:00:00 2001 From: Goooler Date: Wed, 7 Aug 2024 08:16:18 +0800 Subject: [PATCH 23/23] Use node 16 in release workflow --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b5383436..593964c7b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,6 +20,10 @@ jobs: - 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: