Skip to content
This repository was archived by the owner on Sep 1, 2025. It is now read-only.

Conversation

@tom-seqera
Copy link
Contributor

No description provided.

@bentsherman
Copy link
Member

Just tested this with nf-prov and it works wonderfully. So much simpler 😄

Some notes:

  • I would make the assemble rule first in the Makefile so that you can just run make to build the plugin

  • I happen to have nf-prov cloned as a different name (nextflow-io_nf-prov), and make install used that name when installing the plugin. Setting rootProject.name to nf-prov in settings.gradle fixed this, so I would do this in nf-hello as well

  • I initially moved my source files to src/main/nextflow/... instead of src/main/groovy/nextflow/.... The plugin built and installed successfully, but then Nextflow failed at runtime with a ClassNotFound exception.

    It sounds like the plugin build didn't pick up any classes, so I'm surprised it still succeeded. Since we specify the className in the build.gradle, maybe it can confirm that at least this class was picked up?

@tom-seqera tom-seqera force-pushed the gradle-plugin-example branch from 0c3b035 to 461ba68 Compare February 25, 2025 10:32
@tom-seqera
Copy link
Contributor Author

Good thoughts. I added a check to try to confirm that the declared className was found in the sources. It's not especially clever but it should hopefully catch the most common cases.

@bentsherman
Copy link
Member

The className check worked. Feel free to publish whenever you're ready

Signed-off-by: Tom Sellman <[email protected]>
Signed-off-by: Ben Sherman <[email protected]>
@pditommaso
Copy link
Member

Not sure it's worth maintaining this project any more having the create command + nf-plugin-template

@bentsherman
Copy link
Member

I would be fine with archiving nf-hello, but we should probably add something like the HelloExtension to the plugin template, to show how to define custom functions

@bentsherman
Copy link
Member

@bentsherman bentsherman closed this May 8, 2025
@bentsherman bentsherman deleted the gradle-plugin-example branch May 8, 2025 20:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

4 participants