Files
processing4/java
Stef Tervelde eddeda4346 Set Java toolchain to version 17 in library plugin
Configured the ProcessingLibraryPlugin to use Java toolchain version 17 via JavaPluginExtension. Also marked the 'createLibrary' task in dxf library build script as deprecated, recommending use of the 'bundleLibrary' task from the plugin.

Add custom Gradle plugin for Processing libraries

Introduces a new Gradle plugin module for Processing libraries, including plugin implementation, extension, and configuration classes. Updates the DXF library to use the new plugin and configuration DSL, and adjusts project settings to include and manage the plugin build.

Add bundleLibrary task and update library plugin

Introduces BundleLibraryFilesTask to handle bundling of Processing library files, replacing the removed CollectLibraryFilesTask. Updates ProcessingLibraryPlugin to register the new bundleLibrary task, which collects the jar, runtime dependencies, examples, javadoc, and generates library.properties. Also adds a 'name' property to ProcessingLibraryConfiguration and comments out the old createLibrary Copy task in dxf's build script.

Refactor library bundling logic into task class

Moved the logic for bundling Processing library files from the plugin registration into the BundleLibraryFilesTask class. The task now takes a ProcessingLibraryConfiguration and handles copying jars, dependencies, examples, javadocs, and generating library.properties internally. Also made ProcessingLibraryConfiguration serializable for safer Gradle usage.

Update library version handling and add zip task

Changed ProcessingLibraryConfiguration.version from String to Int for stricter versioning. Added a zipLibrary Gradle task to package the library folder as .zip and .pdex archives. Updated dxf library build script to use new version format and incremented version to 1.

Add installLibrary task and update DXF build config

Introduces an installLibrary Gradle task to automate Processing library installation using user preferences. Also re-enables the createLibrary copy task in the DXF library build script and removes minRevision/maxRevision constraints from the library configuration.

Only run when actually running the task -.-

Refactor library author metadata handling

Changed the authors field in ProcessingLibraryConfiguration from a list of names to a map of author names to URLs, updating related code to format authors as markdown links. Updated the DXF library build configuration to use the new authors map structure. Added documentation comments to ProcessingLibraryConfiguration properties for clarity.
2025-11-27 12:40:17 +01:00
..
2025-02-05 21:33:57 +01: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.