Skip to content

Gradle scripts changes to enable plugin signing#9

Open
ikopylov wants to merge 1 commit intomainfrom
add-possibility-to-sign-plugin-files
Open

Gradle scripts changes to enable plugin signing#9
ikopylov wants to merge 1 commit intomainfrom
add-possibility-to-sign-plugin-files

Conversation

@ikopylov
Copy link
Collaborator

@ikopylov ikopylov commented Feb 5, 2026

Splits the buildPlugin Gradle task into a two-phase build process to support external code signing of plugin artifacts
(DLLs and JARs) between the build stages.

New Gradle tasks:

  • preparePluginForSigning - compiles all artifacts, copies them to a staging directory (build/plugin-staging/), and
    generates a files-to-sign.txt manifest listing files that need signing (our own JARs and DLLs, excluding third-party
    dependencies)
  • assemblePlugin - packages the staged (optionally signed) files into the final plugin ZIP and creates the NuGet
    package

How it works:

  • For local development, ./gradlew buildPlugin continues to work as before - it runs both phases sequentially with no
    signing step in between
  • For CI/CD with signing, the build can be split into separate Gradle invocations with an external signing step in the
    middle:
    ./gradlew preparePluginForSigning → sign server signs files → ./gradlew assemblePlugin

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.

3 participants