-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
123 lines (108 loc) · 3.58 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
118
119
120
121
122
123
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.3'
id 'io.spring.dependency-management' version '1.1.3'
id "com.google.protobuf" version "0.9.4"
id 'org.graalvm.buildtools.native' version '0.9.24'
id "io.freefair.lombok" version "8.3"
}
group = 'com.soroosh'
version = '0.0.1'
description = 'service'
java {
sourceCompatibility = '17'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenLocal()
gradlePluginPortal()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter:3.1.2'
implementation 'org.springframework.boot:spring-boot-starter-actuator:3.1.2'
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc:3.1.2'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:3.1.2'
implementation 'org.springframework.boot:spring-boot-starter-jdbc:3.1.2'
implementation 'org.springframework.boot:spring-boot-starter-security:3.1.2'
implementation 'org.springframework.boot:spring-boot-starter-validation:3.1.2'
implementation 'org.springframework.boot:spring-boot-starter-websocket:3.1.2'
implementation 'org.springframework.boot:spring-boot-starter-mail:3.1.3'
implementation 'org.springdoc:springdoc-openapi-ui:1.6.11'
implementation 'org.springdoc:springdoc-openapi-security:1.6.11'
implementation 'com.auth0:java-jwt:3.18.3'
implementation 'com.h2database:h2:1.4.200'
implementation 'org.postgresql:postgresql:42.5.0'
implementation 'io.grpc:grpc-netty:1.16.1'
implementation 'io.grpc:grpc-protobuf:1.57.2'
implementation 'io.grpc:grpc-stub:1.57.2'
implementation 'com.google.protobuf:protobuf-java:3.24.0'
implementation 'javax.annotation:javax.annotation-api:1.3.2'
implementation 'jakarta.mail:jakarta.mail-api:2.1.2'
compileOnly 'org.projectlombok:lombok:1.18.28'
annotationProcessor 'org.projectlombok:lombok:1.18.28'
compileOnly 'org.springframework.boot:spring-boot-configuration-processor:3.1.2'
runtimeOnly 'mysql:mysql-connector-java:8.0.30'
developmentOnly 'org.springframework.boot:spring-boot-devtools:3.1.2'
testImplementation 'org.springframework.boot:spring-boot-starter-test:3.1.2'
testImplementation 'org.springframework.security:spring-security-test:6.1.2'
testImplementation 'com.icegreen:greenmail-junit5:2.0.0'
testImplementation 'org.awaitility:awaitility:4.2.0'
testImplementation 'com.github.javafaker:javafaker:1.0.2'
testCompileOnly 'org.projectlombok:lombok:1.18.28'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.28'
}
graalvmNative {
binaries.configureEach {
resources.autodetect()
}
toolchainDetection = true
}
bootJar {
mainClass = 'com.soroosh.auth.ServiceApplication'
}
protobuf {
plugins {
// Use the jakarta plugin instead of the javax plugin
javamicroprofile {
artifact = 'jakarta.platform:jakarta.jakartaee-api:9.1.0'
}
}
protoc {
artifact = 'com.google.protobuf:protoc:3.10.1'
}
plugins {
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:1.25.0'
}
}
generateProtoTasks {
all()*.plugins {
grpc {}
}
}
}
sourceSets {
main {
proto {
srcDir 'src/main/protobuf'
}
java {
srcDir 'src/main/java'
}
}
test {
proto {
srcDir 'src/test/proto'
}
}
}
tasks.named('test') {
useJUnitPlatform()
}