-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
175 lines (134 loc) · 5.04 KB
/
build.gradle
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'eclipse'
//apply plugin: 'checkstyle'
defaultTasks 'distTar'
repositories {
mavenCentral()
flatDir {
dirs "."
}
flatDir {
dirs "chipster-dist"
}
}
distTar {
// to get .tar.gz instead of .tgz
archiveExtension = "tar.gz"
compression = Compression.GZIP
}
//test {
// testLogging.showStandardStreams = true
//}
// option to set java version on command line
// ./gradlew -P javaVersion=8
java {
ext.javaVersion = project.hasProperty('javaVersion') ? project.getProperty('javaVersion') : '21'
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
application {
//mainClass = "fi.csc.chipster.toolbox.ToolboxService"
mainClass = "fi.csc.chipster.rest.ServerLauncher"
}
jar {
exclude 'log4j2-test.xml'
}
// use log4j2.xml when running
sourceSets {
main {
resources {
exclude 'log4j2-test.xml'
}
}
}
run {
standardInput = System.in
}
//checkstyle {
// configFile = 'config/checkstyle/google_checks.xml' as File
// ignoreFailures = true
//}
//tasks.withType(Checkstyle) {
// include "fi/csc/chipster/toolbox/**"
//}
// allow tests to be run on command line with "./gradlew [ cleanTest ] test [ --info ]"
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
// events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
task checkTools(type: JavaExec) {
dependsOn classes
classpath sourceSets.test.runtimeClasspath
mainClass = "fi.csc.chipster.toolbox.ToolboxLoadTest"
}
dependencies {
// logging
// stay in 2.+ , because 3.0.0-beta1 is compiled with Java 17
implementation "org.apache.logging.log4j:log4j-api:2.+"
implementation "org.apache.logging.log4j:log4j-core:2.+"
implementation "org.apache.logging.log4j:log4j-jul:2.+"
implementation "org.apache.logging.log4j:log4j-slf4j2-impl:2.+"
// jersey
implementation "org.glassfish.jersey.containers:jersey-container-grizzly2-http:3.1.8"
implementation "org.glassfish.jersey.inject:jersey-hk2:3.1.8"
implementation "org.glassfish.jersey.media:jersey-media-json-jackson:3.1.8"
implementation "org.glassfish.jersey.ext:jersey-bean-validation:3.1.8" // @NonNull needs this
// Jersey in Jetty (session-worker)
implementation "org.glassfish.jersey.containers:jersey-container-servlet-core:3.1.8"
// jetty for session-worker servlet
implementation "org.eclipse.jetty.ee10:jetty-ee10-servlet:12.0.13"
implementation "org.eclipse.jetty:jetty-server:12.0.13"
// jetty client for file downloads with specific HTTP, cipher or TLS versions
implementation "org.eclipse.jetty:jetty-client:12.0.13"
implementation "org.eclipse.jetty.http2:jetty-http2-client:12.0.13"
implementation "org.eclipse.jetty.http2:jetty-http2-client-transport:12.0.13"
// websockets
// API 2.1.0 == ee10
implementation "jakarta.websocket:jakarta.websocket-api:2.1.1"
implementation "org.eclipse.jetty.ee10.websocket:jetty-ee10-websocket-jakarta-server:12.0.13"
// cache settings in web-server
implementation "org.eclipse.jetty:jetty-rewrite:12.0.13"
// jackson
implementation "com.fasterxml.jackson.core:jackson-core:2.18.0"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.0"
// config files
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.18.0"
// hibernate
implementation "org.hibernate.orm:hibernate-core:6.6.1.Final"
implementation "org.hibernate.orm:hibernate-c3p0:6.6.1.Final"
// schema export
implementation "org.hibernate.orm:hibernate-ant:6.6.1.Final"
implementation "org.postgresql:postgresql:+"
// flyway
implementation "org.flywaydb:flyway-core:10.+"
implementation "org.flywaydb:flyway-database-postgresql:10.+"
// S3StorageClient and db backups
implementation "software.amazon.awssdk:s3:+"
implementation "software.amazon.awssdk:s3-transfer-manager:+"
implementation "software.amazon.awssdk.crt:aws-crt:+"
// other
implementation "commons-io:commons-io:+"
implementation "org.apache.commons:commons-text:+"
implementation "commons-codec:commons-codec:+"
// rxJava
implementation "io.reactivex.rxjava3:rxjava:3.+"
implementation "com.sun.mail:javax.mail:+"
// tsv parser
implementation "com.univocity:univocity-parsers:+"
// OpenID Connect
implementation "com.nimbusds:oauth2-oidc-sdk:+"
// JWT
implementation 'io.jsonwebtoken:jjwt-api:+',
'org.bouncycastle:bcpkix-jdk15on:+'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:+',
// Uncomment the next line if you want to use RSASSA-PSS (PS256, PS384, PS512) algorithms:
//'org.bouncycastle:bcprov-jdk15on:1.60',
'io.jsonwebtoken:jjwt-jackson:+'
// Chipster Java tools
implementation "com.github.samtools:htsjdk:2.6.1"
testImplementation "org.junit.jupiter:junit-jupiter:5.+"
}