-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
*/ | ||
|
||
plugins { | ||
// Support convention plugins written in Groovy. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build. | ||
id 'groovy-gradle-plugin' | ||
} | ||
|
||
repositories { | ||
// Use the plugin portal to apply community plugins in convention plugins. | ||
gradlePluginPortal() | ||
} | ||
|
11 changes: 11 additions & 0 deletions
11
buildSrc/src/main/groovy/io.nextflow.groovy-application-conventions.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
*/ | ||
|
||
plugins { | ||
// Apply the common convention plugin for shared build configuration between library and application projects. | ||
id 'io.nextflow.groovy-common-conventions' | ||
|
||
// Apply the application plugin to add support for building a CLI application in Java. | ||
id 'application' | ||
} |
48 changes: 48 additions & 0 deletions
48
buildSrc/src/main/groovy/io.nextflow.groovy-common-conventions.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
*/ | ||
|
||
plugins { | ||
// Apply the groovy Plugin to add support for Groovy. | ||
id 'groovy' | ||
} | ||
|
||
repositories { | ||
// Use Maven Central for resolving dependencies. | ||
mavenCentral() | ||
} | ||
|
||
java { | ||
toolchain { | ||
languageVersion = JavaLanguageVersion.of(21) | ||
} | ||
} | ||
|
||
compileJava { | ||
options.release.set(17) | ||
} | ||
|
||
tasks.withType(GroovyCompile) { | ||
sourceCompatibility = '17' | ||
targetCompatibility = '17' | ||
} | ||
|
||
tasks.withType(Test) { | ||
jvmArgs ([ | ||
'--add-opens=java.base/java.lang=ALL-UNNAMED', | ||
'--add-opens=java.base/java.io=ALL-UNNAMED', | ||
'--add-opens=java.base/java.nio=ALL-UNNAMED', | ||
'--add-opens=java.base/java.nio.file.spi=ALL-UNNAMED', | ||
'--add-opens=java.base/java.net=ALL-UNNAMED', | ||
'--add-opens=java.base/java.util=ALL-UNNAMED', | ||
'--add-opens=java.base/java.util.concurrent.locks=ALL-UNNAMED', | ||
'--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED', | ||
'--add-opens=java.base/sun.nio.ch=ALL-UNNAMED', | ||
'--add-opens=java.base/sun.nio.fs=ALL-UNNAMED', | ||
'--add-opens=java.base/sun.net.www.protocol.http=ALL-UNNAMED', | ||
'--add-opens=java.base/sun.net.www.protocol.https=ALL-UNNAMED', | ||
'--add-opens=java.base/sun.net.www.protocol.ftp=ALL-UNNAMED', | ||
'--add-opens=java.base/sun.net.www.protocol.file=ALL-UNNAMED', | ||
'--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED', | ||
]) | ||
} |
11 changes: 11 additions & 0 deletions
11
buildSrc/src/main/groovy/io.nextflow.groovy-library-conventions.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
*/ | ||
|
||
plugins { | ||
// Apply the common convention plugin for shared build configuration between library and application projects. | ||
id 'io.nextflow.groovy-common-conventions' | ||
// Apply the java-library plugin for API and implementation separation. | ||
id 'java-library' | ||
} | ||
|