Skip to content

Commit 256516e

Browse files
authored
Merge branch 'master' into databricks
2 parents 25b9eb8 + 032dfad commit 256516e

File tree

7 files changed

+53
-16
lines changed

7 files changed

+53
-16
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,15 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
java_version: [11, 17]
20+
java_version: [17, 21]
2121

2222
steps:
2323
- name: Environment
2424
run: env | sort
2525

2626
- name: Checkout
27-
uses: actions/checkout@v1
27+
uses: actions/checkout@v4
2828
with:
29-
fetch-depth: 1
3029
submodules: true
3130

3231
- name: Setup Java ${{ matrix.java_version }}

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,3 +239,13 @@ The `CSVREAD` function provided by the H2 database engine allows you to query an
239239
Like all dataflow operators in Nextflow, the operators provided by this plugin are executed asynchronously.
240240

241241
In particular, data inserted using the `sqlInsert` operator is _not_ guaranteed to be available to any subsequent queries using the `fromQuery` operator, as it is not possible to make a channel factory operation dependent on some upstream operation.
242+
243+
## Developtment
244+
245+
#### Publish artifacts to Maven repo
246+
247+
Use the following command:
248+
249+
```
250+
./gradlew plugins:nf-sqldb:publishMavenPublicationToMavenRepository
251+
```

changelog.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
NF-SQLDB CHANGE-LOG
22
===================
3-
0.6.0 - 5 Nov 2024
3+
0.6.0 - 23 May 2025
44
- Update build scripts
55
- Remove nf-bigquery plugin
6-
- Bump Nextflow to version 24.04.0
6+
- Bump Nextflow to version 25.04.0
77
- Bump mysql-connector-java:8.0.33
88
- Bump mariadb-java-client:2.7.0
99
- Bump postgresql:42.7.4

plugins/build.gradle

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ subprojects {
6060
apply plugin: 'java'
6161
apply plugin: 'groovy'
6262
apply plugin: 'io.nextflow.nf-build-plugin'
63+
apply plugin: 'maven-publish'
6364

6465
repositories {
6566
mavenLocal()
@@ -153,6 +154,33 @@ subprojects {
153154
}
154155

155156
task upload(dependsOn: [uploadPlugin] ) { }
157+
158+
/*
159+
* publish jars maven repo on S3
160+
*/
161+
ext.aws_access_key_id = project.findProperty('aws_access_key_id') ?: System.getenv('AWS_ACCESS_KEY_ID')
162+
ext.aws_secret_access_key = project.findProperty('aws_secret_access_key') ?: System.getenv('AWS_SECRET_ACCESS_KEY')
163+
ext.publishRepoUrl = project.findProperty('publish_repo_url') ?: System.getenv('PUBLISH_REPO_URL') ?: ( version.endsWith('-SNAPSHOT') ? "s3://maven.seqera.io/snapshots" : "s3://maven.seqera.io/releases" )
164+
165+
publishing {
166+
publications {
167+
maven(MavenPublication) {
168+
from components.java
169+
suppressPomMetadataWarningsFor('testFixturesApiElements')
170+
suppressPomMetadataWarningsFor('testFixturesRuntimeElements')
171+
}
172+
}
173+
repositories {
174+
maven {
175+
url = publishRepoUrl
176+
credentials(AwsCredentials) {
177+
// keys are defined in the `gradle.properties` file
178+
accessKey aws_access_key_id
179+
secretKey aws_secret_access_key
180+
}
181+
}
182+
}
183+
}
156184
}
157185

158186
/*

plugins/nf-sqldb/build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,21 @@ sourceSets {
5252
}
5353

5454
ext{
55-
nextflowVersion = '24.04.0'
55+
nextflowVersion = '25.04.0'
5656
}
5757

5858
dependencies {
5959
compileOnly "io.nextflow:nextflow:$nextflowVersion"
60-
compileOnly 'org.slf4j:slf4j-api:2.0.7'
60+
compileOnly 'org.slf4j:slf4j-api:2.0.16'
6161
compileOnly 'org.pf4j:pf4j:3.12.0'
6262

63-
api("org.apache.groovy:groovy-sql:4.0.23") { transitive = false }
63+
api("org.apache.groovy:groovy-sql:4.0.26") { transitive = false }
6464
api 'com.h2database:h2:1.4.200'
6565
api 'mysql:mysql-connector-java:8.0.33'
6666
api 'org.mariadb.jdbc:mariadb-java-client:2.7.0'
67-
api 'org.postgresql:postgresql:42.7.4'
68-
api 'org.xerial:sqlite-jdbc:3.47.0.0'
69-
api 'org.duckdb:duckdb_jdbc:0.10.2'
67+
api 'org.postgresql:postgresql:42.7.5'
68+
api 'org.xerial:sqlite-jdbc:3.49.1.0'
69+
api 'org.duckdb:duckdb_jdbc:1.3.0.0'
7070

7171
// JDBC driver setup for AWS Athena - the 3rd party JAR are being downloaded and setup as gradle tasks below.
7272
// Reference https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html
@@ -76,10 +76,10 @@ dependencies {
7676
implementation fileTree(dir: 'src/dist/lib/libs', include: '*.jar')
7777

7878
// test configuration
79-
testImplementation "org.apache.groovy:groovy:4.0.23"
80-
testImplementation "org.apache.groovy:groovy-nio:4.0.23"
79+
testImplementation "org.apache.groovy:groovy:4.0.26"
80+
testImplementation "org.apache.groovy:groovy-nio:4.0.26"
8181
testImplementation "io.nextflow:nextflow:$nextflowVersion"
82-
testImplementation ("org.apache.groovy:groovy-test:4.0.23") { exclude group: 'org.apache.groovy' }
82+
testImplementation ("org.apache.groovy:groovy-test:4.0.26") { exclude group: 'org.apache.groovy' }
8383
testImplementation ("cglib:cglib-nodep:3.3.0")
8484
testImplementation ("org.objenesis:objenesis:3.1")
8585
testImplementation ("org.spockframework:spock-core:2.3-groovy-4.0") { exclude group: 'org.apache.groovy'; exclude group: 'net.bytebuddy' }

plugins/nf-sqldb/src/main/nextflow/sql/config/DriverRegistry.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class DriverRegistry {
1111

1212
Map<String, String> drivers = [:]
1313

14-
static DriverRegistry DEFAULT = new DriverRegistry()
14+
static public DriverRegistry DEFAULT = new DriverRegistry()
1515

1616
DriverRegistry(){
1717
initDefaultDrivers()

plugins/nf-sqldb/src/resources/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Plugin-Class: nextflow.sql.SqlPlugin
33
Plugin-Id: nf-sqldb
44
Plugin-Provider: Seqera Labs
55
Plugin-Version: 0.6.0
6-
Plugin-Requires: >=24.04.0
6+
Plugin-Requires: >=25.04.0

0 commit comments

Comments
 (0)