Skip to content

Commit

Permalink
Add nf-commons and nf-httpfs to make path compatible with Nextflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lukfor committed Feb 11, 2024
1 parent ecaedf8 commit deb8aed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,20 @@
<version>1.4.11</version>
</dependency>

<!-- https://mvnrepository.com/artifact/io.nextflow/nf-commons -->
<dependency>
<groupId>io.nextflow</groupId>
<artifactId>nf-commons</artifactId>
<version>24.01.0-edge</version>
</dependency>

<!-- https://mvnrepository.com/artifact/io.nextflow/nf-httpfs -->
<dependency>
<groupId>io.nextflow</groupId>
<artifactId>nf-httpfs</artifactId>
<version>24.01.0-edge</version>
</dependency>

</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import groovy.lang.Closure;
import junit.framework.AssertionFailedError;

import nextflow.file.FileHelper;
import org.codehaus.groovy.runtime.powerassert.PowerAssertionError;

import static org.hamcrest.MatcherAssert.assertThat;
Expand All @@ -20,7 +21,7 @@ public static File file(String filename) {
}

public static Path path(String filename) {
return Paths.get(filename);
return FileHelper.asPath(filename);
}

public static void with(Object context, Closure closure) {
Expand Down

0 comments on commit deb8aed

Please sign in to comment.