Skip to content

Commit ee0a6e6

Browse files
committed
Update nf-sqldb plugin
Signed-off-by: Paolo Di Tommaso <[email protected]>
1 parent e9f3da6 commit ee0a6e6

20 files changed

+171
-427
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
.idea
33
.nextflow
44
build
5-
dist
5+
dist
6+
out

act.sh

Lines changed: 0 additions & 25 deletions
This file was deleted.

buildSrc/build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*/
4+
5+
plugins {
6+
// Support convention plugins written in Groovy. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build.
7+
id 'groovy-gradle-plugin'
8+
}
9+
10+
repositories {
11+
// Use the plugin portal to apply community plugins in convention plugins.
12+
gradlePluginPortal()
13+
}
14+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*/
4+
5+
plugins {
6+
// Apply the common convention plugin for shared build configuration between library and application projects.
7+
id 'io.nextflow.groovy-common-conventions'
8+
9+
// Apply the application plugin to add support for building a CLI application in Java.
10+
id 'application'
11+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*/
4+
5+
plugins {
6+
// Apply the groovy Plugin to add support for Groovy.
7+
id 'groovy'
8+
}
9+
10+
repositories {
11+
// Use Maven Central for resolving dependencies.
12+
mavenCentral()
13+
}
14+
15+
java {
16+
toolchain {
17+
languageVersion = JavaLanguageVersion.of(19)
18+
}
19+
}
20+
21+
compileJava {
22+
options.release.set(11)
23+
}
24+
25+
tasks.withType(GroovyCompile) {
26+
sourceCompatibility = '11'
27+
targetCompatibility = '11'
28+
}
29+
30+
tasks.withType(Test) {
31+
jvmArgs ([
32+
'--add-opens=java.base/java.lang=ALL-UNNAMED',
33+
'--add-opens=java.base/java.io=ALL-UNNAMED',
34+
'--add-opens=java.base/java.nio=ALL-UNNAMED',
35+
'--add-opens=java.base/java.nio.file.spi=ALL-UNNAMED',
36+
'--add-opens=java.base/java.net=ALL-UNNAMED',
37+
'--add-opens=java.base/java.util=ALL-UNNAMED',
38+
'--add-opens=java.base/java.util.concurrent.locks=ALL-UNNAMED',
39+
'--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED',
40+
'--add-opens=java.base/sun.nio.ch=ALL-UNNAMED',
41+
'--add-opens=java.base/sun.nio.fs=ALL-UNNAMED',
42+
'--add-opens=java.base/sun.net.www.protocol.http=ALL-UNNAMED',
43+
'--add-opens=java.base/sun.net.www.protocol.https=ALL-UNNAMED',
44+
'--add-opens=java.base/sun.net.www.protocol.ftp=ALL-UNNAMED',
45+
'--add-opens=java.base/sun.net.www.protocol.file=ALL-UNNAMED',
46+
'--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED',
47+
])
48+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*/
4+
5+
plugins {
6+
// Apply the common convention plugin for shared build configuration between library and application projects.
7+
id 'io.nextflow.groovy-common-conventions'
8+
// Apply the java-library plugin for API and implementation separation.
9+
id 'java-library'
10+
}
11+

changelog.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
NF-SQLDB CHANGE-LOG
22
===================
3+
0.6.0 - 5 Nov 2024
4+
- Update build scripts
5+
- Remove nf-bigquery plugin
6+
- Bump Nextflow to version 24.04.0
7+
- Bump mysql-connector-java:8.0.33
8+
- Bump mariadb-java-client:2.7.0
9+
- Bump postgresql:42.7.4
10+
- Bump sqlite-jdbc:3.47.0.0
11+
- Bump duckdb_jdbc:0.10.2
12+
313
0.5.0 - 30 Aug 2022
414
- Bump nextflow required version to 22.08.1-edge
515

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717

1818
distributionBase=GRADLE_USER_HOME
1919
distributionPath=wrapper/dists
20-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
20+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
2121
zipStoreBase=GRADLE_USER_HOME
2222
zipStorePath=wrapper/dists

plugins/build.gradle

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
plugins {
1818
id "java"
1919
id "io.nextflow.nf-build-plugin" version "1.0.1"
20-
id "idea"
2120
}
2221

2322
ext.github_organization = 'nextflow-io'
@@ -37,6 +36,12 @@ String now() {
3736
"${java.time.OffsetDateTime.now().format(java.time.format.DateTimeFormatter.ISO_DATE_TIME)}"
3837
}
3938

39+
List<String> allPlugins() {
40+
def plugins = []
41+
new File(rootProject.rootDir, 'plugins') .eachDir { if(it.name.startsWith('nf-')) plugins.add(it.name) }
42+
return plugins
43+
}
44+
4045
String metaFromManifest(String meta, File file) {
4146
def str = file.text
4247
def regex = ~/(?m)^$meta:\s*([\w-\.<>=]+)$/
@@ -91,6 +96,8 @@ subprojects {
9196
"sha512sum": "${computeSha512(zip)}"
9297
}
9398
""".stripIndent()
99+
// cleanup tmp dir
100+
file("$buildDir/tmp/makeZip").deleteDir()
94101
}
95102
outputs.file("$buildDir/libs/${project.name}-${project.version}.zip")
96103
}
@@ -134,18 +141,36 @@ subprojects {
134141
skipExisting = true
135142
}
136143

144+
jar {
145+
from sourceSets.main.allSource
146+
doLast {
147+
file("$buildDir/tmp/jar").deleteDir()
148+
}
149+
}
150+
151+
tasks.withType(GenerateModuleMetadata) {
152+
enabled = false
153+
}
154+
155+
task upload(dependsOn: [uploadPlugin] ) { }
137156
}
138157

158+
/*
159+
* Upload all plugins to the corresponding GitHub repos
160+
*/
139161
task upload(dependsOn: [subprojects.uploadPlugin]) { }
140162

163+
/*
164+
* Copies the plugins required dependencies in the corresponding lib directory
165+
*/
141166
classes.dependsOn subprojects.copyPluginLibs
142167

143168
/*
144169
* Merge and publish the plugins index file
145170
*/
146171
task publishIndex( type: io.nextflow.gradle.tasks.GithubRepositoryPublisher ) {
147172
indexUrl = 'https://github.com/nextflow-io/plugins/main/plugins.json'
148-
repos = ['nf-sqldb']
173+
repos = allPlugins()
149174
owner = github_organization
150175
githubUser = github_username
151176
githubEmail = github_commit_email

plugins/nf-bigquery/build.gradle

Lines changed: 0 additions & 140 deletions
This file was deleted.

0 commit comments

Comments
 (0)