-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
168 lines (141 loc) · 5.05 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
// Project settings
group = "org.veupathdb.lib"
version = "7.1.5"
plugins {
`java-library`
`maven-publish`
}
apply(from = "${projectDir.absolutePath}/test-summary.gradle")
java {
targetCompatibility = JavaVersion.VERSION_15
sourceCompatibility = JavaVersion.VERSION_15
withSourcesJar()
withJavadocJar()
}
repositories {
mavenCentral()
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/veupathdb/maven-packages")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
}
}
}
dependencies {
// // // // // // // // // // // // // // // // // // // // // // // // // //
//
// Project Dependencies
//
// // // // // // // // // // // // // // // // // // // // // // // // // //
// FgpUtil
val fgputil = "2.14.1-jakarta"
implementation("org.gusdb:fgputil-core:${fgputil}")
implementation("org.gusdb:fgputil-db:${fgputil}")
implementation("org.gusdb:fgputil-web:${fgputil}")
implementation("org.gusdb:fgputil-accountdb:${fgputil}")
// OAuth Client
api("org.gusdb:oauth2-client:1.2.1-jakarta")
// Oracle
runtimeOnly("com.oracle.database.jdbc:ojdbc11:23.4.0.24.05")
// Jersey
api(platform("org.glassfish.jersey:jersey-bom:3.1.6"))
implementation("org.glassfish.jersey.containers:jersey-container-grizzly2-http")
implementation("org.glassfish.jersey.containers:jersey-container-grizzly2-servlet")
implementation("org.glassfish.jersey.media:jersey-media-json-jackson")
runtimeOnly("org.glassfish.jersey.inject:jersey-hk2")
implementation("org.glassfish.hk2:hk2-api:3.1.0")
implementation("org.veupathdb.lib:multipart-jackson-pojo:1.1.7")
// Jackson
api(platform("com.fasterxml.jackson:jackson-bom:2.17.1"))
api("com.fasterxml.jackson.core:jackson-core")
api("com.fasterxml.jackson.core:jackson-databind")
api("com.fasterxml.jackson.core:jackson-annotations")
api("com.fasterxml.jackson.module:jackson-module-parameter-names")
api("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
api("com.fasterxml.jackson.datatype:jackson-datatype-jdk8")
api("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml")
// Log4J
implementation("org.apache.logging.log4j:log4j-api:2.23.1")
implementation("org.apache.logging.log4j:log4j-core:2.23.1")
// CLI
implementation("info.picocli:picocli:4.7.5")
annotationProcessor("info.picocli:picocli-codegen:4.7.5")
// Metrics
implementation("io.prometheus:simpleclient:0.16.0")
implementation("io.prometheus:simpleclient_common:0.16.0")
api("org.veupathdb.lib:lib-prometheus-stats:1.3.0")
// Unique, human readable id generation
implementation("com.devskiller.friendly-id:friendly-id:1.1.0")
// LDAP utils
implementation("com.unboundid:unboundid-ldapsdk:6.0.11")
// Query stuff
implementation("io.vulpine.lib:lib-query-util:2.1.0")
implementation("io.vulpine.lib:sql-import:0.2.1")
//
// Testing Stuff
//
// Unit Testing
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
testImplementation("org.mockito:mockito-core:5.2.0")
testImplementation("org.mockito:mockito-junit-jupiter:5.2.0")
}
tasks.jar {
manifest {
attributes["Implementation-Title"] = project.name
attributes["Implementation-Version"] = project.version
}
}
tasks.register("printVersion") {
doLast {
print(version)
}
}
val test by tasks.getting(Test::class) {
// Use junit platform for unit tests
useJUnitPlatform()
}
publishing {
repositories {
maven {
name = "GitHub"
url = uri("https://maven.pkg.github.com/veupathdb/maven-packages")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
}
}
}
publications {
create<MavenPublication>("gpr") {
from(components["java"])
pom {
name.set("JaxRS Container Core Library")
description.set("Provides base methods, endpoints, server setup, and utilities for use in containerized VEuPathDB JaxRS based applications.")
url.set("https://github.com/VEuPathDB/lib-jaxrs-container-core")
developers {
developer {
id.set("epharper")
name.set("Elizabeth Paige Harper")
email.set("epharper@upenn.edu")
url.set("https://github.com/foxcapades")
organization.set("VEuPathDB")
}
developer {
id.set("rdoherty")
name.set("Ryan Doherty")
email.set("rdoherty@upenn.edu")
url.set("https://github.com/ryanrdoherty")
organization.set("VEuPathDB")
}
}
scm {
connection.set("scm:git:git://github.com/VEuPathDB/lib-jaxrs-container-core.git")
developerConnection.set("scm:git:ssh://github.com/VEuPathDB/lib-jaxrs-container-core.git")
url.set("https://github.com/VEuPathDB/lib-jaxrs-container-core")
}
}
}
}
}