Skip to content

Commit

Permalink
Update plugins/build.gradle
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Sellman <tom.sellman@seqera.io>
  • Loading branch information
robsyme and tom-seqera authored Jan 10, 2025
1 parent 9553876 commit 28daf80
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions plugins/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -215,33 +215,3 @@ task publishIndex( type: io.nextflow.gradle.tasks.GithubRepositoryPublisher ) {
githubToken = github_access_token
}

/*
* Task to install all plugins to the Nextflow plugins directory
*/
task installPlugins() {
description = 'Installs all plugins to the Nextflow plugins directory'
group = 'Plugin Installation'

dependsOn subprojects.installPlugin
}

/*
* Task to install a specific plugin by name
* Usage: ./gradlew installPlugin -Pplugin=nf-hello
*/
task installSpecificPlugin {
description = 'Installs a specific plugin (specify with -Pplugin=plugin-name)'
group = 'Plugin Installation'

doFirst {
if (!project.hasProperty('plugin')) {
throw new GradleException("Please specify a plugin name using -Pplugin=plugin-name")
}
def pluginName = project.property('plugin')
def pluginProject = project.findProject(":plugins:${pluginName}")
if (!pluginProject) {
throw new GradleException("Plugin '${pluginName}' not found")
}
dependsOn pluginProject.installPlugin
}
}

0 comments on commit 28daf80

Please sign in to comment.