Skip to content

Commit 7b5cdab

Browse files
committed
fix: replace nf-boost import with plain java.net HTTP
lib/ classes compile before plugin classes are on the classpath, so importing nextflow.boost.BoostFunctions always fails at semantic analysis. Use java.net.URL directly instead.
1 parent e49257a commit 7b5cdab

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lib/SeqeraApi.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// Seqera Platform API client using nf-boost request()
2-
3-
import nextflow.boost.BoostFunctions
1+
// Seqera Platform API client using plain java.net HTTP
42

53
class SeqeraApi {
64

75
static Map apiGet(String url, Map headers) {
8-
def conn = BoostFunctions.request(url, method: 'GET', headers: headers)
6+
def conn = new URL(url).openConnection()
7+
conn.setRequestMethod('GET')
8+
headers.each { k, v -> conn.setRequestProperty(k, v) }
99
def code = conn.getResponseCode()
1010
if (code != 200) {
1111
throw new RuntimeException("API request failed: ${url} → HTTP ${code}")

nextflow.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ manifest {
319319
// Nextflow plugins
320320
plugins {
321321
id 'nf-schema@2.3.0' // Validation of pipeline parameters and creation of an input channel from a sample sheet
322-
id 'nf-boost' // HTTP request(), fromJson/toJson, and other utilities
323322
}
324323

325324
validation {

0 commit comments

Comments
 (0)