Skip to content

Commit 256b986

Browse files
pditommasoclaude
andcommitted
Rename publishPlugin task back to releasePlugin
- Rename publishPlugin -> releasePlugin - Rename publishPluginToRegistry -> releasePluginToRegistry - Update task descriptions to use proper capitalization - Update all tests and documentation references 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent a3d2098 commit 256b986

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ nextflowPlugin {
4646
```
4747

4848
This will add some useful tasks to your Gradle build:
49-
* `assemble` - compile the Nextflow plugin code and assemble it into a zip file
50-
* `installPlugin` - copy the assembled plugin into your local Nextflow plugins dir
51-
* `releasePlugin` - publish the assembled plugin to the plugin registry
49+
* `assemble` - Compile the Nextflow plugin code and assemble it into a zip file
50+
* `installPlugin` - Copy the assembled plugin into your local Nextflow plugins dir
51+
* `releasePlugin` - Release the assembled plugin to the plugin registry
5252

5353
You should also ensure that your project's `settings.gradle` declares the plugin name, eg:
5454
```gradle

src/main/groovy/io/nextflow/gradle/NextflowPlugin.groovy

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,22 +129,22 @@ class NextflowPlugin implements Plugin<Project> {
129129

130130
// add registry publish task, if configured
131131
if (config.publishing.registry) {
132-
// publishPluginToRegistry - publishes plugin to a plugin registry
133-
project.tasks.register('publishPluginToRegistry', RegistryUploadTask)
134-
project.tasks.publishPluginToRegistry.dependsOn << project.tasks.packagePlugin
135-
publishTasks << project.tasks.publishPluginToRegistry
132+
// releasePluginToRegistry - publishes plugin to a plugin registry
133+
project.tasks.register('releasePluginToRegistry', RegistryUploadTask)
134+
project.tasks.releasePluginToRegistry.dependsOn << project.tasks.packagePlugin
135+
publishTasks << project.tasks.releasePluginToRegistry
136136
}
137137

138138

139-
// finally, configure the destination-agnostic 'publish' task
139+
// finally, configure the destination-agnostic 'release' task
140140
if (!publishTasks.isEmpty()) {
141-
// publishPlugin - all the release/publishing actions
142-
project.tasks.register('publishPlugin', {
141+
// releasePlugin - all the release/publishing actions
142+
project.tasks.register('releasePlugin', {
143143
group = 'Nextflow Plugin'
144-
description = 'publish plugin to configured destinations'
144+
description = 'Release plugin to configured destination'
145145
})
146146
for (task in publishTasks) {
147-
project.tasks.publishPlugin.dependsOn << task
147+
project.tasks.releasePlugin.dependsOn << task
148148
}
149149
}
150150
}

src/test/groovy/io/nextflow/gradle/NextflowPluginTest.groovy

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class NextflowPluginTest extends Specification {
1919
project.pluginManager.apply('io.nextflow.nextflow-plugin')
2020
}
2121

22-
def "should register publishPlugin task when publishing is configured"() {
22+
def "should register releasePlugin task when publishing is configured"() {
2323
given:
2424
project.nextflowPlugin {
2525
description = 'A test plugin'
@@ -38,13 +38,13 @@ class NextflowPluginTest extends Specification {
3838
project.evaluate()
3939

4040
then:
41-
project.tasks.findByName('publishPlugin') != null
42-
project.tasks.publishPlugin.group == 'Nextflow Plugin'
43-
project.tasks.publishPlugin.description == 'publish plugin to configured destinations'
41+
project.tasks.findByName('releasePlugin') != null
42+
project.tasks.releasePlugin.group == 'Nextflow Plugin'
43+
project.tasks.releasePlugin.description == 'Release plugin to configured destination'
4444
}
4545

4646

47-
def "should make publishPlugin depend on registry publishing task"() {
47+
def "should make releasePlugin depend on registry publishing task"() {
4848
given:
4949
project.nextflowPlugin {
5050
description = 'A test plugin'
@@ -63,13 +63,13 @@ class NextflowPluginTest extends Specification {
6363
project.evaluate()
6464

6565
then:
66-
def publishPlugin = project.tasks.publishPlugin
67-
def publishToRegistry = project.tasks.publishPluginToRegistry
68-
publishPlugin.taskDependencies.getDependencies(publishPlugin).contains(publishToRegistry)
66+
def releasePlugin = project.tasks.releasePlugin
67+
def releaseToRegistry = project.tasks.releasePluginToRegistry
68+
releasePlugin.taskDependencies.getDependencies(releasePlugin).contains(releaseToRegistry)
6969
}
7070

7171

72-
def "should not register publishPlugin task when no publishing is configured"() {
72+
def "should not register releasePlugin task when no publishing is configured"() {
7373
given:
7474
project.nextflowPlugin {
7575
description = 'A test plugin'
@@ -83,7 +83,7 @@ class NextflowPluginTest extends Specification {
8383
project.evaluate()
8484

8585
then:
86-
project.tasks.findByName('publishPlugin') == null
86+
project.tasks.findByName('releasePlugin') == null
8787
}
8888

89-
}
89+
}

0 commit comments

Comments
 (0)