-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
114 lines (95 loc) · 2.85 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.18'
}
}
plugins {
id 'java'
id 'com.google.protobuf' version '0.8.18'
id 'idea'
}
group 'cl.ucn.disc.pdis'
version '0.0.4'
sourceCompatibility = '17'
targetCompatibility = '17'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
// Testing
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
// Lombok
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.22'
testCompileOnly 'org.projectlombok:lombok:1.18.24'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.22'
// JPA
implementation 'javax.persistence:javax.persistence-api:2.2'
// ORMLite
implementation 'com.j256.ormlite:ormlite-core:6.1'
implementation 'com.j256.ormlite:ormlite-jdbc:6.1'
// Database
implementation 'com.h2database:h2:2.1.212'
implementation 'org.xerial:sqlite-jdbc:3.36.0.3'
implementation 'org.postgresql:postgresql:42.3.6'
implementation 'mysql:mysql-connector-java:8.0.29'
// Logger
implementation 'org.slf4j:slf4j-api:1.7.36'
implementation 'ch.qos.logback:logback-classic:1.2.11'
testImplementation 'org.slf4j:slf4j-api:1.7.36'
testImplementation 'ch.qos.logback:logback-classic:1.2.11'
// Commons Lang
implementation 'org.apache.commons:commons-lang3:3.12.0'
// gRPC
runtimeOnly 'io.grpc:grpc-netty-shaded:1.47.0'
implementation 'io.grpc:grpc-protobuf:1.47.0'
implementation 'io.grpc:grpc-stub:1.47.0'
compileOnly 'org.apache.tomcat:annotations-api:6.0.53'
testImplementation 'io.grpc:grpc-testing:1.47.0'
testImplementation 'com.asarkar.grpc:grpc-test:1.2.1'
// Crypto Library
implementation 'org.springframework.security:spring-security-crypto:5.7.1'
runtimeOnly 'org.bouncycastle:bcprov-jdk15on:1.70'
runtimeOnly 'org.springframework:spring-jcl:5.3.20'
}
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.21.2'
}
generatedFilesBaseDir = "$projectDir/src/generated"
clean {
delete generatedFilesBaseDir
}
plugins {
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:1.47.0'
}
}
generateProtoTasks {
all()*.plugins {
grpc {}
}
}
}
/* sourceSets {
main {
java {
srcDirs 'build/generated/source/proto/main/grpc'
srcDirs 'build/generated/source/proto/main/java'
generatedSrcDirs 'build/generated/source/proto/main/grpc'
generatedSrcDirs 'build/generated/source/proto/main/java'
}
}
} */
test {
useJUnitPlatform()
}