|
1 | 1 | config ?= compileClasspath |
2 | 2 |
|
3 | | -ifdef module |
4 | | -mm = :${module}: |
5 | | -else |
6 | | -mm = :app: |
7 | | -endif |
| 3 | +# |
| 4 | +# Build the Nextflow plugin |
| 5 | +# |
| 6 | +compile: |
| 7 | + ./gradlew assemble |
8 | 8 |
|
| 9 | +# |
| 10 | +# Clean and build the plugin |
| 11 | +# |
| 12 | +build: |
| 13 | + ./gradlew build |
9 | 14 |
|
10 | | -compile: |
11 | | - ./gradlew assemble |
| 15 | +# |
| 16 | +# Clean build artifacts |
| 17 | +# |
| 18 | +clean: |
| 19 | + ./gradlew clean |
| 20 | + |
| 21 | +# |
| 22 | +# Run tests |
| 23 | +# |
| 24 | +test: |
| 25 | + ./gradlew test |
12 | 26 |
|
| 27 | +# |
| 28 | +# Run checks (test + lint) |
| 29 | +# |
13 | 30 | check: |
14 | 31 | ./gradlew check |
15 | 32 |
|
16 | | -image: |
17 | | - ./gradlew jibDockerBuild |
| 33 | +# |
| 34 | +# Install plugin locally for testing (extract to development directory) |
| 35 | +# |
| 36 | +install: build |
| 37 | + cp build/distributions/*.zip ~/.nextflow/plugins/ |
| 38 | + @echo "Also installing to development directory for testing with launch.sh..." |
| 39 | + rm -rf /Users/edmundmiller/.worktrees/nextflow/cli-extension/plugins/nf-wave-cli |
| 40 | + cd /Users/edmundmiller/.worktrees/nextflow/cli-extension/plugins && unzip -q ~/.nextflow/plugins/nf-wave-cli-*.zip -d nf-wave-cli |
| 41 | + cd /Users/edmundmiller/.worktrees/nextflow/cli-extension/plugins/nf-wave-cli && mkdir -p build/classes/main build/target/libs |
| 42 | + cd /Users/edmundmiller/.worktrees/nextflow/cli-extension/plugins/nf-wave-cli && cp -r classes/* build/classes/main/ |
| 43 | + cd /Users/edmundmiller/.worktrees/nextflow/cli-extension/plugins/nf-wave-cli && mv lib build/target/libs |
| 44 | + @echo "Plugin installed for both runtime and development testing" |
18 | 45 |
|
19 | | -push: |
20 | | - # docker login |
21 | | - docker login -u pditommaso -p ${DOCKER_PASSWORD} |
22 | | - ./gradlew jib |
| 46 | +# |
| 47 | +# Package the plugin for distribution |
| 48 | +# |
| 49 | +package: |
| 50 | + ./gradlew packagePlugin |
23 | 51 |
|
24 | 52 | # |
25 | | -# Show dependencies try `make deps config=runtime`, `make deps config=google` |
| 53 | +# Show dependencies |
26 | 54 | # |
27 | 55 | deps: |
28 | | - ./gradlew -q ${mm}dependencies --configuration ${config} |
| 56 | + ./gradlew -q dependencies --configuration ${config} |
| 57 | + |
| 58 | +# |
| 59 | +# Show plugin information |
| 60 | +# |
| 61 | +info: |
| 62 | + @echo "Plugin: nf-wave-cli" |
| 63 | + @echo "Version: $(shell cat VERSION)" |
| 64 | + @echo "Built plugin: $(shell ls -1 build/distributions/*.zip 2>/dev/null || echo 'Not built yet')" |
| 65 | + |
| 66 | +# |
| 67 | +# Help target |
| 68 | +# |
| 69 | +help: |
| 70 | + @echo "Available targets:" |
| 71 | + @echo " compile - Build the plugin" |
| 72 | + @echo " build - Clean and build the plugin" |
| 73 | + @echo " clean - Clean build artifacts" |
| 74 | + @echo " test - Run tests" |
| 75 | + @echo " check - Run tests and checks" |
| 76 | + @echo " install - Build and install plugin locally" |
| 77 | + @echo " package - Package plugin for distribution" |
| 78 | + @echo " deps - Show dependencies" |
| 79 | + @echo " info - Show plugin information" |
| 80 | + @echo " help - Show this help message" |
| 81 | + @echo "" |
| 82 | + @echo "CURRENT STATUS:" |
| 83 | + @echo "This plugin is ready for first-class CLI integration but requires:" |
| 84 | + @echo "1. Nextflow version with CommandExtensionPoint support (cli-extension branch)" |
| 85 | + @echo "2. The CommandExtensionPoint interface to be available at compile time" |
| 86 | + @echo "" |
| 87 | + @echo "For now, the plugin provides traditional Wave CLI functionality via existing interfaces." |
| 88 | + |
| 89 | +.PHONY: compile build clean test check install package deps info help |
0 commit comments