mirror of
https://github.com/processing/processing4.git
synced 2026-03-14 08:27:43 +01:00
* 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
Processing Java Mode
This the Java Mode in Processing. It compiles your sketches and runs them. It is the primary mode of Processing.
Folders
applicationassets for exporting applications within the modegeneratedgenerated antlr code for the mode, should be moved to a properantlrplugin within gradlelibrarieslibraries that are available within the modelspgradle 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 insrc/.../lspmodelegacy files forAntpreprocessorthe preprocessor for the mode, same deal as with the lsp, although the decoupling has mostly been donesrcthe main source code for the modetesttests for the modethemeassets for the mode, related to autocomplete and syntax highlighting
Future plans
- Decouple the
lspandpreprocessorfrom the mode and move them to their own repositories - Move the
antlrcode to a proper plugin within gradle - Create a gradle plugin to convert
.pdefile to.javafiles - Create a gradle based version of Java mode.