generated from VEuPathDB/example-jaxrs-container-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
148 lines (120 loc) · 4.33 KB
/
build.gradle.kts
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
plugins {
kotlin("jvm") version "2.0.20" // needed for local compute import
java
id("org.veupathdb.lib.gradle.container.container-utils") version "5.0.4"
id("com.github.johnrengelman.shadow") version "7.1.2"
}
// configure VEupathDB container plugin
containerBuild {
// General project level configuration.
project {
// Project Name
name = "eda-service"
// Project Group
group = "org.veupathdb.service.eda"
// Project Version
version = "3.0.0"
// Project Root Package
projectPackage = "org.veupathdb.service.eda"
}
// Docker build configuration.
docker {
imageName = "eda-service"
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
vendor = JvmVendorSpec.AMAZON
}
}
kotlin {
jvmToolchain {
languageVersion = JavaLanguageVersion.of(21)
vendor = JvmVendorSpec.AMAZON
}
compilerOptions {
freeCompilerArgs = listOf("-Xjvm-default=all")
}
}
tasks.shadowJar {
exclude("**/Log4j2Plugins.dat")
archiveFileName.set("service.jar")
}
repositories {
mavenCentral()
mavenLocal()
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/veupathdb/maven-packages")
credentials {
username = if (extra.has("gpr.user")) extra["gpr.user"] as String? else System.getenv("GITHUB_USERNAME")
password = if (extra.has("gpr.key")) extra["gpr.key"] as String? else System.getenv("GITHUB_TOKEN")
}
}
}
//
// Project Dependencies
//
// versions
val coreLib = "8.0.0" // Container core lib version
val fgputil = "2.14.2-jakarta" // FgpUtil version
// use local EDA compute compiled schema if project exists, else use released version;
// this mirrors the way we use local EdaCommon code if available
val commonRamlOutFileName = "$projectDir/schema/eda-compute-lib.raml"
// ensures changing modules are never cached
configurations.all {
resolutionStrategy.cacheChangingModulesFor(0, TimeUnit.SECONDS)
}
dependencies {
// REngine Java client to RServe
//implementation("org.rosuda.REngine:REngine:2.1.0")
implementation("org.rosuda.REngine:Rserve:1.8.1")
// VEuPathDB libs, prefer local checkouts if available
implementation(findProject(":core") ?: "org.veupathdb.lib:jaxrs-container-core:${coreLib}")
implementation(findProject(":libEdaSubsetting") ?: "org.veupathdb.lib:eda-subsetting:6.0.0")
// published VEuPathDB libs
implementation("org.gusdb:fgputil-core:${fgputil}")
implementation("org.gusdb:fgputil-accountdb:${fgputil}")
implementation("org.gusdb:fgputil-client:${fgputil}")
implementation("org.gusdb:fgputil-db:${fgputil}")
implementation("org.veupathdb.lib:compute-platform:1.8.5")
implementation("org.veupathdb.lib.s3:s34k-minio:0.7.2+s34k-0.11.0")
// Jersey
implementation("org.glassfish.jersey.core:jersey-server:3.1.1")
// Jackson
implementation("org.veupathdb.lib:jackson-singleton:3.2.1")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.17.2")
// Log4J
implementation("org.apache.logging.log4j:log4j-api:2.24.0")
implementation("org.apache.logging.log4j:log4j-core:2.24.0")
runtimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:2.24.0")
implementation("org.slf4j:slf4j-api:1.7.36")
// Metrics
implementation("io.prometheus:simpleclient:0.16.0")
implementation("io.prometheus:simpleclient_common:0.16.0")
// Utils
implementation("io.vulpine.lib:Jackfish:1.1.0")
implementation("com.devskiller.friendly-id:friendly-id:1.1.0")
implementation("io.vulpine.lib:sql-import:0.2.1")
implementation("io.vulpine.lib:lib-query-util:2.1.0")
implementation("javax.mail", "mail", "1.5.0-b01")
implementation("org.antlr", "ST4", "4.3.1") // Access service email template parsing
// Pico CLI
implementation("info.picocli:picocli:4.7.3")
annotationProcessor("info.picocli:picocli-codegen:4.7.3")
// Job IDs
implementation("org.veupathdb.lib:hash-id:1.1.0")
// Stub database
implementation("org.hsqldb:hsqldb:2.7.1")
// Unit Testing
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.1")
testImplementation("org.mockito:mockito-core:5.14.1")
testImplementation("org.veupathdb.lib.test", "test-utils", "1.1.2")
testImplementation("org.awaitility:awaitility:4.2.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.1")
}
val test by tasks.getting(Test::class) {
// Use junit platform for unit tests
useJUnitPlatform()
}