-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
105 lines (89 loc) · 2.97 KB
/
build.gradle
File metadata and controls
105 lines (89 loc) · 2.97 KB
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
plugins {
id 'java'
id 'org.springframework.boot' version '3.3.1'
id 'io.spring.dependency-management' version '1.1.6'
// Avro
id 'com.github.davidmc24.gradle.plugin.avro-base' version '1.0.0'
}
group = 'User'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
maven {
url "https://packages.confluent.io/maven"
}
}
ext {
set('springCloudVersion', "2023.0.3")
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-elasticsearch'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
implementation 'org.springframework.cloud:spring-cloud-starter-vault-config'
implementation 'org.springframework.vault:spring-vault-core:3.0.2'
implementation "javax.annotation:javax.annotation-api:1.3.2"
compileOnly 'org.projectlombok:lombok'
// runtimeOnly 'com.h2database:h2'
runtimeOnly 'com.mysql:mysql-connector-j'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.0'
testImplementation 'com.h2database:h2'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
//kafka
implementation 'org.springframework.kafka:spring-kafka'
//querydsl
annotationProcessor 'jakarta.persistence:jakarta.persistence-api:3.1.0'
annotationProcessor 'com.querydsl:querydsl-apt:5.0.0:jakarta'
implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
// Avro
implementation group: 'org.apache.avro', name: 'avro', version: '1.11.3'
implementation group: 'io.confluent', name: 'kafka-avro-serializer', version: '7.0.1'
implementation group: 'io.confluent', name: 'kafka-streams-avro-serde', version: '7.6.0'
}
ext {
set('springCloudVersion', "2021.0.1")
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
test {
useJUnitPlatform()
}
tasks.named('test') {
useJUnitPlatform()
}
//sourceSets {
// test {
// java {
// srcDirs = ['src/test/java']
// }
// }
//}
// avro build
def generateAvro = tasks.register("generateAvro", com.github.davidmc24.gradle.plugin.avro.GenerateAvroJavaTask) {
source("src/main/java/math/ai/my/kafka/infra/avro")
outputDir = file("src/main/java/math/ai/my/kafka/infra/avrobuild")
fieldVisibility = "PRIVATE"
enableDecimalLogicalType = true
}