Files
processing4/java
Stef Tervelde 4f2644a9a2 Publish Processing Gradle plugins (#1405)
* Publish Processing Gradle plugin

Add a publish-gradle job to the release workflow to publish Processing libraries to the Gradle Plugin Portal using gradle publish with required secrets and version/group env vars. Update gradle/plugins/library/build.gradle.kts to use the com.gradle.plugin-publish plugin, provide plugin metadata (website, vcsUrl, displayName, description, tags) and make the plugin id dynamic ("$group.library"). These changes enable automated publishing of the Gradle plugin with the metadata required by the portal.

* Publish plugins in release workflow

* Update build.gradle.kts

* Set project.group system property for tests

Expose the project's group to test JVMs by configuring tasks.withType<Test>() to set systemProperty("project.group", group ?: "org.processing"). Update ProcessingPluginTest to read the plugin id from System.getProperty("project.group") instead of hardcoding the group. Also close the publishing block in build.gradle.kts. This allows tests to adapt when the project group is overridden.

* Update build.gradle.kts
2026-02-17 10:46:38 -05:00
..
2025-02-05 21:33:57 +01:00
2026-02-06 09:29:55 -05:00
2024-12-23 19:00:37 +01:00

Processing Java Mode

This the Java Mode in Processing. It compiles your sketches and runs them. It is the primary mode of Processing.

Folders

  • application assets for exporting applications within the mode
  • generated generated antlr code for the mode, should be moved to a proper antlr plugin within gradle
  • libraries libraries that are available within the mode
  • lsp gradle build system for the language server protocol, in the future we should decouple the lsp from the java mode and pde and move all relevant code here. For now it can be found in src/.../lsp
  • mode legacy files for Ant
  • preprocessor the preprocessor for the mode, same deal as with the lsp, although the decoupling has mostly been done
  • src the main source code for the mode
  • test tests for the mode
  • theme assets for the mode, related to autocomplete and syntax highlighting

Future plans

  • Decouple the lsp and preprocessor from the mode and move them to their own repositories
  • Move the antlr code to a proper plugin within gradle
  • Create a gradle plugin to convert .pde file to .java files
  • Create a gradle based version of Java mode.