×

nf-itdepends @ 0.1.1

Provider: Fulcrum Genomics
Claimed: 12 Feb 2026 01:43:01 (UTC)
Description: This Nextflow plugin restores the `@Grab` annotation functionality for declaring Maven dependencies in Groovy code by bundling Apache Ivy, which was removed from Nextflow 24.04.7+. It solves the problem of broken dependency resolution in Nextflow pipelines that rely on `@Grab` for compile-time Maven dependency injection. Pipeline developers using Nextflow 24.04.0+ would use this plugin to seamlessly declare and automatically download third-party Java libraries directly in their `lib/` Groovy files.
Latest version: 0.1.1
Total downloads: 116 View trends

Summary

Starting with Nextflow 24.04.7-edge, Apache Ivy was removed from the Nextflow distribution. This broke the @Grab annotation, which relies on Ivy to resolve and download Maven dependencies at compile time.

This plugin brings @Grab back by bundling Ivy and injecting a working GrapeEngine into Groovy's Grape singleton before lib/ files are compiled.

Get Started

Installation

Add the plugin to your nextflow.config:

plugins {
    id 'nf-itdepends@VERSION'
}

Replace VERSION with the latest release.

Requirements

  • Nextflow 24.04.0 or later
  • Java 17 or later

Configuration

By default, the plugin resolves dependencies from Maven Central. Additional resolvers can be configured using @GrabResolver in your Groovy code:

@GrabResolver(name='sonatype', root='https://oss.sonatype.org/content/repositories/releases/')
@Grab('some.group:some-artifact:1.0')
import some.group.SomeClass

Dependencies are cached in ~/.groovy/grapes/ (the standard Grape cache directory).

Examples

Use @Grab in your lib/ Groovy files as before:

// lib/MyHelper.groovy
@Grab('commons-lang:commons-lang:2.6')
import org.apache.commons.lang.StringUtils

class MyHelper {
    static String capitalize(String input) {
        return StringUtils.capitalize(input)
    }
}
// main.nf
process EXAMPLE {
    output: stdout
    script:
    """
    echo "${MyHelper.capitalize('hello world')}"
    """
}

workflow {
    EXAMPLE() | view
}

License

MIT

Copyright (c) 2026 Fulcrum Genomics LLC

Nextflow version >=24.04.0
Depends On -
Release Date 29 Apr 2026 23:09:40 (UTC)
Release Notes -
Download URL https://registry.nextflow.io/api/v1/plugins/nf-itdepends/0.1.1/download/nf-itdepends-0.1.1.zip
Store URL https://public.cr.seqera.io/v2/nextflow/plugin/nf-itdepends/blobs/sha256:caaafd441c931b880ffed3b4c2f63756a677439634425a42f4b5abafcd6585b2
Size 1.2 MB
Checksum eb363a8ae0fc8740e60a35c5d31853a6c2026b9895314df49c3b9d1bab8e77d9a18484083c1f3458770a4f0873656a5b2199fc34a89f07c226aaf530d548fcdc
Total downloads 17 View trends
Security Scan
Version Nextflow version Date Status Downloads
0.1.1 >=24.04.0 29 Apr 2026 23:09:40 (UTC) 17
0.1.0 >=24.04.0 12 Feb 2026 17:38:08 (UTC) 99