Skip to content

Commit

Permalink
import com.quiltdata.quiltcore.Quilt
Browse files Browse the repository at this point in the history
  • Loading branch information
drernie committed May 22, 2024
1 parent f0636b5 commit 6125d07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugins/nf-quilt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ ext {

dependencies {
// quiltcore
implementation 'com.quiltdata:quiltcore:0.2.0'
implementation 'com.quiltdata:quiltcore:0.2.1'

// This dependency is exported to consumers, that is to say found on their compile classpath.
compileOnly "io.nextflow:nextflow:$nextflowVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import java.nio.file.SimpleFileVisitor
import java.nio.file.FileVisitResult
import java.nio.file.attribute.BasicFileAttributes
import java.util.stream.Collectors
import quiltcore.Quilt

import com.fasterxml.jackson.databind.ObjectMapper
import com.quiltdata.quiltcore.Quilt

@Slf4j
@CompileStatic
Expand Down Expand Up @@ -89,7 +89,7 @@ class QuiltLocal {

Path install(QuiltPackage pkg) {
String uri = pkg.parsed.toUriString()
Path domain_path = packageDest(pkg)
String domain_path = packageDest(pkg)

try {
log.info("installing $pkg.packageName from $pkg.bucket... into $domain_path")
Expand Down Expand Up @@ -128,7 +128,7 @@ class QuiltLocal {

// https://docs.quiltdata.com/v/version-5.0.x/examples/gitlike#install-a-package
String push(QuiltPackage pkg, String msg = 'update', Map meta = [:]) {
Path domain_path = packageDest(pkg)
String domain_path = packageDest(pkg)
String pkg_name = pkg.packageName
String meta_string = new ObjectMapper().writeValueAsString(meta)
log.debug("push: $pkg from $domain_path with meta $meta_string")
Expand All @@ -144,7 +144,8 @@ class QuiltLocal {
/* groovylint-disable-next-line ThrowRuntimeException */
throw new RuntimeException(e)
}
return localManifest
/* groovylint-disable-next-line ReturnNullFromCatchBlock */
return null
}

}

0 comments on commit 6125d07

Please sign in to comment.