-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.gradle
97 lines (87 loc) · 2.83 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
buildscript {
ext {
springBootVersion = "3.3.6"
httpclientVersion = "4.5.14"
aerospikeClientVersion = findProperty("aerospikeClientVersion") ?: "9.0.2"
}
if (findProperty("aerospikeUseLocal")) {
print("using Local repo")
repositories {
mavenLocal()
}
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id("application")
id('com.palantir.git-version') version "3.0.0"
id("org.springdoc.openapi-gradle-plugin") version "1.8.0"
}
if (findProperty("aerospikeUseLocal")) {
print("using Local repo")
repositories {
mavenLocal()
}
}
repositories {
mavenCentral()
}
apply plugin: "java"
apply plugin: "eclipse"
apply plugin: "org.springframework.boot"
apply plugin: "io.spring.dependency-management"
group = "com.aerospike"
sourceCompatibility = 17
def gitVersionDetails = versionDetails()
def gitVersion = gitVersionDetails.lastTag
if (gitVersionDetails.commitDistance != 0) {
gitVersion = gitVersion + "-" + gitVersionDetails.commitDistance + "-" + gitVersionDetails.gitHash
}
version = gitVersion
bootJar {
baseName "${jarBaseName}"
}
jar {
baseName "${jarBaseName}"
}
test {
testLogging {
events "passed", "skipped", "failed"
}
}
springBoot {
buildInfo()
}
openApi {
customBootRun {
args.set(["--aerospike.restclient.requireAuthentication=true"])
}
}
dependencies {
implementation('org.msgpack:msgpack-core:0.9.8')
implementation("org.springframework.boot:spring-boot-starter-web:${springBootVersion}")
implementation("com.aerospike:aerospike-client-jdk8:${aerospikeClientVersion}")
implementation("com.aerospike:aerospike-document-api:2.0.3")
implementation("org.msgpack:jackson-dataformat-msgpack:0.9.8")
implementation('org.springframework.retry:spring-retry:2.0.10')
implementation('org.springframework:spring-aspects:6.2.0')
implementation('org.springframework.cloud:spring-cloud-starter-circuitbreaker-resilience4j:3.1.3')
implementation('org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0')
implementation("javax.inject:javax.inject:1")
implementation("com.google.guava:guava:33.3.1-jre")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.apache.httpcomponents:httpclient:${httpclientVersion}")
implementation('org.springframework.boot:spring-boot-starter-actuator')
implementation('io.github.resilience4j:resilience4j-micrometer:2.2.0')
implementation('io.micrometer:micrometer-registry-prometheus')
testImplementation("junit:junit:4.13.2")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
compileJava {
options.compilerArgs << '-parameters'
}