-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
105 lines (88 loc) · 2.84 KB
/
build.gradle
File metadata and controls
105 lines (88 loc) · 2.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
plugins {
id "idea"
id 'groovy'
id 'org.asciidoctor.jvm.convert'
id 'io.nextflow.nextflow-plugin'
id("io.micronaut.application") version "4.4.2"
id("io.micronaut.aot") version "4.4.2"
}
group project.findProperty('group')
repositories {
mavenCentral()
}
configurations {
// see https://docs.gradle.org/4.1/userguide/dependency_management.html#sub:exclude_transitive_dependencies
runtimeClasspath.exclude group: 'org.slf4j', module: 'slf4j-api'
}
dependencies {
implementation("io.micronaut.groovy:micronaut-runtime-groovy"){
exclude group:'org.apache.groovy'
}
implementation("io.micronaut:micronaut-jackson-databind")
implementation("io.micronaut.serde:micronaut-serde-jackson")
compileOnly("io.micronaut:micronaut-http-client")
compileOnly("io.micronaut:micronaut-http-validation")
compileOnly("io.micronaut.serde:micronaut-serde-processor")
runtimeOnly("ch.qos.logback:logback-classic")
implementation('org.apache.groovy:groovy-sql:4.0.24'){
exclude group:'org.apache.groovy'
}
implementation 'org.duckdb:duckdb_jdbc:1.2.0'
}
tasks.withType(GroovyCompile).configureEach {
groovyOptions.configurationScript = file("$rootDir/gradle/groovy-static-compiler.groovy")
}
asciidoctor{
resources {
from('src/docs/asciidoc/images') {
include '**/*.png'
}
into './images'
}
}
nextflowPlugin {
// minimum nextflow version
nextflowVersion = project.findProperty('nextflow_version')
provider = project.findProperty('provider')
className = project.findProperty('classname')
extensionPoints = [
]
publishing {
github {
repository = project.findProperty('github_repository')
userName = project.findProperty('github_username')
authToken = System.getenv('GITHUB_TOKEN')
email = project.findProperty('github_commit_email')
}
}
}
application {
mainClass = "com.incsteps.nextflow.cachebrowser.mn.WebServer"
}
micronaut {
runtime("netty")
testRuntime("spock2")
processing {
incremental(true)
annotations("com.incsteps.nextflow.cachebrowser.mn.*")
}
aot {
// Please review carefully the optimizations enabled below
// Check https://micronaut-projects.github.io/micronaut-aot/latest/guide/ for more details
optimizeServiceLoading = false
convertYamlToJava = false
precomputeOperations = true
cacheEnvironment = true
optimizeClassLoading = true
deduceEnvironment = true
optimizeNetty = true
replaceLogbackXml = true
}
}
afterEvaluate {
tasks.named("buildLayers").get().dependsOn(tasks.named("extensionPoints").get())
tasks.named("generateGithubMeta").get().dependsOn(tasks.named("distZip").get())
}
run{
jvmArgs '--add-opens=java.base/java.lang=ALL-UNNAMED'
}