File tree Expand file tree Collapse file tree 8 files changed +82
-22
lines changed Expand file tree Collapse file tree 8 files changed +82
-22
lines changed Original file line number Diff line number Diff line change
1
+ config ?= compileClasspath
2
+
3
+ ifdef module
4
+ mm = :${module}:
5
+ else
6
+ mm =
7
+ endif
8
+
9
+ clean :
10
+ rm -rf .nextflow*
11
+ rm -rf work
12
+ rm -rf build
13
+ rm -rf plugins/* /build
14
+ ./gradlew clean
15
+
16
+ compile :
17
+ ./gradlew compileGroovy
18
+ @echo " DONE ` date` "
19
+
20
+
21
+ check :
22
+ ./gradlew check
23
+
24
+
1
25
#
2
26
# Show dependencies try `make deps config=runtime`, `make deps config=google`
3
27
#
4
- deps : FORCE
5
- ./gradlew -q :plugins:nf-sqldb:dependencies --configuration runtimeClasspath
28
+ deps :
29
+ ./gradlew -q ${mm} dependencies --configuration ${config}
30
+
31
+ deps-all :
32
+ ./gradlew -q dependencyInsight --configuration ${config} --dependency ${module}
33
+
34
+ #
35
+ # Refresh SNAPSHOTs dependencies
36
+ #
37
+ refresh :
38
+ ./gradlew --refresh-dependencies
39
+
40
+ #
41
+ # Run all tests or selected ones
42
+ #
43
+ test :
44
+ ifndef class
45
+ ./gradlew ${mm}test
46
+ else
47
+ ./gradlew ${mm}test --tests ${class}
48
+ endif
49
+
50
+ assemble :
51
+ ./gradlew assemble
52
+
53
+ #
54
+ # generate build zips under build/plugins
55
+ # you can install the plugin copying manually these files to $HOME/.nextflow/plugins
56
+ #
57
+ buildPlugins :
58
+ ./gradlew copyPluginZip
59
+
60
+ #
61
+ # Upload JAR artifacts to Maven Central
62
+ #
63
+ upload :
64
+ ./gradlew upload
65
+
66
+
67
+ upload-plugins :
68
+ ./gradlew plugins:upload
6
69
7
- FORCE : ;
70
+ publish-index :
71
+ ./gradlew plugins:publishIndex
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ The following databases are currently supported:
6
6
7
7
* [ AWS Athena] ( https://aws.amazon.com/athena/ ) (Setup guide [ here] ( docs/aws-athena.md ) )
8
8
* [ DuckDB] ( https://duckdb.org/ )
9
- * [ Google BigQuery] ( https://cloud.google.com/bigquery ) (Setup guide [ here] ( docs/google-bigquery.md ) )
10
9
* [ H2] ( https://www.h2database.com )
11
10
* [ MySQL] ( https://www.mysql.com/ )
12
11
* [ MariaDB] ( https://mariadb.org/ )
@@ -25,13 +24,6 @@ plugins {
25
24
}
26
25
```
27
26
28
- Support for BigQuery is provided in a separate plugin:
29
-
30
- ``` groovy
31
- plugins {
32
- id 'nf-bigquery'
33
- }
34
- ```
35
27
36
28
## Configuration
37
29
Original file line number Diff line number Diff line change @@ -14,17 +14,17 @@ repositories {
14
14
15
15
java {
16
16
toolchain {
17
- languageVersion = JavaLanguageVersion . of(19 )
17
+ languageVersion = JavaLanguageVersion . of(21 )
18
18
}
19
19
}
20
20
21
21
compileJava {
22
- options. release. set(11 )
22
+ options. release. set(17 )
23
23
}
24
24
25
25
tasks. withType(GroovyCompile ) {
26
- sourceCompatibility = ' 11 '
27
- targetCompatibility = ' 11 '
26
+ sourceCompatibility = 17
27
+ targetCompatibility = 17
28
28
}
29
29
30
30
tasks. withType(Test ) {
Original file line number Diff line number Diff line change 17
17
18
18
package nextflow.sql
19
19
20
+ import groovy.transform.CompileStatic
20
21
import nextflow.plugin.BasePlugin
21
22
import org.pf4j.PluginWrapper
22
23
@@ -25,6 +26,7 @@ import org.pf4j.PluginWrapper
25
26
*
26
27
* @author Paolo Di Tommaso <[email protected] >
27
28
*/
29
+ @CompileStatic
28
30
class SqlPlugin extends BasePlugin {
29
31
30
32
SqlPlugin (PluginWrapper wrapper ) {
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ Plugin-Class: nextflow.sql.SqlPlugin
3
3
Plugin-Id : nf-sqldb
4
4
Plugin-Provider : Seqera Labs
5
5
Plugin-Version : 0.6.0
6
- Plugin-Requires : >=24.01.0-edge
6
+ Plugin-Requires : >=24.04.0
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ import spock.lang.Requires
32
32
import spock.lang.Shared
33
33
import spock.lang.Timeout
34
34
import test.Dsl2Spec
35
- import test.MockScriptRunner
35
+ import test.helpers. MockScriptRunner
36
36
37
37
import java.nio.file.Path
38
38
Original file line number Diff line number Diff line change 15
15
*
16
16
*/
17
17
18
- package test
18
+ package test.helpers
19
19
20
20
import java.nio.file.Paths
21
21
@@ -147,13 +147,13 @@ class MockMonitor implements TaskMonitor {
147
147
*
148
148
* @param handler A not null {@code TaskHandler } instance
149
149
*/
150
- boolean evict (TaskHandler handler ) { }
150
+ boolean evict (TaskHandler handler ) { return null }
151
151
152
152
/**
153
153
* Start the monitoring activity for the queued tasks
154
154
* @return The instance itself, useful to chain methods invocation
155
155
*/
156
- TaskMonitor start () { }
156
+ TaskMonitor start () { return null }
157
157
158
158
/**
159
159
* Notify when a task terminates
@@ -190,9 +190,11 @@ class MockTaskHandler extends TaskHandler {
190
190
191
191
@Override
192
192
boolean checkIfCompleted () {
193
- true
193
+ return true
194
194
}
195
195
196
+ protected void killTask () { }
197
+
196
198
@Override
197
199
void kill () { }
198
200
Original file line number Diff line number Diff line change 15
15
*
16
16
*/
17
17
18
- package test
18
+ package test.helpers
19
19
import java.nio.file.Files
20
20
import java.nio.file.Path
21
21
import java.util.zip.GZIPInputStream
You can’t perform that action at this time.
0 commit comments