Skip to content

build: commit a Gradle wrapper for the JetBrains plugin - #61

Merged
simontreanor merged 2 commits into
mainfrom
build/jetbrains-gradle-wrapper
Aug 2, 2026
Merged

build: commit a Gradle wrapper for the JetBrains plugin#61
simontreanor merged 2 commits into
mainfrom
build/jetbrains-gradle-wrapper

Conversation

@simontreanor

Copy link
Copy Markdown
Owner

Gradle is not installed on the dev machine and is not on PATH in either shell, yet editors/jetbrains/ had no wrapper. Every release that needed gradle publishPlugin therefore had to re-acquire Gradle first. That happened on 0.4.0 and again on 0.5.0, and both times it read as "the JetBrains publish is blocked" when only the launcher was missing.

~/.gradle/caches/8.12 and ~/.gradle/daemon/8.12 show Gradle 8.12 has run against this project before, so the wrapper pins that same version. It fetches the distribution on first use — verified here by running ./gradlew --version from a clean state and watching it download and report 8.12.

0.5.0 is published: ./gradlew publishPlugin succeeded against the Marketplace. The plugins API still lists 0.4.0 as the newest approved version, because uploads wait on JetBrains moderation. That distinction is now written into RELEASING.md and the ledger, since it looks identical to a failed publish.

Changes:

  • editors/jetbrains/gradlew, gradlew.bat, gradle/wrapper/ committed (wrapper 8.12; gradlew mode 100755).
  • .gitattributes pins gradlew to LF and gradlew.bat to CRLF, and marks the wrapper jar binary. Both blobs are already correct; the rules keep them correct regardless of a contributor's core.autocrlf.
  • RELEASING.md and editors/jetbrains/README.md say ./gradlew, and RELEASING says explicitly not to reach for a bare gradle, with the reason.
  • The ROADMAP ledger records the 0.5.0 upload, the moderation lag, and that the toolchain blocker is gone.

Gradle is not installed on the dev machine and never has been on PATH, but
`editors/jetbrains/` had no wrapper, so every release that needed
`gradle publishPlugin` had to re-acquire Gradle first. That cost time on 0.4.0
and again on 0.5.0, each time looking like the publish was blocked when it was
only the launcher that was missing.

The wrapper pins 8.12, the version the project has always built with, and
fetches it on first use. RELEASING.md and the plugin README now say
`./gradlew`, and RELEASING says why a bare `gradle` is the wrong reach.

Also records in the ledger that the JetBrains upload waits on moderation, so
the plugins API reporting the previous version is not a failed publish.
A committed `gradlew` with CRLF fails on Linux and macOS with a bad-interpreter
error, and the `.bat` wants the reverse. Both are correct in the index today;
these rules keep them that way regardless of a contributor's core.autocrlf, and
mark the wrapper jar binary so it is never line-ending converted.
@simontreanor
simontreanor merged commit 95b685e into main Aug 2, 2026
11 checks passed
@simontreanor
simontreanor deleted the build/jetbrains-gradle-wrapper branch August 2, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant