GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Publish Processing Gradle plugins by Stefterv · Pull Request #1405 · processing/processing4

Publish Processing Gradle plugins #1405

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.

Sign up for GitHub

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
catilac merged 6 commits into processing:main from Stefterv:gradle-publishing
Feb 17, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

Publish Processing Gradle plugins #1405

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
6 commits
Select commit Hold shift + click to select a range
f46bd75
Publish Processing Gradle plugin
Stefterv Feb 3, 2026
0cf146a
Publish plugins in release workflow
Stefterv Feb 7, 2026
cc780cf
Update build.gradle.kts
Stefterv Feb 7, 2026
8b0cdaf
Set project.group system property for tests
Stefterv Feb 7, 2026
5fb43b6
Update build.gradle.kts
Stefterv Feb 7, 2026
a801699
Merge branch 'main' into gradle-publishing
Stefterv Feb 11, 2026
File filter
Filter by extension


Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

There are no files selected for viewing

37 changes: 37 additions & 0 deletions 37 .github/workflows/release.yml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,43 @@ jobs:

ORG_GRADLE_PROJECT_version: ${{ needs.version.outputs.version }}
ORG_GRADLE_PROJECT_group: ${{ vars.GRADLE_GROUP }}

publish-gradle:
name: Publish Processing Plugins to Gradle Plugin Portal
runs-on: ubuntu-latest
needs: version
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Processing
uses: ./.github/actions/setup

- name: Publish plugins to Gradle Plugin Portal
run: ./gradlew publishPlugins
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}

ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_IN_MEMORY_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_IN_MEMORY_KEY_PASSWORD }}

ORG_GRADLE_PROJECT_version: ${{ needs.version.outputs.version }}
ORG_GRADLE_PROJECT_group: ${{ vars.GRADLE_GROUP }}

- name: Publish internal plugins to Gradle Plugin Portal
run: ./gradlew -c gradle/plugins/settings.gradle.kts publishPlugins
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}

ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_IN_MEMORY_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_IN_MEMORY_KEY_PASSWORD }}

ORG_GRADLE_PROJECT_version: ${{ needs.version.outputs.version }}
ORG_GRADLE_PROJECT_group: ${{ vars.GRADLE_GROUP }}
ORG_GRADLE_PROJECT_publishingGroup: ${{ vars.GRADLE_GROUP }}

release-windows:
name: (windows/${{ matrix.arch }}) Create Processing Release
runs-on: ${{ matrix.os }}
Expand Down
9 changes: 7 additions & 2 deletions 9 gradle/plugins/library/build.gradle.kts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
plugins {
`java-gradle-plugin`
id("com.gradle.plugin-publish") version "2.0.0"
kotlin("jvm") version "2.2.20"
}

gradlePlugin {
website = "https://processing.org/"
vcsUrl = "https://github.com/processing/processing4"
plugins {
create("processing.library") {
id = "org.processing.library"
id = project.properties.getOrElse("publishingGroup", { "org.processing" }).toString() + ".library"
displayName = "Processing Library Plugin"
description = "Gradle plugin for building Processing libraries"
tags = listOf("processing", "library", "dsl")
implementationClass = "ProcessingLibraryPlugin"
}
}
Expand Down
15 changes: 13 additions & 2 deletions 15 java/gradle/build.gradle.kts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,20 @@ dependencies{
testImplementation(libs.junit)
}

// TODO: CI/CD for publishing the plugin to the Gradle Plugin Portal
gradlePlugin{
website = "https://processing.org/"
vcsUrl = "https://github.com/processing/processing4"
plugins{
create("processing.java"){
id = "org.processing.java"
id = "$group.java"
displayName = "Processing Plugin"
description = "Gradle plugin for building Processing sketches"
tags = listOf("processing", "sketch", "dsl")
implementationClass = "org.processing.java.gradle.ProcessingPlugin"
}
}
}

publishing{
repositories{
mavenLocal()
Expand All @@ -39,6 +44,11 @@ publishing{
}
}
}
// Grab the group before running tests, since the group is used in the test configuration and may be modified by the publishing configuration
val testGroup = group.toString()
tasks.withType<Test>().configureEach {
systemProperty("project.group", testGroup)
}

tasks.register("writeVersion") {
// make the version available to the plugin at runtime by writing it to a properties file in the resources directory
Expand All @@ -48,6 +58,7 @@ tasks.register("writeVersion") {
file.writeText("version=${project.version}")
}
}

tasks.named("processResources") {
dependsOn("writeVersion")
}
2 changes: 1 addition & 1 deletion 2 java/gradle/src/test/kotlin/ProcessingPluginTest.kt
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ProcessingPluginTest{
val sketchFolder = directory.newFolder("sketch")
directory.newFile("sketch/build.gradle.kts").writeText("""
plugins {
id("org.processing.java")
id("${System.getProperty("project.group")}.java")
}
""".trimIndent())
directory.newFile("sketch/settings.gradle.kts")
Expand Down
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.