-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
117 lines (100 loc) · 4.1 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.5'
id 'org.javamodularity.moduleplugin' version '1.8.12'
id "org.gradlex.extra-java-module-info" version "1.4"
id 'io.spring.dependency-management' version '1.1.3'
}
group = 'io.edpn.backend'
version = '1.1.2-SNAPSHOT'
description = 'Listener to consume the EDDN messages and store in Kafka'
compileJava.options.encoding = 'UTF-8'
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
toolchain {
languageVersion=JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
maven {
url 'https://nexus.edpn.io/repository/maven-releases/'
}
if (version.endsWith('-SNAPSHOT')) { //disallow snapshot dependencies in releases
maven {
url 'https://nexus.edpn.io/repository/maven-snapshots/'
}
}
}
ext {
springBootVersion = '3.1.5'
jacksonVersion = '2.14.2'
lombokVersion = '1.18.30'
springIntegrationVersion = '6.1.0'
springKafkaVersion = '3.0.7'
prometheusVersion = '1.11.1'
javaxVersion = '1.3.2'
kafkaVersion = '3.4.0'
}
dependencies {
implementation "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"
implementation "org.springframework.boot:spring-boot-starter-actuator:${springBootVersion}"
implementation "org.springframework.boot:spring-boot-starter-integration:${springBootVersion}"
implementation "org.springframework.integration:spring-integration-http:${springIntegrationVersion}"
implementation "org.springframework.integration:spring-integration-zeromq:${springIntegrationVersion}"
implementation "org.springframework.kafka:spring-kafka:${springKafkaVersion}"
implementation "org.apache.kafka:kafka-streams:${kafkaVersion}"
implementation "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
implementation "com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}"
implementation "javax.annotation:javax.annotation-api:${javaxVersion}"
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
runtimeOnly "org.springframework.boot:spring-boot-devtools:${springBootVersion}"
runtimeOnly "io.micrometer:micrometer-registry-prometheus:${prometheusVersion}"
testCompileOnly "org.projectlombok:lombok:${lombokVersion}"
testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}"
}
test {
systemProperty "file.encoding", "utf-8"
useJUnitPlatform()
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
tasks.named('test') {
useJUnitPlatform()
}
tasks.withType(JavaCompile).tap {
configureEach {
options.encoding = 'UTF-8'
}
}
extraJavaModuleInfo {
automaticModule("LatencyUtils-2.0.3.jar", "LatencyUtils")
automaticModule("HdrHistogram-2.1.12.jar", "HdrHistogram")
automaticModule("spring-retry-2.0.4.jar","spring.retry")
automaticModule("kafka-clients-3.4.1.jar", "kafka.clients")
automaticModule("dependency-management-plugin-1.1.0.jar","dependency.management.plugin")
automaticModule("jnacl-1.0.0.jar","eu.neilalexander.jnacl")
automaticModule("jeromq-0.5.3.jar","org.zeromq.jeromq")
automaticModule("jsr305-3.0.2.jar","jsr305")
automaticModule("snappy-java-1.1.8.4.jar","snappy.java")
automaticModule("simpleclient-0.16.0.jar","io.prometheus")
automaticModule("simpleclient_common-0.16.0.jar","io.prometheus")
automaticModule("simpleclient_tracer_common-0.16.0.jar","io.prometheus")
automaticModule("simpleclient_tracer_otel-0.16.0.jar","io.prometheus")
automaticModule("simpleclient_tracer_otel_agent-0.16.0.jar","io.prometheus")
automaticModule("simpleclient_tracer_common-0.16.0.jar","io.prometheus")
automaticModule("kafka-streams-3.4.0.jar","kafka.streams")
automaticModule("rocksdbjni-7.1.2.jar","kafka.streams")
}
bootBuildImage {
builder = "paketobuildpacks/builder-jammy-base"
environment = [
BP_JVM_VERSION: "21"
]
}