Skip to content

Commit

Permalink
Include GA4GH support into the standalone binary (make pack) (#1666)
Browse files Browse the repository at this point in the history
Signed-off-by: Kirill Tsukanov <[email protected]>
  • Loading branch information
tskir authored Aug 1, 2020
1 parent b9b57f8 commit e2175d4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ upload:
pack:
BUILD_PACK=1 ./gradlew packAll

#
# Create self-contained distribution package, including GA4GH support and associated dependencies
#
packGA4GH:
BUILD_PACK=1 ./gradlew -PGA4GH packAll

#
# Upload NF launcher to nextflow.io web site
#
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ The self-contained runnable Nextflow packages can be created by using the follow
make pack
```

To include support of GA4GH and its dependencies in the binary, use `make packGA4GH` instead.

In order to install the compiled packages use the following command:

```bash
Expand Down
6 changes: 6 additions & 0 deletions packing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ task packAll(type: Jar) {
manifest.attributes('Main-Class': 'CapsuleLoader', 'google')
manifest.attributes('Main-Class': 'CapsuleLoader', 'ignite')

if( project.hasProperty('GA4GH') ) {
println "The build will include GA4GH dependencies."
from(configurations.ga4gh)
manifest.attributes('Main-Class': 'CapsuleLoader', 'ga4gh')
}

doLast {
file(releaseDir).mkdir()
// cleanup
Expand Down

0 comments on commit e2175d4

Please sign in to comment.