-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
133 lines (108 loc) · 3.25 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
124
125
126
127
128
129
130
131
132
133
buildscript {
ext {
ebeanVersion = '13.25.2'
sqliteVersion = '3.44.1.0'
javalinVersion = '5.6.3'
lombokVersion = '1.18.30'
gsonVersion = '2.10.1'
logbackVersion = '1.4.14'
commonsLangVersion = '3.14.0'
javaFakerVersion = '1.0.2'
grpcVersion = '1.60.0'
protobufVersion = '3.21.12'
protobufPluginVersion = '0.9.4'
versionPluginVersion = '0.50.0'
}
}
plugins {
id 'idea'
id 'java'
id('io.ebean') version "${ebeanVersion}"
id('com.github.ben-manes.versions') version "${versionPluginVersion}"
id('com.google.protobuf') version "${protobufPluginVersion}"
}
group = 'cl.ucn.disc.as'
version = '0.0.5'
repositories {
mavenLocal()
mavenCentral()
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:${protobufVersion}"
}
clean {
delete generatedFilesBaseDir
}
plugins {
grpc {
artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}"
}
}
generateProtoTasks {
all()*.plugins {
grpc {}
}
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
compileJava {
options.encoding = 'UTF-8'
}
dependencies {
// junit
testImplementation platform('org.junit:junit-bom:5.10.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
// lombok
testCompileOnly "org.projectlombok:lombok:${lombokVersion}"
testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}"
// ebean
testImplementation "io.ebean:ebean-test:${ebeanVersion}"
// ebean
implementation "io.ebean:ebean:${ebeanVersion}"
implementation "io.ebean:ebean-ddl-generator:${ebeanVersion}"
annotationProcessor "io.ebean:querybean-generator:${ebeanVersion}"
// database
implementation "org.xerial:sqlite-jdbc:${sqliteVersion}"
// implementation 'com.h2database:h2:2.2.220'
// json
implementation "com.google.code.gson:gson:${gsonVersion}"
// web: javalin
implementation "io.javalin:javalin:${javalinVersion}"
implementation "com.aayushatharva.brotli4j:brotli4j:1.13.0"
implementation "com.nixxcode.jvmbrotli:jvmbrotli:0.2.0"
// lombok
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
// logger
implementation "ch.qos.logback:logback-core:${logbackVersion}"
implementation "ch.qos.logback:logback-classic:${logbackVersion}"
// commons-lang3
implementation "org.apache.commons:commons-lang3:${commonsLangVersion}"
// data faker
implementation "com.github.javafaker:javafaker:${javaFakerVersion}"
// gRPC
runtimeOnly "io.grpc:grpc-netty-shaded:${grpcVersion}"
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
implementation "io.grpc:grpc-stub:${grpcVersion}"
implementation 'javax.annotation:javax.annotation-api:1.3.2'
}
ebean {
debugLevel = 9 //0 - 9
}
test {
useJUnitPlatform()
testLogging.showStandardStreams = true
testLogging.exceptionFormat = 'full'
}
// Inform IntelliJ about the generated code.
idea {
module {
sourceDirs += file("src/generated/main/java")
sourceDirs += file("src/generated/main/grpc")
}
}