From 6e22fa1847cf38fa0febc903e8ceaa0d101f1ae9 Mon Sep 17 00:00:00 2001 From: Arthur Gymer <24782660+awgymer@users.noreply.github.com> Date: Tue, 24 Oct 2023 00:18:45 +0100 Subject: [PATCH 1/3] update make install to use NXF_PLUGINS_DIR. Update docs --- Makefile | 17 ++++++++++------- docs/contributing/setup.md | 26 +++++++------------------- 2 files changed, 17 insertions(+), 26 deletions(-) diff --git a/Makefile b/Makefile index 4fc1c914..e70550b9 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,14 @@ - config ?= compileClasspath +version ?= $(shell grep 'Plugin-Version' plugins/nf-validation/src/resources/META-INF/MANIFEST.MF | awk '{ print $$2 }') ifdef module mm = :${module}: else -mm = -endif +mm = +endif + +NXF_HOME ?= $$HOME/.nextflow +NXF_PLUGINS_DIR ?= $(NXF_HOME)/plugins clean: ./gradlew clean @@ -14,11 +17,9 @@ compile: ./gradlew compileGroovy @echo "DONE `date`" - check: ./gradlew check - # # Show dependencies try `make deps config=runtime`, `make deps config=google` # @@ -44,7 +45,10 @@ else ./gradlew ${mm}test --tests ${class} endif - +install: + ./gradlew copyPluginZip + rm -rf ${NXF_PLUGINS_DIR}/nf-validation-${version} + cp -r build/plugins/nf-validation-${version} ${NXF_PLUGINS_DIR} # # Upload JAR artifacts to Maven Central @@ -52,7 +56,6 @@ endif upload: ./gradlew upload - upload-plugins: ./gradlew plugins:upload diff --git a/docs/contributing/setup.md b/docs/contributing/setup.md index 9d7fc24b..dab08b63 100644 --- a/docs/contributing/setup.md +++ b/docs/contributing/setup.md @@ -17,30 +17,18 @@ To compile and run the tests use the following command: To test with Nextflow for development purpose: -Clone the Nextflow repo into a sibling directory +Compile and install the plugin code ```bash -cd .. && git clone https://github.com/nextflow-io/nextflow -cd nextflow && ./gradlew exportClasspath +make compile +make install ``` -Append to the `settings.gradle` in this project the following line: +!!! warning -```bash -includeBuild('../nextflow') -``` - -Compile the plugin code - -```bash -./gradlew compileGroovy -``` - -Run nextflow with this command: - -```bash -./launch.sh run -plugins nf-validation