Skip to content

Commit 4e76b53

Browse files
pditommasoclaude
andcommitted
Remove GitHub publishing functionality
- Remove GitHub publishing tasks (generateGithubMeta, publishPluginToGithub, updateGithubIndex) - Remove GitHub-related imports from NextflowPlugin.groovy - Delete entire github/ directory with all GitHub publishing classes - Update PluginPublishConfig to remove GitHub configuration - Remove GitHub-related test cases from NextflowPluginTest - Now only supports registry publishing via publishPluginToRegistry task 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent e719712 commit 4e76b53

File tree

9 files changed

+0
-685
lines changed

9 files changed

+0
-685
lines changed

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

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package io.nextflow.gradle
22

3-
import io.nextflow.gradle.github.GithubUploadTask
4-
import io.nextflow.gradle.github.PluginMetadataTask
5-
import io.nextflow.gradle.github.UpdateJsonIndexTask
63
import io.nextflow.gradle.registry.RegistryUploadTask
74
import org.gradle.api.Plugin
85
import org.gradle.api.Project
@@ -138,28 +135,6 @@ class NextflowPlugin implements Plugin<Project> {
138135
publishTasks << project.tasks.publishPluginToRegistry
139136
}
140137

141-
// add github publish task(s), if configured
142-
if (config.publishing.github) {
143-
// generateGithubMeta - creates the meta.json file
144-
project.tasks.register('generateGithubMeta', PluginMetadataTask)
145-
project.tasks.generateGithubMeta.dependsOn << project.tasks.packagePlugin
146-
project.tasks.assemble.dependsOn << project.tasks.generateGithubMeta
147-
148-
// publishPluginToGithub - publishes plugin assets to a github repo
149-
project.tasks.register('publishPluginToGithub', GithubUploadTask)
150-
project.tasks.publishPluginToGithub.dependsOn << [
151-
project.tasks.packagePlugin,
152-
project.tasks.generateGithubMeta
153-
]
154-
publishTasks << project.tasks.publishPluginToGithub
155-
156-
// updateGithubIndex - updates the central plugins.json index
157-
if (config.publishing.github.updateIndex) {
158-
project.tasks.register('updateGithubIndex', UpdateJsonIndexTask)
159-
project.tasks.updateGithubIndex.dependsOn << project.tasks.generateGithubMeta
160-
publishTasks << project.tasks.updateGithubIndex
161-
}
162-
}
163138

164139
// finally, configure the destination-agnostic 'publish' task
165140
if (!publishTasks.isEmpty()) {

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package io.nextflow.gradle
22

33
import groovy.transform.CompileStatic
4-
import io.nextflow.gradle.github.GithubPublishConfig
54
import io.nextflow.gradle.registry.RegistryPublishConfig
65
import org.gradle.api.Project
76

@@ -13,11 +12,6 @@ import org.gradle.api.Project
1312
class PluginPublishConfig {
1413
private final Project project
1514

16-
/**
17-
* Configuration for publishing to github
18-
*/
19-
GithubPublishConfig github
20-
2115
/**
2216
* Configuration for publishing to a registry
2317
*/
@@ -29,12 +23,6 @@ class PluginPublishConfig {
2923

3024
def validate() {}
3125

32-
// initialises the 'github' sub-config
33-
def github(Closure config) {
34-
github = new GithubPublishConfig(project)
35-
project.configure(github, config)
36-
}
37-
3826
def registry(Closure config) {
3927
registry = new RegistryPublishConfig(project)
4028
project.configure(registry, config)

src/main/groovy/io/nextflow/gradle/github/GithubClient.groovy

Lines changed: 0 additions & 235 deletions
This file was deleted.

src/main/groovy/io/nextflow/gradle/github/GithubPublishConfig.groovy

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)